def __next__(self):
<EOL>while not slice_match(self._sub, self._counter):<EOL><INDENT>self._skip_frame()<EOL>self._counter += <NUM_LIT:1><EOL><DEDENT>result = self._read_frame()<EOL>self._counter += <NUM_LIT:1><EOL>return result<EOL>
Get the next frame from the file, taking into account the slice

           This method is part of the iterator protocol.