[FFmpeg-cvslog] h264_metadata: Remove redundant setting of SEI payload size

Mark Thompson git at videolan.org
Fri May 11 01:55:38 EEST 2018


ffmpeg | branch: master | Mark Thompson <sw at jkqxz.net> | Mon May  7 23:01:48 2018 +0100| [2b412135009204246cb18f5dd784fb1b916c2518] | committer: Mark Thompson

h264_metadata: Remove redundant setting of SEI payload size

This should be derived from the data length rather than set explicitly.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2b412135009204246cb18f5dd784fb1b916c2518
---

 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 "



More information about the ffmpeg-cvslog mailing list