diff --git a/drivers/video/video.c b/drivers/video/video.c index 462639b68c9..f4a3dfbfd44 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)); } }