[FFmpeg-cvslog] avfilter/vf_hwupload_cuda: Add min/max limits for the 'device' option

Srinath K R git at videolan.org
Thu Dec 8 12:24:03 EET 2016


ffmpeg | branch: master | Srinath K R <skr at nvidia.com> | Sat Dec  3 17:26:40 2016 +0530| [4df5a6a26a8aa08bbc6d027c2fb44fcf870e98d7] | committer: Timo Rothenpieler

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

Signed-off-by: Timo Rothenpieler <timo at rothenpieler.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4df5a6a26a8aa08bbc6d027c2fb44fcf870e98d7
---

 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 b9c2db6..49f34b6 100644
--- a/libavfilter/vf_hwupload_cuda.c
+++ b/libavfilter/vf_hwupload_cuda.c
@@ -153,7 +153,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 },
 };
 



More information about the ffmpeg-cvslog mailing list