Browse Source

just skip klv packet, when no corresponding stream is found

Originally committed as revision 12464 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Baptiste Coudurier 17 years ago
parent
commit
8c2a207019
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavformat/mxf.c

+ 1
- 2
libavformat/mxf.c 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;


Loading…
Cancel
Save