summaryrefslogtreecommitdiff
path: root/libavcodec/dnxhddec.c
diff options
context:
space:
mode:
authorMark Reid <mindmark@gmail.com>2016-07-11 19:07:21 -0700
committerMichael Niedermayer <michael@niedermayer.cc>2016-07-16 15:39:28 +0200
commited0dc14ebba1d2e65fe39b7e8c10359adbfba36f (patch)
tree95b876b469819132ff9b1f7dc7db6b99f42581ee /libavcodec/dnxhddec.c
parentdf9cc7f0a90cdaa2183040425623f479159f206d (diff)
libavcodec/dnxhd: add support more dnxhr header prefixes
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/dnxhddec.c')
-rw-r--r--libavcodec/dnxhddec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dnxhddec.c b/libavcodec/dnxhddec.c
index 18080803fa..5b60326a01 100644
--- a/libavcodec/dnxhddec.c
+++ b/libavcodec/dnxhddec.c
@@ -275,7 +275,7 @@ static int dnxhd_decode_header(DNXHDContext *ctx, AVFrame *frame,
ctx->bit_depth, ctx->mbaff, ctx->act);
// Newer format supports variable mb_scan_index sizes
- if (header_prefix == DNXHD_HEADER_HR2) {
+ if (ctx->mb_height > 68 && ff_dnxhd_check_header_prefix_hr(header_prefix)) {
ctx->data_offset = 0x170 + (ctx->mb_height << 2);
} else {
if (ctx->mb_height > 68 ||