Commit 2b412135 authored by Mark Thompson's avatar Mark Thompson

h264_metadata: Remove redundant setting of SEI payload size

This should be derived from the data length rather than set explicitly.
parent 4c9741a1
...@@ -341,8 +341,6 @@ static int h264_metadata_filter(AVBSFContext *bsf, AVPacket *out) ...@@ -341,8 +341,6 @@ static int h264_metadata_filter(AVBSFContext *bsf, AVPacket *out)
udu->data_length = len + 1; udu->data_length = len + 1;
memcpy(udu->data, ctx->sei_user_data + i + 1, 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); err = ff_cbs_h264_add_sei_message(ctx->cbc, au, &payload);
if (err < 0) { if (err < 0) {
av_log(bsf, AV_LOG_ERROR, "Failed to add user data SEI " av_log(bsf, AV_LOG_ERROR, "Failed to add user data SEI "
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment