diff mbox series

[FFmpeg-devel,1/1] libavformat/nut: Support SSA and ASS subtitles

Message ID 4cfec311eadc4ed13d7daad22a751c99@riseup.net
State Accepted
Headers show
Series [FFmpeg-devel,1/1] libavformat/nut: Support SSA and ASS subtitles
Related show

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

hax@riseup.net Aug. 22, 2020, 4:16 a.m. UTC
ffmpeg documentation says the NUT container supports SubStation Alpha
This brings actual functionality in line with documentation.
---
 libavformat/nut.c | 2 ++
 1 file changed, 2 insertions(+)

--
2.27.0

Comments

Michael Niedermayer Aug. 22, 2020, 10:56 a.m. UTC | #1
On Fri, Aug 21, 2020 at 09:16:52PM -0700, hax@riseup.net wrote:
> ffmpeg documentation says the NUT container supports SubStation Alpha
> This brings actual functionality in line with documentation.
> ---
>  libavformat/nut.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/libavformat/nut.c b/libavformat/nut.c
> index d6993239a3..47ed152529 100644
> --- a/libavformat/nut.c
> +++ b/libavformat/nut.c
> @@ -27,6 +27,8 @@
> 
>  const AVCodecTag ff_nut_subtitle_tags[] = {
>      { AV_CODEC_ID_TEXT,             MKTAG('U', 'T', 'F', '8') },
> +    { AV_CODEC_ID_ASS,              MKTAG('S', 'S', 'A',  0 ) },
> +    { AV_CODEC_ID_ASS,              MKTAG('A', 'S', 'S',  0 ) },
>      { AV_CODEC_ID_DVD_SUBTITLE,     MKTAG('D', 'V', 'D', 'S') },

hmm, looks correct so ill apply with my next git push 

thx

[...]
diff mbox series

Patch

diff --git a/libavformat/nut.c b/libavformat/nut.c
index d6993239a3..47ed152529 100644
--- a/libavformat/nut.c
+++ b/libavformat/nut.c
@@ -27,6 +27,8 @@ 

 const AVCodecTag ff_nut_subtitle_tags[] = {
     { AV_CODEC_ID_TEXT,             MKTAG('U', 'T', 'F', '8') },
+    { AV_CODEC_ID_ASS,              MKTAG('S', 'S', 'A',  0 ) },
+    { AV_CODEC_ID_ASS,              MKTAG('A', 'S', 'S',  0 ) },
     { AV_CODEC_ID_DVD_SUBTITLE,     MKTAG('D', 'V', 'D', 'S') },
     { AV_CODEC_ID_DVB_SUBTITLE,     MKTAG('D', 'V', 'B', 'S') },
     { AV_CODEC_ID_DVB_TELETEXT,     MKTAG('D', 'V', 'B', 'T') },