mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-24 17:12:34 +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:
parent
8b768f68b0
commit
2c5839254d
@ -249,6 +249,9 @@ 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) {
|
||||||
|
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->decode_dct_block = dnxhd_decode_dct_block_10;
|
||||||
ctx->pix_fmt = AV_PIX_FMT_YUV422P10;
|
ctx->pix_fmt = AV_PIX_FMT_YUV422P10;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user