diff --git a/src/ffi.rs b/src/ffi.rs index aa1c39e..a65cb46 100644 --- a/src/ffi.rs +++ b/src/ffi.rs @@ -145,6 +145,7 @@ pub fn output_raw_packetized_buf_start( // signature. Since it changed since ffmpeg 7 and we don't know during compile time // what verion we're dealing with, this trick will convert to the either the signature // where the buffer argument is `*const u8` or `*mut u8`. + #[allow(clippy::missing_transmute_annotations)] Some(std::mem::transmute::<*const (), _>( output_raw_buf_start_callback as _, )), diff --git a/src/ffi_hwaccel.rs b/src/ffi_hwaccel.rs index afebaaf..00504be 100644 --- a/src/ffi_hwaccel.rs +++ b/src/ffi_hwaccel.rs @@ -117,7 +117,7 @@ unsafe extern "C" fn hwaccel_get_format( ) -> ffmpeg::ffi::AVPixelFormat { let mut p = pix_fmts; while *p != ffmpeg::ffi::AVPixelFormat::AV_PIX_FMT_NONE { - if *p == std::mem::transmute((*ctx).opaque as i32) { + if *p == std::mem::transmute::((*ctx).opaque as i32) { return *p; } p = p.add(1); diff --git a/src/io.rs b/src/io.rs index fc0a47e..1b7ac31 100644 --- a/src/io.rs +++ b/src/io.rs @@ -160,9 +160,7 @@ impl Reader { /// Seek to start of reader. This function performs best effort seeking to the start of the /// file. pub fn seek_to_start(&mut self) -> Result<()> { - self.input - .seek(i64::min_value(), ..) - .map_err(Error::BackendError) + self.input.seek(i64::MIN, ..).map_err(Error::BackendError) } /// Find the best video stream and return the index.