summaryrefslogtreecommitdiff
path: root/libavformat/hlsenc.c
diff options
context:
space:
mode:
authorVishwanath Dixit <vdixit@akamai.com>2018-03-12 23:17:58 +0800
committerSteven Liu <lq@chinaffmpeg.org>2018-03-12 23:17:58 +0800
commit9c249110ea974ce213840fde5ee5a3d842fa088d (patch)
tree5ee3afd6db208ce31af712998e5dadbd243b15af /libavformat/hlsenc.c
parent41d7c4d3813b71d0feefb19c69f6a246ea2bdcee (diff)
downloadffmpeg-9c249110ea974ce213840fde5ee5a3d842fa088d.tar.gz
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@chinaffmpeg.org>
Diffstat (limited to 'libavformat/hlsenc.c')
-rw-r--r--libavformat/hlsenc.c2
1 files changed, 1 insertions, 1 deletions
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;
}