From 12628e3369de1dcd6a2de21e089ee007e2cf951a Mon Sep 17 00:00:00 2001 From: Alexis Ballier Date: Wed, 21 Oct 2015 18:00:57 +0200 Subject: libavformat/mxfdec.c: Report dark metadata keys only when they match no parser at all, not everytime they fail to match one. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Tomas Härdin Signed-off-by: Michael Niedermayer --- libavformat/mxfdec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libavformat') diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index 02298b5879..99c8fede02 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -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) { -- cgit v1.2.3