libavformat/mxfdec.c: Report dark metadata keys only when they match no parser at...
authorAlexis Ballier <aballier@gentoo.org>
Wed, 21 Oct 2015 16:00:57 +0000 (18:00 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 21 Oct 2015 22:53:35 +0000 (00:53 +0200)
Reviewed-by: Tomas Härdin <tomas.hardin@codemill.se>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mxfdec.c

index 02298b5..99c8fed 100644 (file)
@@ -2765,13 +2765,13 @@ static int mxf_read_header(AVFormatContext *s)
                 if ((ret = mxf_parse_klv(mxf, klv, metadata->read, metadata->ctx_size, metadata->type)) < 0)
                     goto fail;
                 break;
-            } else {
-                av_log(s, AV_LOG_VERBOSE, "Dark key " PRIxUID "\n",
-                       UID_ARG(klv.key));
             }
         }
-        if (!metadata->read)
+        if (!metadata->read) {
+            av_log(s, AV_LOG_VERBOSE, "Dark key " PRIxUID "\n",
+                            UID_ARG(klv.key));
             avio_skip(s->pb, klv.length);
+        }
     }
     /* FIXME avoid seek */
     if (!essence_offset)  {