summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoragalin89 <[email protected]>2021-03-26 23:12:58 +0000
committerScott <[email protected]>2021-03-29 15:20:56 +0100
commit3c2bb9cd9c4a734209174a77db4f6a7ba523c3a3 (patch)
tree7053dea58e80ac5746817a31166784b469cf39cc
parent16b8a512241d5515ae02251e9f59eead2cac8a97 (diff)
qsv: fix hevc/av1 10bit -> hevc 10bit
-rw-r--r--libhb/qsv_common.c8
1 files 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);
}