You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-06 06:27:36 +02:00
avcodec/dnxhddec: fix decoding of DNxHR HQX 10-bit
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
@ -249,7 +249,10 @@ static int dnxhd_decode_header(DNXHDContext *ctx, AVFrame *frame,
|
|||||||
ctx->decode_dct_block = dnxhd_decode_dct_block_12;
|
ctx->decode_dct_block = dnxhd_decode_dct_block_12;
|
||||||
ctx->pix_fmt = AV_PIX_FMT_YUV422P12;
|
ctx->pix_fmt = AV_PIX_FMT_YUV422P12;
|
||||||
} else if (bitdepth == 10) {
|
} else if (bitdepth == 10) {
|
||||||
ctx->decode_dct_block = dnxhd_decode_dct_block_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;
|
ctx->pix_fmt = AV_PIX_FMT_YUV422P10;
|
||||||
} else {
|
} else {
|
||||||
ctx->decode_dct_block = dnxhd_decode_dct_block_8;
|
ctx->decode_dct_block = dnxhd_decode_dct_block_8;
|
||||||
|
Reference in New Issue
Block a user