Skip to content

Commit

Permalink
Fix AVIF limits test
Browse files Browse the repository at this point in the history
  • Loading branch information
fintelia committed Jan 14, 2024
1 parent 1559891 commit d33a2b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@stable
- name: build
run: cargo build -v --no-default-features --features="avif-decoder"
run: cargo build -v --no-default-features --features="avif,avif-decoder"
env:
SYSTEM_DEPS_DAV1D_BUILD_INTERNAL: always

Expand Down
3 changes: 2 additions & 1 deletion src/codecs/avif/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ impl<W: Write> AvifEncoder<W> {
let encoder = Encoder::new()
.with_quality(f32::from(quality))
.with_alpha_quality(f32::from(quality))
.with_speed(speed);
.with_speed(speed)
.with_depth(Some(8));

AvifEncoder { inner: w, encoder }
}
Expand Down

0 comments on commit d33a2b8

Please sign in to comment.