libavformat/mxfdec.c: Report dark metadata keys only when they match no parser at all, not everytime they fail to match one.
Reviewed-by: Tomas Härdin <tomas.hardin@codemill.se> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
94ec82f14a
commit
12628e3369
@ -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)
|
if ((ret = mxf_parse_klv(mxf, klv, metadata->read, metadata->ctx_size, metadata->type)) < 0)
|
||||||
goto fail;
|
goto fail;
|
||||||
break;
|
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);
|
avio_skip(s->pb, klv.length);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/* FIXME avoid seek */
|
/* FIXME avoid seek */
|
||||||
if (!essence_offset) {
|
if (!essence_offset) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user