avpacket: Fixing side data copy when src == dst