From c0ea6c5b49ca0f3a0cab0853f2c52e1e77cfd97e Mon Sep 17 00:00:00 2001 From: SPRESENSE <41312067+SPRESENSE@users.noreply.github.com> Date: Thu, 3 Feb 2022 09:54:09 +0900 Subject: [PATCH] drivers/video: Fix thumbnail size bug Fix copy size to set thumbnail component, when thumbnail format is used without clipping. --- drivers/video/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/video.c b/drivers/video/video.c index 462639b68c..f4a3dfbfd4 100644 --- a/drivers/video/video.c +++ b/drivers/video/video.c @@ -635,7 +635,7 @@ static void get_clipped_format(uint8_t nr_fmt, } else { - memcpy(c_fmt, fmt, sizeof(video_format_t)); + memcpy(c_fmt, fmt, nr_fmt * sizeof(video_format_t)); } }