frameThe frame.frameOffsetInPacketThe offset inside the packet that the frame points to.
-1 on failure, otherwise the packet that represents the specified frame. Additionally, the offset within the packet is returned in the out parameter.