mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-03-13 11:03:43 +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) {
|
void picture_copy(const struct picture_t *src, struct picture_t *dest) {
|
||||||
assert(src->allocated);
|
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
|
# define COPY(_field) dest->_field = src->_field
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user