diff options
| author | hathach <[email protected]> | 2021-10-17 16:26:27 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2021-10-17 16:36:53 +0700 |
| commit | a5f516893bbd539f11fb8d1cbb5b6db5a50fc632 (patch) | |
| tree | 1d9f344ae3b7ed1a56b27bcbb11c4ff9d1ae07de /examples/device/video_capture | |
| parent | 0b249618b0469529da748e3e5478751cd56acd31 (diff) | |
more with -Wcast-qual
Diffstat (limited to 'examples/device/video_capture')
| -rw-r--r-- | examples/device/video_capture/src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/device/video_capture/src/main.c b/examples/device/video_capture/src/main.c index a2d95c8f9..f1d48385f 100644 --- a/examples/device/video_capture/src/main.c +++ b/examples/device/video_capture/src/main.c @@ -166,7 +166,7 @@ void video_task(void) already_sent = 1; start_ms = board_millis(); #ifdef CFG_EXAMPLE_VIDEO_READONLY - tud_video_n_frame_xfer(0, 0, (void*)&frame_buffer[(frame_num % (FRAME_WIDTH / 2)) * 4], + tud_video_n_frame_xfer(0, 0, (void*)(uintptr_t) &frame_buffer[(frame_num % (FRAME_WIDTH / 2)) * 4], FRAME_WIDTH * FRAME_HEIGHT * 16/8); #else fill_color_bar(frame_buffer, frame_num); @@ -180,7 +180,7 @@ void video_task(void) start_ms += interval_ms; #ifdef CFG_EXAMPLE_VIDEO_READONLY - tud_video_n_frame_xfer(0, 0, (void*)&frame_buffer[(frame_num % (FRAME_WIDTH / 2)) * 4], + tud_video_n_frame_xfer(0, 0, (void*)(uintptr_t) &frame_buffer[(frame_num % (FRAME_WIDTH / 2)) * 4], FRAME_WIDTH * FRAME_HEIGHT * 16/8); #else fill_color_bar(frame_buffer, frame_num); |
