avcodec/dnxhddec: fix decoding of DNxHR HQX 10-bit
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
@ -249,6 +249,9 @@ static int dnxhd_decode_header(DNXHDContext *ctx, AVFrame *frame,
|
||||
ctx->decode_dct_block = dnxhd_decode_dct_block_12;
|
||||
ctx->pix_fmt = AV_PIX_FMT_YUV422P12;
|
||||
} else if (bitdepth == 10) {
|
||||
if (ctx->avctx->profile == FF_PROFILE_DNXHR_HQX)
|
||||
ctx->decode_dct_block = dnxhd_decode_dct_block_10_444;
|
||||
else
|
||||
ctx->decode_dct_block = dnxhd_decode_dct_block_10;
|
||||
ctx->pix_fmt = AV_PIX_FMT_YUV422P10;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user