mirror of
https://github.com/encounter/rust-ffmpeg-zmwangx.git
synced 2026-07-10 21:18:40 -07:00
frame/audio: fix return type of frame::Audio::plane_mut()
This commit is contained in:
@@ -163,7 +163,7 @@ impl Audio {
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn plane_mut<T: Sample>(&mut self, index: usize) -> &[T] {
|
||||
pub fn plane_mut<T: Sample>(&mut self, index: usize) -> &mut [T] {
|
||||
if index >= self.planes() {
|
||||
panic!("out of bounds");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user