From 3c2bb9cd9c4a734209174a77db4f6a7ba523c3a3 Mon Sep 17 00:00:00 2001 From: agalin89 Date: Fri, 26 Mar 2021 23:12:58 +0000 Subject: qsv: fix hevc/av1 10bit -> hevc 10bit --- libhb/qsv_common.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libhb/qsv_common.c b/libhb/qsv_common.c index b3664f860..546c43c82 100644 --- a/libhb/qsv_common.c +++ b/libhb/qsv_common.c @@ -1287,7 +1287,7 @@ int hb_qsv_decode_codec_supported_codec(int adapter_index, int video_codec_param if (pix_fmt == AV_PIX_FMT_NV12 || pix_fmt == AV_PIX_FMT_YUV420P || pix_fmt == AV_PIX_FMT_YUVJ420P || - pix_fmt == AV_PIX_FMT_YUV420P10LE) + pix_fmt == AV_PIX_FMT_YUV420P10) { return hb_qsv_decode_h264_is_supported(adapter_index); } @@ -1299,16 +1299,18 @@ int hb_qsv_decode_codec_supported_codec(int adapter_index, int video_codec_param { return hb_qsv_decode_h265_is_supported(adapter_index); } - else if (pix_fmt == AV_PIX_FMT_YUV420P10LE) + else if (pix_fmt == AV_PIX_FMT_P010LE || + pix_fmt == AV_PIX_FMT_YUV420P10) { return hb_qsv_decode_h265_10_bit_is_supported(adapter_index); } break; case AV_CODEC_ID_AV1: if (pix_fmt == AV_PIX_FMT_NV12 || + pix_fmt == AV_PIX_FMT_P010LE || pix_fmt == AV_PIX_FMT_YUV420P || pix_fmt == AV_PIX_FMT_YUVJ420P || - pix_fmt == AV_PIX_FMT_YUV420P10LE) + pix_fmt == AV_PIX_FMT_YUV420P10) { return hb_qsv_decode_av1_is_supported(adapter_index); } -- cgit v1.2.3