ffmpeg | branch: master | Paul B Mahol <one...@gmail.com> | Wed Feb 22 14:47:43 2017 +0100| [2c5839254daa069fedcd4355987776b836889af7] | committer: Paul B Mahol
avcodec/dnxhddec: fix decoding of DNxHR HQX 10-bit Signed-off-by: Paul B Mahol <one...@gmail.com> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2c5839254daa069fedcd4355987776b836889af7 --- libavcodec/dnxhddec.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavcodec/dnxhddec.c b/libavcodec/dnxhddec.c index 70ce264..defbf10 100644 --- a/libavcodec/dnxhddec.c +++ b/libavcodec/dnxhddec.c @@ -249,7 +249,10 @@ 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) { - 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; } else { ctx->decode_dct_block = dnxhd_decode_dct_block_8; _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog