aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-02-18 01:27:23 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-02-22 01:45:31 +0100
commited9de6d2d8cb82cd646a18c0d0c745a65c96f2cc (patch)
treed81d984f0ab1e2dead0c7b5f55b112e5b29e9940
parent253a8340f53f108d4ceb17563eab8798ed6f5481 (diff)
downloadffmpeg-ed9de6d2d8cb82cd646a18c0d0c745a65c96f2cc.tar.gz
avcodec/ttmlenc: Remove always-true check
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavcodec/ttmlenc.c5
1 files 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: