Commit c27939d8 authored by Nicolas George's avatar Nicolas George

lavf/concatdec: check match_streams() return value.

parent e973cf04
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment