mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-17 20:17:55 +02:00
lavf/concatdec: fix crash in case a file in script cannot be opened
This commit is contained in:
parent
8937af7b6f
commit
aeccb522eb
@ -279,6 +279,9 @@ static int concat_read_packet(AVFormatContext *avf, AVPacket *pkt)
|
|||||||
(ret = open_next_file(avf)) < 0)
|
(ret = open_next_file(avf)) < 0)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (ret < 0)
|
||||||
|
return ret;
|
||||||
|
|
||||||
delta = av_rescale_q(cat->cur_file->start_time - cat->avf->start_time,
|
delta = av_rescale_q(cat->cur_file->start_time - cat->avf->start_time,
|
||||||
AV_TIME_BASE_Q,
|
AV_TIME_BASE_Q,
|
||||||
cat->avf->streams[pkt->stream_index]->time_base);
|
cat->avf->streams[pkt->stream_index]->time_base);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user