From 3c9dd93faa9f3c250428dd0548c075583aa07cc3 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 26 Oct 2013 01:22:38 +0200 Subject: [PATCH] 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 --- libavcodec/h264.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 66720571ab..1be723a6d0 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 */