mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/concatdec: only set output stream index before returning packet
Fixes ticket #6434. Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
parent
5710fdaeae
commit
37d472a906
@ -603,7 +603,6 @@ static int concat_read_packet(AVFormatContext *avf, AVPacket *pkt)
|
||||
av_packet_unref(pkt);
|
||||
continue;
|
||||
}
|
||||
pkt->stream_index = cs->out_stream_index;
|
||||
break;
|
||||
}
|
||||
if ((ret = filter_packet(avf, cs, pkt)))
|
||||
@ -646,6 +645,7 @@ static int concat_read_packet(AVFormatContext *avf, AVPacket *pkt)
|
||||
}
|
||||
}
|
||||
|
||||
pkt->stream_index = cs->out_stream_index;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user