mirror of
https://github.com/apache/nuttx.git
synced 2026-09-02 07:03:04 +00:00
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:
parent
9c57850466
commit
c0ea6c5b49
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue