avpacket: properly reset data/size in av_packet_move_ref()