diff options
author | Srinath K R <skr@nvidia.com> | 2016-12-03 17:08:40 +0530 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2016-12-08 11:26:34 +0100 |
commit | 314c425b16aec71b2e8d58ea090a0e0060911833 (patch) | |
tree | e1c6a965e264753848d8a63680e1a2d00ec7651c | |
parent | 148c4fb8d203fdef8589ccef56a995724938918b (diff) | |
download | ffmpeg-314c425b16aec71b2e8d58ea090a0e0060911833.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.c | 2 |
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 }, }; |