ff_alloc_packet: modify the size of the packet to match the requested size