Commit 0b8e9f06 authored by Jan Kiene's avatar Jan Kiene
Browse files

fix error for end-of-bitstream case

parent 24cfe656
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ def cut_to_length(fp, fp_out, length):
    for f in range(length):
        sync_word = fp.read(2)
        if sync_word == b"":
            return (fr_cnt, cut_cnt)
            return fr_cnt
        if sync_word not in SYNC_WORDS:
            raise ValueError("Bad Sync word!")
        n_bits_bs = fp.read(2)