h264: reset recovery frame on seeks.
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 20 Sep 2011 00:37:37 +0000 (02:37 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 20 Sep 2011 00:52:17 +0000 (02:52 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/h264.c

index 044be6b..4d08642 100644 (file)
@@ -2267,6 +2267,7 @@ static void flush_dpb(AVCodecContext *avctx){
     h->s.first_field= 0;
     ff_h264_reset_sei(h);
     ff_mpeg_flush(avctx);
+    h->recovery_frame= -1;
     h->sync= 0;
 }