[FFmpeg-cvslog] h264: make flush_change() set mmco_reset

Michael Niedermayer git at videolan.org
Sat Oct 26 01:58:15 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Oct 26 01:22:38 2013 +0200| [3c9dd93faa9f3c250428dd0548c075583aa07cc3] | committer: Michael Niedermayer

h264: make flush_change() set mmco_reset

This ensures that frames do not get mixed on context reinits

Fixes Ticket2836

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3c9dd93faa9f3c250428dd0548c075583aa07cc3
---

 libavcodec/h264.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 6672057..1be723a 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -2772,6 +2772,7 @@ static void flush_change(H264Context *h)
     h->sync= 0;
     h->list_count = 0;
     h->current_slice = 0;
+    h->mmco_reset = 1;
 }
 
 /* forget old pics after a seek */



More information about the ffmpeg-cvslog mailing list