[FFmpeg-devel] [PATCH 1/3] avformat/hlsenc: make the EXT-X-MEDIA NAME field by stream id.

Steven Liu lq at chinaffmpeg.org
Wed Jan 23 13:24:08 EET 2019


Signed-off-by: Steven Liu <lq at chinaffmpeg.org>
---
 libavformat/hlsenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index ca57694e9e..eb094f7490 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -1258,7 +1258,7 @@ static int create_master_playlist(AVFormatContext *s,
             goto fail;
         }
 
-        ff_hls_write_audio_rendition(hls->m3u8_out, vs->agroup, m3u8_rel_name, 0, 1);
+        ff_hls_write_audio_rendition(hls->m3u8_out, vs->agroup, m3u8_rel_name, i, 1);
 
         av_freep(&m3u8_rel_name);
     }
-- 
2.15.2 (Apple Git-101.1)





More information about the ffmpeg-devel mailing list