[FFmpeg-cvslog] h264: document h264_set_parameter_from_sps() re-calling behavior

Michael Niedermayer git at videolan.org
Wed Jan 16 06:07:26 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Jan 16 05:22:30 2013 +0100| [2d372d3a3ffb47f734c3b00a7d030e14b405043a] | committer: Michael Niedermayer

h264: document h264_set_parameter_from_sps() re-calling behavior

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

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

 libavcodec/h264.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 3dcf00a..4d935ae 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -1224,6 +1224,7 @@ static int decode_update_thread_context(AVCodecContext *dst,
         /* copy block_offset since frame_start may not be called */
         memcpy(h->block_offset, h1->block_offset, sizeof(h->block_offset));
         h264_set_parameter_from_sps(h);
+        //Note we set context_reinitialized which will cause h264_set_parameter_from_sps to be reexecuted
         h->cur_chroma_format_idc = h1->cur_chroma_format_idc;
     }
 



More information about the ffmpeg-cvslog mailing list