1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

just skip klv packet, when no corresponding stream is found

Originally committed as revision 12464 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Baptiste Coudurier 2008-03-16 17:54:36 +00:00
parent b0605329c9
commit 8c2a207019

View File

@ -350,8 +350,7 @@ static int mxf_read_packet(AVFormatContext *s, AVPacket *pkt)
int index = mxf_get_stream_index(s, &klv);
if (index < 0) {
av_log(s, AV_LOG_ERROR, "error getting stream index\n");
url_fskip(s->pb, klv.length);
return -1;
goto skip;
}
if (s->streams[index]->discard == AVDISCARD_ALL)
goto skip;