avpacket: fix setting AVPacket.data in av_packet_ref()
authorAnton Khirnov <anton@khirnov.net>
Thu, 12 May 2016 13:34:58 +0000 (15:34 +0200)
committerAnton Khirnov <anton@khirnov.net>
Mon, 16 May 2016 08:31:08 +0000 (10:31 +0200)
commit8996515b137f962e3a8691241c285c96437b6c53
tree06ef1c0c3bc3138593cd52e62a14a45813554f6a
parente62ff72fc1052273deb708ba715f73e5187281d4
avpacket: fix setting AVPacket.data in av_packet_ref()

The data field does not necessarily point to the beginning of the
underlying AVBuffer.

CC: libav-stable@libav.org
libavcodec/avpacket.c