summaryrefslogtreecommitdiff
path: root/libavcodec/ttmlenc.h
diff options
context:
space:
mode:
authorJan Ekström <jan.ekstrom@24i.com>2021-03-15 16:01:52 +0200
committerJan Ekström <jeebjp@gmail.com>2021-04-26 16:40:31 +0300
commit464d6ed98d67fe0c3819516e9b0ca5edaf956a0e (patch)
tree95c85e07f6f77dcf1b5c4b2507c8874cce027af7 /libavcodec/ttmlenc.h
parentb71184faefce38c8a965c7d0e8552e049ae9e150 (diff)
avformat/ttmlenc: enable writing out additional header values
This way the encoder may pass on the following values to the muxer: 1) Additional root "tt" element attributes, such as the subtitle canvas reference size. 2) Anything before the body element of the document, such as regions in the head element, which can configure styles. Signed-off-by: Jan Ekström <jan.ekstrom@24i.com>
Diffstat (limited to 'libavcodec/ttmlenc.h')
-rw-r--r--libavcodec/ttmlenc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/ttmlenc.h b/libavcodec/ttmlenc.h
index c1dd5ec990..c3bb11478d 100644
--- a/libavcodec/ttmlenc.h
+++ b/libavcodec/ttmlenc.h
@@ -25,4 +25,9 @@
#define TTMLENC_EXTRADATA_SIGNATURE "lavc-ttmlenc"
#define TTMLENC_EXTRADATA_SIGNATURE_SIZE (sizeof(TTMLENC_EXTRADATA_SIGNATURE) - 1)
+static const char 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";
+
#endif /* AVCODEC_TTMLENC_H */