PeterBee97 commented on code in PR #7687:
URL: https://github.com/apache/nuttx/pull/7687#discussion_r1041102919


##########
drivers/video/video.c:
##########
@@ -1172,17 +1195,63 @@ static int video_reqbufs(FAR struct video_mng_s         
*vmng,
     }
   else
     {
+      if (reqbufs->count > CONFIG_VIDEO_REQBUFS_COUNT_MAX)
+        {
+          reqbufs->count = CONFIG_VIDEO_REQBUFS_COUNT_MAX;
+        }
+
       video_framebuff_change_mode(&type_inf->bufinf, reqbufs->mode);
 
       ret = video_framebuff_realloc_container(&type_inf->bufinf,

Review Comment:
   And also remove everything related to V4L2_REQBUFS_COUNT_MAX?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to