avpacket: copy side data type and size in av_dup_packet