Module: libav
Branch: master
Commit: dbfe60caca2e8323efa7aba6762dce7be2eba390

Author:    Ruta Gadkari <[email protected]>
Committer: Vittorio Giovara <[email protected]>
Date:      Thu Dec  8 15:22:46 2016 +0530

vf_hwupload_cuda: Add min/max limits for device option

---

 libavfilter/vf_hwupload_cuda.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_hwupload_cuda.c b/libavfilter/vf_hwupload_cuda.c
index b5631c2..adb2e81 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 },
 };
 

_______________________________________________
libav-commits mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to