diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2016-06-04 19:07:21 +0200 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2016-06-10 16:31:23 +0200 |
commit | d865e74e6d78f27b85e29507da70e48b48e0993d (patch) | |
tree | 5786f004d5fb04c9c0e150fec1a7b8e94707170d /ffmpeg.c | |
parent | 88e8aef9e9350e0452fc007887d0673196836fd1 (diff) |
ffmpeg: Add cuvid hwaccel support
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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)) { |