aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-10-26 01:22:38 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2013-10-26 02:43:50 +0200
commit69603724750b6e8cee31692c7352e313df5317fb (patch)
tree200565ddf5ae83d79ea9824278d2b87940c4ee03
parent5bce35d9581c64358ddb5bfa9aba94dc615c8da3 (diff)
downloadffmpeg-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.c1
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 */