summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-29 08:43:55 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-30 22:08:57 +0200
commit879eed5555b2d1f185bd4998631be21b1417874e (patch)
tree909154189f48a516c628b1d05b994e93720fedf3
parent6ca16906439f689e4627b7cb4e6466bd45cc696f (diff)
avcodec/ttmlenc: Deduplicate ttml_default_namespacing string
String literals are allowed to be deduplicated (and toolchains are already capable of doing so), yet the same is not allowed for named arrays (even when they contain strings). Therefore use a const char *const pointing to an unnamed string literal for ttml_default_namespacing. Reviewed-by: Jan Ekström <jeebjp@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavcodec/ttmlenc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ttmlenc.h b/libavcodec/ttmlenc.h
index 467f35c7a6..654ca0ee4d 100644
--- a/libavcodec/ttmlenc.h
+++ b/libavcodec/ttmlenc.h
@@ -25,7 +25,7 @@
#define TTMLENC_EXTRADATA_SIGNATURE "lavc-ttmlenc"
#define TTMLENC_EXTRADATA_SIGNATURE_SIZE (sizeof(TTMLENC_EXTRADATA_SIGNATURE) - 1)
-static const char ttml_default_namespacing[] =
+static const char *const ttml_default_namespacing =
" xmlns=\"http://www.w3.org/ns/ttml\"\n"
" xmlns:ttm=\"http://www.w3.org/ns/ttml#metadata\"\n"
" xmlns:tts=\"http://www.w3.org/ns/ttml#styling\"\n"