[MPlayer-cvslog] r28643 - trunk/libmpcodecs/vd_ffmpeg.c
reimar
subversion at mplayerhq.hu
Wed Feb 18 08:52:17 CET 2009
Author: reimar
Date: Wed Feb 18 08:52:17 2009
New Revision: 28643
Log:
Handle mpcodecs_get_image returning NULL, FFmpeg most of the time handles
it correctly (VDPAU and probably H.264 currently don't, MPEG1/2 does etc.).
Modified:
trunk/libmpcodecs/vd_ffmpeg.c
Modified: trunk/libmpcodecs/vd_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/vd_ffmpeg.c Wed Feb 18 03:04:16 2009 (r28642)
+++ trunk/libmpcodecs/vd_ffmpeg.c Wed Feb 18 08:52:17 2009 (r28643)
@@ -576,6 +576,7 @@ static int get_buffer(AVCodecContext *av
mpi= mpcodecs_get_image(sh, type, flags,
(width+align)&(~align), (height+align)&(~align));
+ if (!mpi) return -1;
// ok, let's see what did we get:
if(mpi->flags&MP_IMGFLAG_DRAW_CALLBACK &&
More information about the MPlayer-cvslog
mailing list