[FFmpeg-cvslog] cbs_h264: Need [] in the name when subscript is required

Haihao Xiang git at videolan.org
Mon May 7 23:36:14 EEST 2018


ffmpeg | branch: master | Haihao Xiang <haihao.xiang at intel.com> | Fri May  4 12:33:39 2018 +0800| [65be65da37eb543e7e79357f04e4cfc8b514d8df] | committer: Mark Thompson

cbs_h264: Need [] in the name when subscript is required

Otherwise it will hit an assert in the function
ff_cbs_trace_syntax_element() in cbs.c, line 400.

Signed-off-by: Haihao Xiang <haihao.xiang at intel.com>

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

 libavcodec/cbs_h264_syntax_template.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/cbs_h264_syntax_template.c b/libavcodec/cbs_h264_syntax_template.c
index c3327f6e90..3ec4299915 100644
--- a/libavcodec/cbs_h264_syntax_template.c
+++ b/libavcodec/cbs_h264_syntax_template.c
@@ -763,7 +763,7 @@ static int FUNC(sei_payload)(CodedBitstreamContext *ctx, RWContext *rw,
         {
             allocate(current->payload.other.data, current->payload_size);
             for (i = 0; i < current->payload_size; i++)
-                xu(8, payload_byte, current->payload.other.data[i], 0, 255, 1, i);
+                xu(8, payload_byte[i], current->payload.other.data[i], 0, 255, 1, i);
         }
     }
 



More information about the ffmpeg-cvslog mailing list