h264_metadata: Remove redundant setting of SEI payload size

This should be derived from the data length rather than set explicitly.
This commit is contained in:
Mark Thompson 2018-05-07 23:01:48 +01:00
parent 4c9741a1dd
commit 2b41213500
1 changed files with 0 additions and 2 deletions

View File

@ -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 "