Browse Source

dnxhd: Print unknown header when found

tags/n2.7
Vittorio Giovara 10 years ago
parent
commit
d84429d41e
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libavcodec/dnxhddec.c

+ 3
- 1
libavcodec/dnxhddec.c View File

@@ -119,7 +119,9 @@ static int dnxhd_decode_header(DNXHDContext *ctx, AVFrame *frame,
} }


if (memcmp(buf, header_prefix, 5) && memcmp(buf, header_prefix444, 5)) { 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; return AVERROR_INVALIDDATA;
} }
if (buf[5] & 2) { /* interlaced */ if (buf[5] & 2) { /* interlaced */


Loading…
Cancel
Save