[MPlayer-cvslog] r36421 - trunk/libmpcodecs/vd_ffmpeg.c

reimar subversion at mplayerhq.hu
Mon Aug 12 21:56:34 CEST 2013


Author: reimar
Date: Mon Aug 12 21:56:34 2013
New Revision: 36421

Log:
Fix a possible crash when DRI failed.

Modified:
   trunk/libmpcodecs/vd_ffmpeg.c

Modified: trunk/libmpcodecs/vd_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/vd_ffmpeg.c	Mon Aug 12 21:37:35 2013	(r36420)
+++ trunk/libmpcodecs/vd_ffmpeg.c	Mon Aug 12 21:56:34 2013	(r36421)
@@ -520,7 +520,7 @@ static void draw_slice(struct AVCodecCon
         mp_msg(MSGT_DECVIDEO, MSGL_FATAL, "BUG in FFmpeg, draw_slice called with NULL pointer!\n");
         return;
     }
-    if (IMGFMT_IS_VDPAU(mpi->imgfmt)) {
+    if (mpi && IMGFMT_IS_VDPAU(mpi->imgfmt)) {
         mp_msg(MSGT_DECVIDEO, MSGL_FATAL, "BUG in FFmpeg, draw_slice called for VDPAU!\n");
         return;
     }


More information about the MPlayer-cvslog mailing list