Skip to content

Commit

Permalink
Upgrade image-webp (#2339)
Browse files Browse the repository at this point in the history
  • Loading branch information
fintelia authored Oct 6, 2024
1 parent 58922fb commit 8ecc99c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ dav1d = { version = "0.10.3", optional = true }
dcv-color-primitives = { version = "0.6.1", optional = true }
exr = { version = "1.5.0", optional = true }
gif = { version = "0.13", optional = true }
image-webp = { version = "0.1.0", optional = true }
image-webp = { version = "0.2.0", optional = true }
mp4parse = { version = "0.17.0", optional = true }
png = { version = "0.17.6", optional = true }
qoi = { version = "0.4", optional = true }
Expand Down
4 changes: 2 additions & 2 deletions src/codecs/webp/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,13 @@ impl<R: BufRead + Seek> ImageDecoder for WebPDecoder<R> {
}
}

impl<'a, R: 'a + Read + Seek> AnimationDecoder<'a> for WebPDecoder<R> {
impl<'a, R: 'a + BufRead + Seek> AnimationDecoder<'a> for WebPDecoder<R> {
fn into_frames(self) -> Frames<'a> {
struct FramesInner<R: Read + Seek> {
decoder: WebPDecoder<R>,
current: u32,
}
impl<R: Read + Seek> Iterator for FramesInner<R> {
impl<R: BufRead + Seek> Iterator for FramesInner<R> {
type Item = ImageResult<Frame>;

fn next(&mut self) -> Option<Self::Item> {
Expand Down

0 comments on commit 8ecc99c

Please sign in to comment.