diff options
author | Philip Langdale <philipl@overt.org> | 2017-11-16 07:35:17 -0800 |
---|---|---|
committer | Philip Langdale <philipl@overt.org> | 2017-11-18 08:13:50 -0800 |
commit | 7c9f739d864c0ed8f1b433d6a7d9f674edda9cf5 (patch) | |
tree | 46a05dceb3641504c0a31cdd3ab687415bcbb1d8 /libavcodec/mpeg12dec.c | |
parent | 5a0f6b099f3e8fcb95a80e3ffe52b3bf369efe24 (diff) | |
download | ffmpeg-7c9f739d864c0ed8f1b433d6a7d9f674edda9cf5.tar.gz |
avcodec: Implement mpeg2 nvdec hwaccel
This is mostly straight-forward. The weird part is that it should
just work for mpeg1, but I see corruption in my test cases, so I'm
going to try and fix that separately.
Diffstat (limited to 'libavcodec/mpeg12dec.c')
-rw-r--r-- | libavcodec/mpeg12dec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c index d5bc5f21b2..2b213eebcd 100644 --- a/libavcodec/mpeg12dec.c +++ b/libavcodec/mpeg12dec.c @@ -1141,6 +1141,9 @@ static const enum AVPixelFormat mpeg1_hwaccel_pixfmt_list_420[] = { }; static const enum AVPixelFormat mpeg2_hwaccel_pixfmt_list_420[] = { +#if CONFIG_MPEG2_NVDEC_HWACCEL + AV_PIX_FMT_CUDA, +#endif #if CONFIG_MPEG2_XVMC_HWACCEL AV_PIX_FMT_XVMC, #endif |