diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-06-02 13:49:13 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-06-03 10:22:42 +0200 |
commit | cf3a1948e946ed7e98d0427da75e5dadb84aa51d (patch) | |
tree | a79f92e9c2c9e25274b9048d42720a8885060a73 /libavcodec | |
parent | 21e2dc9fb76bc34fcdedf32e4ce820d6cdf923fb (diff) | |
download | ffmpeg-cf3a1948e946ed7e98d0427da75e5dadb84aa51d.tar.gz |
avpacket: fix duplicating side data.
Use correct side data size instead of just zeroed field.
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/avpacket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c index 5e2292de28..4b85081e7b 100644 --- a/libavcodec/avpacket.c +++ b/libavcodec/avpacket.c @@ -146,7 +146,7 @@ int av_dup_packet(AVPacket *pkt) pkt->side_data_elems * sizeof(*pkt->side_data)); for (i = 0; i < pkt->side_data_elems; i++) DUP_DATA(pkt->side_data[i].data, tmp_pkt.side_data[i].data, - pkt->side_data[i].size, 1); + tmp_pkt.side_data[i].size, 1); } } return 0; |