summaryrefslogtreecommitdiff
path: root/avconv_cuvid.c
diff options
context:
space:
mode:
Diffstat (limited to 'avconv_cuvid.c')
-rw-r--r--avconv_cuvid.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/avconv_cuvid.c b/avconv_cuvid.c
index 5c4d21c887..440287ebaa 100644
--- a/avconv_cuvid.c
+++ b/avconv_cuvid.c
@@ -69,15 +69,6 @@ int cuvid_transcode_init(OutputStream *ost)
ist = input_streams[ost->source_index];
- /* check if the encoder supports CUVID */
- if (!ost->enc->pix_fmts)
- goto cancel;
- for (pix_fmt = ost->enc->pix_fmts; *pix_fmt != AV_PIX_FMT_NONE; pix_fmt++)
- if (*pix_fmt == AV_PIX_FMT_CUDA)
- break;
- if (*pix_fmt == AV_PIX_FMT_NONE)
- goto cancel;
-
/* check if the decoder supports CUVID */
if (ist->hwaccel_id != HWACCEL_CUVID || !ist->dec || !ist->dec->pix_fmts)
goto cancel;