Ticket #117: segv_fix.diff

File segv_fix.diff, 581 bytes (added by reimar, 15 years ago)

try2

  • libmpcodecs/vd_ffmpeg.c

    RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_ffmpeg.c,v
    retrieving revision 1.136
    diff -u -r1.136 vd_ffmpeg.c
     
    578578
    579579    mpi= mpcodecs_get_image(sh,type, flags,
    580580                        (width+align)&(~align), (height+align)&(~align));
     581    mpi->w = width;
     582    mpi->h = height;
    581583
    582584    // ok, let's see what did we get:
    583585    if(  mpi->flags&MP_IMGFLAG_DRAW_CALLBACK &&