Skip to content
Snippets Groups Projects
Commit 4df5a6a2 authored by Srinath K R's avatar Srinath K R Committed by Timo Rothenpieler
Browse files

avfilter/vf_hwupload_cuda: Add min/max limits for the 'device' option

parent 120471da
No related branches found
No related tags found
No related merge requests found
...@@ -153,7 +153,7 @@ fail: ...@@ -153,7 +153,7 @@ fail:
#define OFFSET(x) offsetof(CudaUploadContext, x) #define OFFSET(x) offsetof(CudaUploadContext, x)
#define FLAGS (AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_VIDEO_PARAM) #define FLAGS (AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_VIDEO_PARAM)
static const AVOption cudaupload_options[] = { 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 }, { NULL },
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment