mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-31 05:52:55 +08:00
Merge pull request #2582 from HiFiPhile/uvc_typo
Fix pointer typo in video_capture_2ch
This commit is contained in:
commit
9506e2c972
@ -184,7 +184,7 @@ size_t get_framebuf(uint_fast8_t ctl_idx, uint_fast8_t stm_idx, size_t fnum, voi
|
|||||||
if (idx == 0) {
|
if (idx == 0) {
|
||||||
// stream 0 use uncompressed YUY2 frame
|
// stream 0 use uncompressed YUY2 frame
|
||||||
#if defined(CFG_EXAMPLE_VIDEO_READONLY)
|
#if defined(CFG_EXAMPLE_VIDEO_READONLY)
|
||||||
*fb = (void*)(uintptr_t ) framebuf_yuy2_readonly[(fnum % (FRAME_WIDTH / 2)) * 4];
|
*fb = (void*)(uintptr_t ) &framebuf_yuy2_readonly[(fnum % (FRAME_WIDTH / 2)) * 4];
|
||||||
#else
|
#else
|
||||||
fill_color_bar(framebuf_yuy2, frame_num[idx]);
|
fill_color_bar(framebuf_yuy2, frame_num[idx]);
|
||||||
*fb = framebuf_yuy2;
|
*fb = framebuf_yuy2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user