summaryrefslogtreecommitdiff
path: root/libavcodec/nvenc.c
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2022-11-14 23:10:20 +0100
committerTimo Rothenpieler <timo@rothenpieler.org>2022-11-14 23:10:20 +0100
commitc7a60124e37d4838d9b113d3a91249f4f1913cfb (patch)
treef190140210f419f74362cb846e0e5dd6316396f5 /libavcodec/nvenc.c
parent9bbd3b3b17487a37a4c9669e17ec3ac5968da978 (diff)
downloadffmpeg-c7a60124e37d4838d9b113d3a91249f4f1913cfb.tar.gz
avcodec/nvenc: add forgotten X2RGB10 formats to 10-bit-list
Diffstat (limited to 'libavcodec/nvenc.c')
-rw-r--r--libavcodec/nvenc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index 7df11e5866..b803e72cca 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -82,6 +82,8 @@ const AVCodecHWConfigInternal *const ff_nvenc_hw_configs[] = {
#define IS_10BIT(pix_fmt) (pix_fmt == AV_PIX_FMT_P010 || \
pix_fmt == AV_PIX_FMT_P016 || \
pix_fmt == AV_PIX_FMT_YUV444P16 || \
+ pix_fmt == AV_PIX_FMT_X2RGB10 || \
+ pix_fmt == AV_PIX_FMT_X2BGR10 || \
pix_fmt == AV_PIX_FMT_GBRP16)
#define IS_YUV444(pix_fmt) (pix_fmt == AV_PIX_FMT_YUV444P || \