Call mpegvideo flush routine on h264 flush. Needed in particular
[ffmpeg.git] / libavcodec / h264.c
index f4def12..a20cf8b 100644 (file)
@@ -3342,6 +3342,7 @@ static void flush_dpb(AVCodecContext *avctx){
     if(h->s.current_picture_ptr)
         h->s.current_picture_ptr->reference= 0;
     h->s.first_field= 0;
+    ff_mpeg_flush(avctx);
 }
 
 /**