Skip to content

Commit

Permalink
Merge pull request #2582 from HiFiPhile/uvc_typo
Browse files Browse the repository at this point in the history
Fix pointer typo in video_capture_2ch
  • Loading branch information
hathach committed Apr 9, 2024
2 parents 9e22718 + 455a287 commit 9506e2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/device/video_capture_2ch/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
// stream 0 use uncompressed YUY2 frame
#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
fill_color_bar(framebuf_yuy2, frame_num[idx]);
*fb = framebuf_yuy2;
Expand Down

0 comments on commit 9506e2c

Please sign in to comment.