Bump version to use ffmpeg 5

This commit is contained in:
Polochon-street
2022-01-24 21:03:47 +01:00
parent 5ed41c84ff
commit 22ad8b9598
43 changed files with 310 additions and 102 deletions

View File

@ -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

View File

@ -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)))
}