avpacket: fix copying side data in av_packet_copy_props()
authorAnton Khirnov <anton@khirnov.net>
Sun, 18 May 2014 19:16:47 +0000 (21:16 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Thu, 26 Jun 2014 10:58:16 +0000 (12:58 +0200)
commit4ec1acc6e4f4d0bd28617bbb30ebfb779ce7df92
tree18f9fef5d7183080f50858c6f18a4898da34e6e6
parent74f6df745a05d3d8b3dcfc28992c69a70ae87957
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
(cherry picked from commit cdf58f0599c39852ee3beafe5f64af7d57d4215b)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/avpacket.c