drivers/video: Fix thumbnail size bug

Fix copy size to set thumbnail component, when thumbnail format is used
without clipping.
This commit is contained in:
SPRESENSE 2022-02-03 09:54:09 +09:00 committed by Petro Karashchenko
parent 9c57850466
commit c0ea6c5b49

View File

@ -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));
}
}