def _seek_packet(self, packet_no):
        if packet_no == self._packet_cursor:
            # We have the right packet and it is already decoded.
            return 
        if packet_no < self._packet_cursor:
            # "Rewind." This is not really possible, so we load a fresh
            # instance of the file object and then fast-forward.
            self._load_fresh_file()
        # Fast-forward if needed.
        while self._packet_cursor < packet_no:
            self._current_packet = next(self._demuxed_container).decode()
            self._packet_cursor += 1
Advance through the container generator until we get the packet
dataset/ETHPy150Open soft-matter/pims/pims/pyav_reader.py/PyAVVideoReader._seek_packet