[FFmpeg-cvslog] r11049 - trunk/libavcodec/h264.c

heydowns subversion
Sat Nov 17 04:04:22 CET 2007


Author: heydowns
Date: Sat Nov 17 04:04:21 2007
New Revision: 11049

Log:
Call mpegvideo flush routine on h264 flush. Needed in particular
to clear last_picture_ptr, next_picture_ptr for proper picture
management. Prevents crashes in error concealer following seeks.
Fixes Roundup issue 189.



Modified:
   trunk/libavcodec/h264.c

Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c	(original)
+++ trunk/libavcodec/h264.c	Sat Nov 17 04:04:21 2007
@@ -3342,6 +3342,7 @@ static void flush_dpb(AVCodecContext *av
     if(h->s.current_picture_ptr)
         h->s.current_picture_ptr->reference= 0;
     h->s.first_field= 0;
+    ff_mpeg_flush(avctx);
 }
 
 /**




More information about the ffmpeg-cvslog mailing list