Skip to content

Index out of bounds when decoding files with odd width #25

@sdroege

Description

@sdroege
thread '<unnamed>' panicked at 'index out of bounds: the len is 3600 but the index is 3600', /home/slomo/.cargo/git/checkouts/ffv1-08f2e3b26709fb34/2afb025/src/decoder.rs:560:13
stack backtrace:
   0: rust_begin_unwind
             at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panicking.rs:515:5
   1: core::panicking::panic_fmt
             at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/core/src/panicking.rs:92:14
   2: core::panicking::panic_bounds_check
             at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/core/src/panicking.rs:69:5
   3: ffv1::decoder::Decoder::decode_line
             at /home/slomo/.cargo/git/checkouts/ffv1-08f2e3b26709fb34/2afb025/src/decoder.rs:560:13
   4: ffv1::decoder::Decoder::decode_slice_content_yuv
             at /home/slomo/.cargo/git/checkouts/ffv1-08f2e3b26709fb34/2afb025/src/decoder.rs:591:17
   5: ffv1::decoder::Decoder::decode_slice_content
             at /home/slomo/.cargo/git/checkouts/ffv1-08f2e3b26709fb34/2afb025/src/decoder.rs:668:17
   6: ffv1::decoder::Decoder::decode_slice
             at /home/slomo/.cargo/git/checkouts/ffv1-08f2e3b26709fb34/2afb025/src/decoder.rs:826:9
   7: ffv1::decoder::Decoder::decode_frame
             at /home/slomo/.cargo/git/checkouts/ffv1-08f2e3b26709fb34/2afb025/src/decoder.rs:245:23
   8: <gstffv1::ffv1dec::imp::Ffv1Dec as gstreamer_video::subclass::video_decoder::VideoDecoderImpl>::handle_frame
             at ./src/ffv1dec/imp.rs:376:29
[...]

Happens with the attached file: test.mkv.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions