mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-30 15:00:29 +00:00
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>
This commit is contained in:
parent
41d7c4d381
commit
9c249110ea
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user