Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Index out of bounds when decoding 12 bit RGBA #26

Open
sdroege opened this issue Sep 18, 2021 · 0 comments
Open

Index out of bounds when decoding 12 bit RGBA #26

sdroege opened this issue Sep 18, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@sdroege
Copy link

sdroege commented Sep 18, 2021

thread '<unnamed>' panicked at 'index out of bounds: the len is 0 but the index is 0', /home/slomo/.cargo/git/checkouts/ffv1-08f2e3b26709fb34/2afb025/src/jpeg2000rct.rs:98:18
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: <u16 as ffv1::jpeg2000rct::Rct<u32>>::rct
   4: ffv1::decoder::Decoder::decode_slice_content
             at /home/slomo/.cargo/git/checkouts/ffv1-08f2e3b26709fb34/2afb025/src/decoder.rs:730:17
   5: ffv1::decoder::Decoder::decode_slice
             at /home/slomo/.cargo/git/checkouts/ffv1-08f2e3b26709fb34/2afb025/src/decoder.rs:826:9
   6: ffv1::decoder::Decoder::decode_frame
             at /home/slomo/.cargo/git/checkouts/ffv1-08f2e3b26709fb34/2afb025/src/decoder.rs:245:23
   7: <gstffv1::ffv1dec::imp::Ffv1Dec as gstreamer_video::subclass::video_decoder::VideoDecoderImpl>::handle_frame
             at ./src/ffv1dec/imp.rs:376:29
   8: 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

@sdroege sdroege added the bug Something isn't working label Sep 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant