[FFmpeg-devel] [PATCH 5/7] avcodec/ttmlenc: Remove always-true check
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Sun Feb 18 03:43:06 EET 2024
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
libavcodec/ttmlenc.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/libavcodec/ttmlenc.c b/libavcodec/ttmlenc.c
index f48274d2ea..779cb75199 100644
--- a/libavcodec/ttmlenc.c
+++ b/libavcodec/ttmlenc.c
@@ -351,9 +351,8 @@ static int ttml_write_header_content(AVCodecContext *avctx)
memcpy(avctx->extradata, TTMLENC_EXTRADATA_SIGNATURE,
TTMLENC_EXTRADATA_SIGNATURE_SIZE);
- if (additional_extradata_size)
- memcpy(avctx->extradata + TTMLENC_EXTRADATA_SIGNATURE_SIZE,
- s->buffer.str, additional_extradata_size);
+ memcpy(avctx->extradata + TTMLENC_EXTRADATA_SIGNATURE_SIZE,
+ s->buffer.str, additional_extradata_size);
ret = 0;
fail:
--
2.34.1
More information about the ffmpeg-devel
mailing list