summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorRuta Gadkari <rgadkari@nvidia.com>2016-12-08 15:04:46 +0530
committerVittorio Giovara <vittorio.giovara@gmail.com>2016-12-08 15:58:31 -0500
commitdbfe60caca2e8323efa7aba6762dce7be2eba390 (patch)
treec891cc718b0b8b50cf496265e73096ded383710a /libavfilter
parent4efea4ce75fbea3e5f8be8040068bfaaffbb2718 (diff)
downloadffmpeg-dbfe60caca2e8323efa7aba6762dce7be2eba390.tar.gz
vf_hwupload_cuda: Add min/max limits for device option
Diffstat (limited to 'libavfilter')
-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 b5631c2b86..adb2e812dc 100644
--- a/libavfilter/vf_hwupload_cuda.c
+++ b/libavfilter/vf_hwupload_cuda.c
@@ -187,7 +187,7 @@ fail:
#define OFFSET(x) offsetof(CudaUploadContext, x)
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM
static const AVOption 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 },
};