Bump version to use ffmpeg 5
This commit is contained in:
@ -2,12 +2,15 @@ use std::ops::{Deref, DerefMut};
|
||||
use std::ptr;
|
||||
|
||||
use ffi::*;
|
||||
#[cfg(not(feature = "ffmpeg_5_0"))]
|
||||
use libc::c_int;
|
||||
|
||||
use super::Encoder as Super;
|
||||
use codec::{traits, Context};
|
||||
use util::format;
|
||||
use {frame, packet, ChannelLayout, Dictionary, Error};
|
||||
#[cfg(not(feature = "ffmpeg_5_0"))]
|
||||
use {frame, packet};
|
||||
use {ChannelLayout, Dictionary, Error};
|
||||
|
||||
pub struct Audio(pub Super);
|
||||
|
||||
@ -145,6 +148,7 @@ impl Encoder {
|
||||
note = "Underlying API avcodec_encode_audio2 has been deprecated since FFmpeg 3.1; \
|
||||
consider switching to send_frame() and receive_packet()"
|
||||
)]
|
||||
#[cfg(not(feature = "ffmpeg_5_0"))]
|
||||
pub fn encode<P: packet::Mut>(
|
||||
&mut self,
|
||||
frame: &frame::Audio,
|
||||
@ -174,6 +178,7 @@ impl Encoder {
|
||||
note = "Underlying API avcodec_encode_audio2 has been deprecated since FFmpeg 3.1; \
|
||||
consider switching to send_eof() and receive_packet()"
|
||||
)]
|
||||
#[cfg(not(feature = "ffmpeg_5_0"))]
|
||||
pub fn flush<P: packet::Mut>(&mut self, out: &mut P) -> Result<bool, Error> {
|
||||
unsafe {
|
||||
let mut got: c_int = 0;
|
||||
|
Reference in New Issue
Block a user