Browse Source

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

tags/n2.2-rc1
Stefano Sabatini 11 years ago
parent
commit
aeccb522eb
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavformat/concatdec.c

+ 3
- 0
libavformat/concatdec.c 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);


Loading…
Cancel
Save