mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-02-28 12:46:32 +00:00
fixed picture_copy(): don't copy garbage
This commit is contained in:
@@ -75,7 +75,7 @@ void picture_append_data(struct picture_t *picture, const unsigned char *data, s
|
||||
void picture_copy(const struct picture_t *src, struct picture_t *dest) {
|
||||
assert(src->allocated);
|
||||
|
||||
picture_set_data(dest, src->data, src->allocated);
|
||||
picture_set_data(dest, src->data, src->used);
|
||||
|
||||
# define COPY(_field) dest->_field = src->_field
|
||||
|
||||
|
||||
Reference in New Issue
Block a user