diff --git a/core/src/backend/audio/decoders/g711.rs b/core/src/backend/audio/decoders/g711.rs index 814659014b3d7..a284c0a170032 100644 --- a/core/src/backend/audio/decoders/g711.rs +++ b/core/src/backend/audio/decoders/g711.rs @@ -88,7 +88,7 @@ impl + Send + Sync> SeekableDecoder for G711ALawDecoder #[inline] fn seek_to_sample_frame(&mut self, frame: u32) { - let pos = u64::from(frame) * u64::from(self.num_channels()) * 2; + let pos = u64::from(frame); self.reader.set_position(pos); } } @@ -138,7 +138,7 @@ impl + Send + Sync> SeekableDecoder for G711MuLawDecoder