Commit 9c249110 authored by Vishwanath Dixit's avatar Vishwanath Dixit Committed by 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: 's avatarSteven Liu <lq@chinaffmpeg.org>
parent 41d7c4d3
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment