Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaihao Xiang <haihao.xiang@intel.com>2018-05-04 07:33:39 +0300
committerMark Thompson <sw@jkqxz.net>2018-05-07 23:32:41 +0300
commit65be65da37eb543e7e79357f04e4cfc8b514d8df (patch)
treeef332bb4bc76335acf333c787f608633b2a93a27 /libavcodec/cbs_h264_syntax_template.c
parent06344f705e66f6c90e978a9155155858cfb9be94 (diff)
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@intel.com>
Diffstat (limited to 'libavcodec/cbs_h264_syntax_template.c')
-rw-r--r--libavcodec/cbs_h264_syntax_template.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}