From 7c9f739d864c0ed8f1b433d6a7d9f674edda9cf5 Mon Sep 17 00:00:00 2001 From: Philip Langdale Date: Thu, 16 Nov 2017 07:35:17 -0800 Subject: 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. --- libavcodec/mpeg12dec.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libavcodec/mpeg12dec.c') 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 -- cgit v1.2.1