lavf/concatdec: check match_streams() return value.

This commit is contained in:
Nicolas George 2014-04-14 10:38:36 +02:00
parent e973cf04f6
commit c27939d871

View File

@ -369,7 +369,10 @@ static int concat_read_packet(AVFormatContext *avf, AVPacket *pkt)
if (ret < 0)
return ret;
if (cat->match_streams) {
match_streams(avf);
if ((ret = match_streams(avf)) < 0) {
av_packet_unref(pkt);
return ret;
}
cs = &cat->cur_file->streams[pkt->stream_index];
if (cs->out_stream_index < 0) {
av_packet_unref(pkt);