Fix clippy::unnecessary_lazy_evaluations
This commit is contained in:
parent
b0722df007
commit
69bbfb6dc8
@ -15,7 +15,7 @@ fn main() -> Result<(), ffmpeg::Error> {
|
|||||||
let input = ictx
|
let input = ictx
|
||||||
.streams()
|
.streams()
|
||||||
.best(Type::Video)
|
.best(Type::Video)
|
||||||
.ok_or_else(|| ffmpeg::Error::StreamNotFound)?;
|
.ok_or(ffmpeg::Error::StreamNotFound)?;
|
||||||
let video_stream_index = input.index();
|
let video_stream_index = input.index();
|
||||||
|
|
||||||
let mut decoder = input.codec().decoder().video()?;
|
let mut decoder = input.codec().decoder().video()?;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user