diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-10-26 01:22:38 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-10-26 02:43:50 +0200 |
commit | 69603724750b6e8cee31692c7352e313df5317fb (patch) | |
tree | 200565ddf5ae83d79ea9824278d2b87940c4ee03 | |
parent | 5bce35d9581c64358ddb5bfa9aba94dc615c8da3 (diff) | |
download | ffmpeg-69603724750b6e8cee31692c7352e313df5317fb.tar.gz |
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@gmx.at>
(cherry picked from commit 3c9dd93faa9f3c250428dd0548c075583aa07cc3)
-rw-r--r-- | libavcodec/h264.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index ee2315849f..bf5bfa0e0d 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -2170,6 +2170,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 */ |