Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Installing emulator and linker
run: |
sudo apt-get update
sudo apt-get install qemu binfmt-support qemu-user-static gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu
sudo apt-get install qemu-system binfmt-support qemu-user-static gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu

- name: Installing Rust toolchain
uses: actions-rs/toolchain@v1
Expand Down
6 changes: 6 additions & 0 deletions src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,12 @@ pub fn parse_sos<R: Read>(reader: &mut R, frame: &FrameInfo) -> Result<ScanInfo>
let predictor_selection;
let point_transform = successive_approximation_low;

if point_transform >= frame.precision {
return Err(Error::Format(
"invalid point transform, must be less than the frame precision".to_owned(),
));
}

if frame.coding_process == CodingProcess::DctProgressive {
predictor_selection = Predictor::NoPrediction;
if spectral_selection_end > 63 || spectral_selection_start > spectral_selection_end ||
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading