summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorJeff Downs <heydowns@borg.com>2007-11-17 03:04:21 +0000
committerJeff Downs <heydowns@borg.com>2007-11-17 03:04:21 +0000
commite240f898ffd2169d9147ccb0b557620e11f66597 (patch)
treee00a5c7d4666664da228632ef31d6ed3756ec42a /libavcodec
parenteb72cacb21aff9766a6f07a9b176a147104f5fa6 (diff)
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. Originally committed as revision 11049 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h264.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index f4def1276e..a20cf8b252 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -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);
}
/**