just skip klv packet, when no corresponding stream is found
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Sun, 16 Mar 2008 17:54:36 +0000 (17:54 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Sun, 16 Mar 2008 17:54:36 +0000 (17:54 +0000)
Originally committed as revision 12464 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/mxf.c

index 5a824acdf3b8e7a5c01e19408d83a306346b99b0..4d4bcbb35d1a78948719faa87658fc38d213fe0d 100644 (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;