We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c95ec70 commit 3ae962fCopy full SHA for 3ae962f
samples/drivers/video/capture/src/main.c
@@ -284,6 +284,12 @@ int main(void)
284
}
285
286
/* Alloc video buffers and enqueue for capture */
287
+ if (caps.min_vbuf_count > CONFIG_VIDEO_BUFFER_POOL_NUM_MAX ||
288
+ bsize > CONFIG_VIDEO_BUFFER_POOL_SZ_MAX) {
289
+ LOG_ERR("Not enough buffers or memory to start streaming");
290
+ return 0;
291
+ }
292
+
293
for (i = 0; i < CONFIG_VIDEO_BUFFER_POOL_NUM_MAX; i++) {
294
/*
295
* For some hardwares, such as the PxP used on i.MX RT1170 to do image rotation,
0 commit comments