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

reimar subversion at mplayerhq.hu
Sat Dec 11 19:37:00 CET 2010


Author: reimar
Date: Sat Dec 11 19:37:00 2010
New Revision: 32690

Log:
Reset ctx->vo_initialized to 0 on a resolution change.
Otherwise we might think the filter chain/vo is ready when it
actually is not, leading to a crash.
Fixes crash part of bug 1156.

Modified:
   trunk/libmpcodecs/vd_ffmpeg.c

Modified: trunk/libmpcodecs/vd_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/vd_ffmpeg.c	Sat Dec 11 18:45:41 2010	(r32689)
+++ trunk/libmpcodecs/vd_ffmpeg.c	Sat Dec 11 19:37:00 2010	(r32690)
@@ -554,6 +554,7 @@ static int init_vo(sh_video_t *sh, enum 
         pix_fmt != ctx->pix_fmt ||
         !ctx->vo_initialized)
     {
+        ctx->vo_initialized = 0;
         // this is a special-case HACK for MPEG-1/2 VDPAU that uses neither get_format nor
         // sets the value correctly in avcodec_open.
         set_format_params(avctx, avctx->pix_fmt);


More information about the MPlayer-cvslog mailing list