Skip to content

Commit

Permalink
Add OsStr import for AVIF to DDS feature in unpack_vromf
Browse files Browse the repository at this point in the history
  • Loading branch information
FlareFlo committed Jan 22, 2024
1 parent 8581809 commit 58242c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/subcommands/unpack_vromf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ fn parse_and_write_one_vromf(
}
#[cfg(feature = "avif2dds")]
if avif2dds {
use std::ffi::OsStr;
if file.0.extension() == Some(&OsStr::new("avif")) {
let image = image::load_from_memory_with_format(&file.1, ImageFormat::Avif);
match image {
Expand Down

0 comments on commit 58242c7

Please sign in to comment.