summaryrefslogtreecommitdiff
path: root/libavcodec/avpacket.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-05-18 21:16:47 +0200
committerAnton Khirnov <anton@khirnov.net>2014-05-19 13:12:40 +0200
commitcdf58f0599c39852ee3beafe5f64af7d57d4215b (patch)
tree5583dbc62c53575fe34038edc213cc6a72930815 /libavcodec/avpacket.c
parenta312f71090ee620ee252f2034aef6b13e2dafe9c (diff)
avpacket: fix copying side data in av_packet_copy_props()
Side data count is incremented by by calling av_packet_new_side_data() in the following loop, setting it explicitly results in the resulting value being twice what it should be. CC: libav-stable@libav.org
Diffstat (limited to 'libavcodec/avpacket.c')
-rw-r--r--libavcodec/avpacket.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c
index c0a0f8cd7b..052aaf8638 100644
--- a/libavcodec/avpacket.c
+++ b/libavcodec/avpacket.c
@@ -325,7 +325,6 @@ int av_packet_copy_props(AVPacket *dst, const AVPacket *src)
dst->convergence_duration = src->convergence_duration;
dst->flags = src->flags;
dst->stream_index = src->stream_index;
- dst->side_data_elems = src->side_data_elems;
for (i = 0; i < src->side_data_elems; i++) {
enum AVPacketSideDataType type = src->side_data[i].type;