Bump version to use ffmpeg 5
This commit is contained in:
@ -11,7 +11,7 @@ impl Iterator for AudioIter {
|
||||
|
||||
fn next(&mut self) -> Option<<Self as Iterator>::Item> {
|
||||
unsafe {
|
||||
let ptr = av_input_audio_device_next(self.0);
|
||||
let ptr = av_input_audio_device_next(self.0) as *mut AVInputFormat;
|
||||
|
||||
if ptr.is_null() && !self.0.is_null() {
|
||||
None
|
||||
@ -35,7 +35,7 @@ impl Iterator for VideoIter {
|
||||
|
||||
fn next(&mut self) -> Option<<Self as Iterator>::Item> {
|
||||
unsafe {
|
||||
let ptr = av_input_video_device_next(self.0);
|
||||
let ptr = av_input_video_device_next(self.0) as *mut AVInputFormat;
|
||||
|
||||
if ptr.is_null() && !self.0.is_null() {
|
||||
None
|
||||
|
@ -11,12 +11,12 @@ impl Iterator for AudioIter {
|
||||
|
||||
fn next(&mut self) -> Option<<Self as Iterator>::Item> {
|
||||
unsafe {
|
||||
let ptr = av_output_audio_device_next(self.0);
|
||||
let ptr = av_output_audio_device_next(self.0) as *mut AVOutputFormat;
|
||||
|
||||
if ptr.is_null() && !self.0.is_null() {
|
||||
None
|
||||
} else {
|
||||
self.0 = ptr;
|
||||
self.0 = ptr as *mut AVOutputFormat;
|
||||
|
||||
Some(Format::Output(format::Output::wrap(ptr)))
|
||||
}
|
||||
@ -35,12 +35,12 @@ impl Iterator for VideoIter {
|
||||
|
||||
fn next(&mut self) -> Option<<Self as Iterator>::Item> {
|
||||
unsafe {
|
||||
let ptr = av_output_video_device_next(self.0);
|
||||
let ptr = av_output_video_device_next(self.0) as *mut AVOutputFormat;
|
||||
|
||||
if ptr.is_null() && !self.0.is_null() {
|
||||
None
|
||||
} else {
|
||||
self.0 = ptr;
|
||||
self.0 = ptr as *mut AVOutputFormat;
|
||||
|
||||
Some(Format::Output(format::Output::wrap(ptr)))
|
||||
}
|
||||
|
Reference in New Issue
Block a user