[FFmpeg-cvslog] h264: copy nal_length_size in update_thread_context

Anton Khirnov git at videolan.org
Wed Apr 29 13:48:30 CEST 2015


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sun Apr 12 19:08:23 2015 +0200| [29dcde2b87559b72957454a7e9bcd5227d8057ba] | committer: Anton Khirnov

h264: copy nal_length_size in update_thread_context

It does not make sense to copy is_avc without copying this as well. This
patch should not change anything for now, but will have an effect in
later commits.

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

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

diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c
index 4623dd9..a760068 100644
--- a/libavcodec/h264_slice.c
+++ b/libavcodec/h264_slice.c
@@ -510,6 +510,7 @@ int ff_h264_update_thread_context(AVCodecContext *dst,
 
     // extradata/NAL handling
     h->is_avc = h1->is_avc;
+    h->nal_length_size = h1->nal_length_size;
 
     // SPS/PPS
     if ((ret = copy_parameter_set((void **)h->sps_buffers,



More information about the ffmpeg-cvslog mailing list