Commit 32207efa authored by bcoudurier's avatar bcoudurier

just skip klv packet, when no corresponding stream is found

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12464 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent fa5cf964
...@@ -350,8 +350,7 @@ static int mxf_read_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -350,8 +350,7 @@ static int mxf_read_packet(AVFormatContext *s, AVPacket *pkt)
int index = mxf_get_stream_index(s, &klv); int index = mxf_get_stream_index(s, &klv);
if (index < 0) { if (index < 0) {
av_log(s, AV_LOG_ERROR, "error getting stream index\n"); av_log(s, AV_LOG_ERROR, "error getting stream index\n");
url_fskip(s->pb, klv.length); goto skip;
return -1;
} }
if (s->streams[index]->discard == AVDISCARD_ALL) if (s->streams[index]->discard == AVDISCARD_ALL)
goto skip; goto skip;
......
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