]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/hlsplaylist.c
avfilter/af_afir: make max IR length configurable
[ffmpeg] / libavformat / hlsplaylist.c
index b8a3a1409034aaacf3a5867b1fffb0c46799e2b2..efcbff0009db775323dcdd2128a1f7b4082510df 100644 (file)
@@ -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);
 }