summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2018-05-07 23:01:48 +0100
committerMark Thompson <sw@jkqxz.net>2018-05-10 22:05:44 +0100
commit2b412135009204246cb18f5dd784fb1b916c2518 (patch)
treecf2ec0719510b6f3b7a546c1cec0cb353e78a5a5
parent4c9741a1dddf8fd616da112a915413651d7ddd37 (diff)
h264_metadata: Remove redundant setting of SEI payload size
This should be derived from the data length rather than set explicitly.
-rw-r--r--libavcodec/h264_metadata_bsf.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/h264_metadata_bsf.c b/libavcodec/h264_metadata_bsf.c
index 27053dbdcf..1fbc5e3282 100644
--- a/libavcodec/h264_metadata_bsf.c
+++ b/libavcodec/h264_metadata_bsf.c
@@ -341,8 +341,6 @@ static int h264_metadata_filter(AVBSFContext *bsf, AVPacket *out)
udu->data_length = len + 1;
memcpy(udu->data, ctx->sei_user_data + i + 1, len + 1);
- payload.payload_size = 16 + udu->data_length;
-
err = ff_cbs_h264_add_sei_message(ctx->cbc, au, &payload);
if (err < 0) {
av_log(bsf, AV_LOG_ERROR, "Failed to add user data SEI "