summaryrefslogtreecommitdiff
path: root/libavfilter/vf_hwupload_cuda.c
diff options
context:
space:
mode:
authorSrinath K R <skr@nvidia.com>2016-12-03 17:08:40 +0530
committerTimo Rothenpieler <timo@rothenpieler.org>2016-12-08 11:11:26 +0100
commit4df5a6a26a8aa08bbc6d027c2fb44fcf870e98d7 (patch)
tree9c368c166ecb9906454cea8a33fab14e6f563162 /libavfilter/vf_hwupload_cuda.c
parent120471da2d39806802e68b9efb50eb29c76b7be6 (diff)
downloadffmpeg-4df5a6a26a8aa08bbc6d027c2fb44fcf870e98d7.tar.gz
avfilter/vf_hwupload_cuda: Add min/max limits for the 'device' option
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Diffstat (limited to 'libavfilter/vf_hwupload_cuda.c')
-rw-r--r--libavfilter/vf_hwupload_cuda.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_hwupload_cuda.c b/libavfilter/vf_hwupload_cuda.c
index b9c2db674f..49f34b6c52 100644
--- a/libavfilter/vf_hwupload_cuda.c
+++ b/libavfilter/vf_hwupload_cuda.c
@@ -153,7 +153,7 @@ fail:
#define OFFSET(x) offsetof(CudaUploadContext, x)
#define FLAGS (AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_VIDEO_PARAM)
static const AVOption cudaupload_options[] = {
- { "device", "Number of the device to use", OFFSET(device_idx), AV_OPT_TYPE_INT, { .i64 = 0 }, .flags = FLAGS },
+ { "device", "Number of the device to use", OFFSET(device_idx), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX, FLAGS },
{ NULL },
};