summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-09-20 02:37:37 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-09-20 02:52:17 +0200
commita8a9844a3c3dab30ea479f5004b51eed5f3eac6c (patch)
tree35d4ba4707ac765a6bfc9f657058d4dc24b7a3e8 /libavcodec
parent8716c178ddabe28a01a9fe81fff68d117b779333 (diff)
h264: reset recovery frame on seeks.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h264.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 044be6bfe9..4d08642779 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -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;
}