Skip to content

Commit

Permalink
Fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
SLiV9 committed Jan 5, 2025
1 parent 11d37f7 commit 049af55
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -748,8 +748,7 @@ impl<R: BufRead + Seek> WebPDecoder<R> {
let (frame, frame_has_alpha): (Vec<u8>, bool) = match chunk {
WebPRiffChunk::VP8 => {
let reader = (&mut self.r).take(chunk_size);
let mut vp8_decoder = Vp8Decoder::new(reader);
let raw_frame = vp8_decoder.decode_frame()?;
let raw_frame = Vp8Decoder::decode_frame(reader)?;
if raw_frame.width as u32 != frame_width || raw_frame.height as u32 != frame_height
{
return Err(DecodingError::InconsistentImageSizes);
Expand Down

0 comments on commit 049af55

Please sign in to comment.