[FFmpeg-devel] [PATCH 1/3] h264: reset picture->sync on allocation.

Michael Niedermayer michaelni at gmx.at
Sat Dec 31 22:23:34 CET 2011


Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 libavcodec/h264.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index f6fcc84..7665021 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -1327,6 +1327,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);
-- 
1.7.5.4



More information about the ffmpeg-devel mailing list