avpacket: Provide an alloc and a free function for the struct