Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ldm0 committed Jan 23, 2024
1 parent f57dfe3 commit 83074bc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/avutil/audio_fifo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ impl AVAudioFifo {
}

/// Peek data from an AVAudioFifo.
///
/// # Safety
/// Function is safe when the `data` points to valid sample buffer.
pub unsafe fn peek(&mut self, data: *const *mut u8, nb_samples: i32) -> Result<i32> {
let ret =
unsafe { ffi::av_audio_fifo_peek(self.as_mut_ptr(), data as *const _, nb_samples) }
Expand All @@ -52,6 +55,9 @@ impl AVAudioFifo {
}

/// Peek data from an AVAudioFifo.
///
/// # Safety
/// Function is safe when the `data` points to valid sample buffer.
pub unsafe fn peek_at(
&mut self,
data: *const *mut u8,
Expand Down

0 comments on commit 83074bc

Please sign in to comment.