Skip to content

Index out of bounds when decoding 8 bit RGBA #27

@sdroege

Description

@sdroege
thread '<unnamed>' panicked at 'index out of bounds: the len is 2 but the index is 2', /home/slomo/.cargo/git/checkouts/ffv1-08f2e3b26709fb34/2afb025/src/decoder.rs:519:26
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: <usize as core::slice::index::SliceIndex<[T]>>::index_mut
             at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/core/src/slice/index.rs:190:14
   4: core::slice::index::<impl core::ops::index::IndexMut<I> for [T]>::index_mut
             at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/core/src/slice/index.rs:26:9
   5: <alloc::vec::Vec<T,A> as core::ops::index::IndexMut<I>>::index_mut
             at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/alloc/src/vec/mod.rs:2444:9
   6: ffv1::decoder::Decoder::decode_line
             at /home/slomo/.cargo/git/checkouts/ffv1-08f2e3b26709fb34/2afb025/src/decoder.rs:519:26
   7: ffv1::decoder::Decoder::decode_slice_content_rct
             at /home/slomo/.cargo/git/checkouts/ffv1-08f2e3b26709fb34/2afb025/src/decoder.rs:640:17
   8: ffv1::decoder::Decoder::decode_slice_content
             at /home/slomo/.cargo/git/checkouts/ffv1-08f2e3b26709fb34/2afb025/src/decoder.rs:688:17
   9: ffv1::decoder::Decoder::decode_slice
             at /home/slomo/.cargo/git/checkouts/ffv1-08f2e3b26709fb34/2afb025/src/decoder.rs:826:9
  10: ffv1::decoder::Decoder::decode_frame
             at /home/slomo/.cargo/git/checkouts/ffv1-08f2e3b26709fb34/2afb025/src/decoder.rs:245:23
  11: <gstffv1::ffv1dec::imp::Ffv1Dec as gstreamer_video::subclass::video_decoder::VideoDecoderImpl>::handle_frame
             at ./src/ffv1dec/imp.rs:376:29
  12: gstreamer_video::subclass::video_decoder::video_decoder_handle_frame::{{closure}}
             at /home/slomo/.cargo/git/checkouts/gstreamer-rs-79e52a2d27eb91a3/4b2f0a9/gstreamer-video/src/subclass/video_decoder.rs:713:9

See 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