changeset 5926:77403dc808cd libavcodec

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.
author heydowns
date Sat, 17 Nov 2007 03:04:21 +0000
parents 4127277ac925
children 2fa5d656af8e
files h264.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Fri Nov 16 23:15:39 2007 +0000
+++ b/h264.c	Sat Nov 17 03:04:21 2007 +0000
@@ -3342,6 +3342,7 @@
     if(h->s.current_picture_ptr)
         h->s.current_picture_ptr->reference= 0;
     h->s.first_field= 0;
+    ff_mpeg_flush(avctx);
 }
 
 /**