summaryrefslogtreecommitdiff
path: root/libavcodec/dnxhddec.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2015-05-12 16:19:12 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-05-12 16:30:48 +0100
commitd84429d41e24437536907af1e6b73197ecf3f6db (patch)
tree4e092e9177f08c1cc1a4ebc75d3018e425f1fb7b /libavcodec/dnxhddec.c
parent8fc11abe1fea4f211cc7dbd58a173d1221627d90 (diff)
dnxhd: Print unknown header when found
Diffstat (limited to 'libavcodec/dnxhddec.c')
-rw-r--r--libavcodec/dnxhddec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/dnxhddec.c b/libavcodec/dnxhddec.c
index f821cb6b55..559fc3ae6d 100644
--- a/libavcodec/dnxhddec.c
+++ b/libavcodec/dnxhddec.c
@@ -119,7 +119,9 @@ static int dnxhd_decode_header(DNXHDContext *ctx, AVFrame *frame,
}
if (memcmp(buf, header_prefix, 5) && memcmp(buf, header_prefix444, 5)) {
- av_log(ctx->avctx, AV_LOG_ERROR, "error in header\n");
+ av_log(ctx->avctx, AV_LOG_ERROR,
+ "unknown header 0x%02X 0x%02X 0x%02X 0x%02X 0x%02X\n",
+ buf[0], buf[1], buf[2], buf[3], buf[4]);
return AVERROR_INVALIDDATA;
}
if (buf[5] & 2) { /* interlaced */