diff options
author | Baptiste Coudurier | 2008-03-16 17:54:36 +0000 |
---|---|---|
committer | Baptiste Coudurier | 2008-03-16 17:54:36 +0000 |
commit | 8c2a20701959c2062dbb314a9d5341a9744d7c02 (patch) | |
tree | 327c9fd1ade8278cbbb3a14dcf449ec0d199ba40 /libavformat/mxf.c | |
parent | b0605329c941156c44ada5fc113afbbf27b9eb75 (diff) |
just skip klv packet, when no corresponding stream is found
Originally committed as revision 12464 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mxf.c')
-rw-r--r-- | libavformat/mxf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/mxf.c b/libavformat/mxf.c index 5a824acdf3..4d4bcbb35d 100644 --- a/libavformat/mxf.c +++ b/libavformat/mxf.c @@ -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; |