From 01ff5378f057277c994384d0ffb935763079bc2e Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 31 Dec 2011 22:14:53 +0100 Subject: [PATCH] h264: reset picture->sync on allocation. Signed-off-by: Michael Niedermayer (cherry picked from commit 36fa781bd6b4e0f40abd31431af2d29d87e9b194) --- libavcodec/h264.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 8139c304ac..8d86677922 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -1324,6 +1324,7 @@ int ff_h264_frame_start(H264Context *h){ * See decode_nal_units(). */ s->current_picture_ptr->f.key_frame = 0; + s->current_picture_ptr->sync = 0; s->current_picture_ptr->mmco_reset= 0; assert(s->linesize && s->uvlinesize);