From 2b412135009204246cb18f5dd784fb1b916c2518 Mon Sep 17 00:00:00 2001 From: Mark Thompson Date: Mon, 7 May 2018 23:01:48 +0100 Subject: [PATCH] h264_metadata: Remove redundant setting of SEI payload size This should be derived from the data length rather than set explicitly. --- libavcodec/h264_metadata_bsf.c | 2 -- 1 file changed, 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 "