lavf/concatdec: fix crash in case a file in script cannot be opened

This commit is contained in:
Stefano Sabatini 2013-12-18 14:56:36 +01:00
parent 8937af7b6f
commit aeccb522eb
1 changed files with 3 additions and 0 deletions

View File

@ -279,6 +279,9 @@ static int concat_read_packet(AVFormatContext *avf, AVPacket *pkt)
(ret = open_next_file(avf)) < 0)
break;
}
if (ret < 0)
return ret;
delta = av_rescale_q(cat->cur_file->start_time - cat->avf->start_time,
AV_TIME_BASE_Q,
cat->avf->streams[pkt->stream_index]->time_base);