public AVPacket() { AutoGen.AVPacket packet = new AutoGen.AVPacket(); _handle = GCHandle.Alloc(packet, GCHandleType.Pinned); _packet = (AutoGen.AVPacket*)_handle.AddrOfPinnedObject().ToPointer(); }
public AVPacket(AutoGen.AVPacket* packet) { _packet = packet; }