aboutsummaryrefslogtreecommitdiff
path: root/ffmpeg_opt.c
diff options
context:
space:
mode:
authorTimo Rothenpieler2016-06-04 19:07:21 +0200
committerTimo Rothenpieler2016-06-10 16:31:23 +0200
commitd865e74e6d78f27b85e29507da70e48b48e0993d (patch)
tree5786f004d5fb04c9c0e150fec1a7b8e94707170d /ffmpeg_opt.c
parent88e8aef9e9350e0452fc007887d0673196836fd1 (diff)
ffmpeg: Add cuvid hwaccel support
Diffstat (limited to 'ffmpeg_opt.c')
-rw-r--r--ffmpeg_opt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c
index c2174626be..7785a304cb 100644
--- a/ffmpeg_opt.c
+++ b/ffmpeg_opt.c
@@ -84,6 +84,9 @@ const HWAccel hwaccels[] = {
#if CONFIG_VAAPI
{ "vaapi", vaapi_decode_init, HWACCEL_VAAPI, AV_PIX_FMT_VAAPI },
#endif
+#if CONFIG_CUVID
+ { "cuvid", cuvid_init, HWACCEL_CUVID, AV_PIX_FMT_CUDA },
+#endif
{ 0 },
};
int hwaccel_lax_profile_check = 0;