diff options
author | Philip Langdale <philipl@overt.org> | 2018-02-25 09:44:23 -0800 |
---|---|---|
committer | Philip Langdale <philipl@overt.org> | 2018-03-02 14:28:13 -0800 |
commit | e990713ff9e39418318b2ca8dd8ab432e5e55c7c (patch) | |
tree | cd41504c9a813a45d6d5cdbafcafa94b8dec8d69 /libavcodec/hevcdec.c | |
parent | 61c972384d311508d07f9360d196909e27195655 (diff) | |
download | ffmpeg-e990713ff9e39418318b2ca8dd8ab432e5e55c7c.tar.gz |
avcodec/hevcdec: Declare that nvdec supports 12bit decoding
Diffstat (limited to 'libavcodec/hevcdec.c')
-rw-r--r-- | libavcodec/hevcdec.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c index fc4eb781dc..c8877626d2 100644 --- a/libavcodec/hevcdec.c +++ b/libavcodec/hevcdec.c @@ -408,6 +408,11 @@ static enum AVPixelFormat get_format(HEVCContext *s, const HEVCSPS *sps) *fmt++ = AV_PIX_FMT_CUDA; #endif break; + case AV_PIX_FMT_YUV420P12: +#if CONFIG_HEVC_NVDEC_HWACCEL + *fmt++ = AV_PIX_FMT_CUDA; +#endif + break; } *fmt++ = sps->pix_fmt; |