avformat/hlsenc: make the EXT-X-MEDIA NAME field by stream id.
authorSteven Liu <lq@chinaffmpeg.org>
Mon, 21 Jan 2019 08:32:57 +0000 (16:32 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Thu, 31 Jan 2019 08:16:53 +0000 (16:16 +0800)
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
libavformat/hlsenc.c

index ca57694..eb094f7 100644 (file)
@@ -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);
     }