Browse Source

vf_hwupload_cuda: Add min/max limits for device option

tags/n3.4
Ruta Gadkari Vittorio Giovara 9 years ago
parent
commit
dbfe60caca
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/vf_hwupload_cuda.c

+ 1
- 1
libavfilter/vf_hwupload_cuda.c View File

@@ -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 },
};



Loading…
Cancel
Save