summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2016-06-04 19:07:21 +0200
committerTimo Rothenpieler <timo@rothenpieler.org>2016-06-10 16:31:23 +0200
commitd865e74e6d78f27b85e29507da70e48b48e0993d (patch)
tree5786f004d5fb04c9c0e150fec1a7b8e94707170d /ffmpeg.c
parent88e8aef9e9350e0452fc007887d0673196836fd1 (diff)
ffmpeg: Add cuvid hwaccel support
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 7c60075fa4..652774f6cc 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3063,6 +3063,11 @@ static int transcode_init(void)
exit_program(1);
#endif
+#if CONFIG_CUVID
+ if (cuvid_transcode_init(ost))
+ exit_program(1);
+#endif
+
if (!ost->filter &&
(enc_ctx->codec_type == AVMEDIA_TYPE_VIDEO ||
enc_ctx->codec_type == AVMEDIA_TYPE_AUDIO)) {