diff options
author | Vishwanath Dixit <vdixit@akamai.com> | 2017-12-23 13:42:00 +0800 |
---|---|---|
committer | Steven Liu <lq@chinaffmpeg.org> | 2017-12-23 13:42:00 +0800 |
commit | d02289c386ecf1c07f2441674c550008cb869d50 (patch) | |
tree | 30d85058034f7fb02485e6bc7e7509f187c07db3 /libavformat/hlsplaylist.c | |
parent | 4c78bbd3136a43347a112dd45ac60685c61bf425 (diff) | |
download | ffmpeg-d02289c386ecf1c07f2441674c550008cb869d50.tar.gz |
avformat/hlsenc:addition of #EXT-X-MEDIA tag and AUDIO attribute
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
Diffstat (limited to 'libavformat/hlsplaylist.c')
-rw-r--r-- | libavformat/hlsplaylist.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/hlsplaylist.c b/libavformat/hlsplaylist.c index 3349eb7ee3..42f059aec9 100644 --- a/libavformat/hlsplaylist.c +++ b/libavformat/hlsplaylist.c @@ -36,7 +36,7 @@ void ff_hls_write_playlist_version(AVIOContext *out, int version) { } void ff_hls_write_stream_info(AVStream *st, AVIOContext *out, - int bandwidth, char *filename) { + int bandwidth, char *filename, char *agroup) { if (!out || !filename) return; @@ -50,6 +50,8 @@ void ff_hls_write_stream_info(AVStream *st, AVIOContext *out, if (st && st->codecpar->width > 0 && st->codecpar->height > 0) avio_printf(out, ",RESOLUTION=%dx%d", st->codecpar->width, st->codecpar->height); + if (agroup && strlen(agroup) > 0) + avio_printf(out, ",AUDIO=\"group_%s\"", agroup); avio_printf(out, "\n%s\n\n", filename); } |