diff options
author | Karthick Jeyapal <kjeyapal@akamai.com> | 2017-12-29 13:45:31 +0800 |
---|---|---|
committer | Steven Liu <lq@chinaffmpeg.org> | 2017-12-29 13:45:31 +0800 |
commit | 9e25fe420410c0e1b77cc68f53cc0cd2f79ba30a (patch) | |
tree | 67ffc04c8091fa5cffd74df29acf0f546a2423c3 /libavformat/hlsenc.c | |
parent | d01eeef4a2297dcc1fd9f125bed6bd8d1bed3b29 (diff) | |
download | ffmpeg-9e25fe420410c0e1b77cc68f53cc0cd2f79ba30a.tar.gz |
avformat/hlsenc: Modularized audio rendition playlist write to allow reuse
Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
Diffstat (limited to 'libavformat/hlsenc.c')
-rw-r--r-- | libavformat/hlsenc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 74f66ce6bd..fe531fb43d 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -1169,10 +1169,8 @@ static int create_master_playlist(AVFormatContext *s, goto fail; } - avio_printf(hls->m3u8_out, "#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID=\"group_%s\"", - vs->agroup); - avio_printf(hls->m3u8_out, ",NAME=\"audio_0\",DEFAULT=YES,URI=\"%s\"\n", - m3u8_rel_name); + ff_hls_write_audio_rendition(hls->m3u8_out, vs->agroup, m3u8_rel_name); + av_freep(&m3u8_rel_name); } |