[FFmpeg-cvslog] h264: reset picture->sync on allocation.

Michael Niedermayer git at videolan.org
Sun Jan 1 21:52:31 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Dec 31 22:14:53 2011 +0100| [36fa781bd6b4e0f40abd31431af2d29d87e9b194] | committer: Michael Niedermayer

h264: reset picture->sync on allocation.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=36fa781bd6b4e0f40abd31431af2d29d87e9b194
---

 libavcodec/h264.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 384e2d1..b0c5049 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);



More information about the ffmpeg-cvslog mailing list