[FFmpeg-cvslog] avformat/hlsenc: fix for zero EXTINF tag duration

Vishwanath Dixit git at videolan.org
Mon Mar 12 17:21:10 EET 2018


ffmpeg | branch: master | Vishwanath Dixit <vdixit at akamai.com> | Mon Mar 12 23:17:58 2018 +0800| [9c249110ea974ce213840fde5ee5a3d842fa088d] | committer: Steven Liu

avformat/hlsenc: fix for zero EXTINF tag duration

This is the fix for bug https://trac.ffmpeg.org/ticket/7073

Tested-by: Brainiarc7
Reviewed-by: Steven Liu <lq at chinaffmpeg.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9c249110ea974ce213840fde5ee5a3d842fa088d
---

 libavformat/hlsenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 08fe0aa7a0..7d9512b664 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -2501,7 +2501,7 @@ static int hls_init(AVFormatContext *s)
             /* Get one video stream to reference for split segments
              * so use the first video stream index. */
             if ((vs->has_video == 1) && (vs->streams[j]->codecpar->codec_type == AVMEDIA_TYPE_VIDEO)) {
-                vs->reference_stream_index = j;
+                vs->reference_stream_index = vs->streams[j]->index;
             }
             vs->has_subtitle += vs->streams[j]->codecpar->codec_type == AVMEDIA_TYPE_SUBTITLE;
         }



More information about the ffmpeg-cvslog mailing list