Skip to content

Commit

Permalink
Bump decoder crate in av-metrics-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FreezyLemon committed Apr 6, 2024
1 parent af58fe5 commit eae9815
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 17 deletions.
16 changes: 2 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion av_metrics_tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ publish = false

[dependencies]
av-metrics = { version = "0.9", features = ["serde"] }
av-metrics-decoders = "0.2.1"
av-metrics-decoders = "0.3.1"

[features]
default = ["y4m"]
Expand Down
6 changes: 4 additions & 2 deletions av_metrics_tests/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ mod tests {
use av_metrics_decoders::FfmpegDecoder;
#[cfg(not(feature = "ffmpeg"))]
use av_metrics_decoders::Y4MDecoder;
use std::fs::File;

Check failure on line 11 in av_metrics_tests/src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy-rustfmt

unused import: `std::fs::File`
use std::io::BufReader;

Check failure on line 12 in av_metrics_tests/src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy-rustfmt

unused import: `std::io::BufReader`
use std::path::Path;

#[cfg(not(feature = "ffmpeg"))]
fn get_decoder<P: AsRef<Path>>(input: P) -> Result<Y4MDecoder, String> {
Y4MDecoder::new(input)
fn get_decoder<P: AsRef<Path>>(input: P) -> Result<Y4MDecoder<BufReader<File>>, String> {
av_metrics_decoders::y4m::new_decoder_from_file(input)
}

#[cfg(feature = "ffmpeg")]
Expand Down

0 comments on commit eae9815

Please sign in to comment.