h264: make flush_change() set mmco_reset
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 25 Oct 2013 23:22:38 +0000 (01:22 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 25 Oct 2013 23:22:38 +0000 (01:22 +0200)
This ensures that frames do not get mixed on context reinits

Fixes Ticket2836

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/h264.c

index 6672057..1be723a 100644 (file)
@@ -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 */