changeset 3146:2da3651f804d libavformat

just skip klv packet, when no corresponding stream is found
author bcoudurier
date Sun, 16 Mar 2008 17:54:36 +0000
parents 49989c8b181c
children 91d65fdf91e1
files mxf.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mxf.c	Sun Mar 16 15:13:40 2008 +0000
+++ b/mxf.c	Sun Mar 16 17:54:36 2008 +0000
@@ -350,8 +350,7 @@
             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;