Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSrinath K R <skr@nvidia.com>2016-12-03 14:38:40 +0300
committerTimo Rothenpieler <timo@rothenpieler.org>2016-12-08 13:11:26 +0300
commit4df5a6a26a8aa08bbc6d027c2fb44fcf870e98d7 (patch)
tree9c368c166ecb9906454cea8a33fab14e6f563162 /libavfilter/vf_hwupload_cuda.c
parent120471da2d39806802e68b9efb50eb29c76b7be6 (diff)
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 },
};