Commit 8822faf8 authored by heydowns's avatar heydowns

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.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11049 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 52b90c5a
...@@ -3342,6 +3342,7 @@ static void flush_dpb(AVCodecContext *avctx){ ...@@ -3342,6 +3342,7 @@ static void flush_dpb(AVCodecContext *avctx){
if(h->s.current_picture_ptr) if(h->s.current_picture_ptr)
h->s.current_picture_ptr->reference= 0; h->s.current_picture_ptr->reference= 0;
h->s.first_field= 0; h->s.first_field= 0;
ff_mpeg_flush(avctx);
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment