aboutsummaryrefslogtreecommitdiffstats
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:27:36 +0100
commit8a4b18c639b536d08926c96810a4d9628f422c9d (patch)
treed40cbc8ec201823a985baf5ae981b78e524637c0
parenta57b701bdc2083c2d5da85ed6b90ce644cd0f385 (diff)
downloadffmpeg-8a4b18c639b536d08926c96810a4d9628f422c9d.tar.gz
avfilter/vf_hwupload_cuda: Add min/max limits for the 'device' option
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
-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 c22221c699..0a6d031e00 100644
--- a/libavfilter/vf_hwupload_cuda.c
+++ b/libavfilter/vf_hwupload_cuda.c
@@ -191,7 +191,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 },
};