diff options
author | Vishwanath Dixit <vdixit@akamai.com> | 2018-01-24 11:42:57 +0800 |
---|---|---|
committer | Steven Liu <lq@chinaffmpeg.org> | 2018-01-24 11:42:57 +0800 |
commit | 1948b76a1beabbcf36480c4b2c2af891886ead88 (patch) | |
tree | d85253c6e3a52a5e08c3982ff2f173e35cf81642 /libavformat/hlsplaylist.c | |
parent | 8a4cc0a2567fa8418709f75af5539cdf76fefb99 (diff) | |
download | ffmpeg-1948b76a1beabbcf36480c4b2c2af891886ead88.tar.gz |
avformat/hlsenc: closed caption tags in the master playlist
Diffstat (limited to 'libavformat/hlsplaylist.c')
-rw-r--r-- | libavformat/hlsplaylist.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/hlsplaylist.c b/libavformat/hlsplaylist.c index b8a3a14090..efcbff0009 100644 --- a/libavformat/hlsplaylist.c +++ b/libavformat/hlsplaylist.c @@ -47,7 +47,8 @@ void ff_hls_write_audio_rendition(AVIOContext *out, char *agroup, void ff_hls_write_stream_info(AVStream *st, AVIOContext *out, int bandwidth, char *filename, char *agroup, - char *codecs) { + char *codecs, char *ccgroup) { + if (!out || !filename) return; @@ -65,6 +66,8 @@ void ff_hls_write_stream_info(AVStream *st, AVIOContext *out, avio_printf(out, ",CODECS=\"%s\"", codecs); if (agroup && strlen(agroup) > 0) avio_printf(out, ",AUDIO=\"group_%s\"", agroup); + if (ccgroup && strlen(ccgroup) > 0) + avio_printf(out, ",CLOSED-CAPTIONS=\"%s\"", ccgroup); avio_printf(out, "\n%s\n\n", filename); } |