diff options
author | Genevieve Alfirevic <gen@nyble.dev> | 2022-02-02 23:03:01 -0600 |
---|---|---|
committer | Genevieve Alfirevic <gen@nyble.dev> | 2022-02-02 23:03:01 -0600 |
commit | 64dc74a04eedd550f1c72af1caa88d2b81ab70e8 (patch) | |
tree | 5f58b1bae93640279995d9ce0a038f6a8381d5f3 /gifprobe | |
parent | e7248533e5db69893b7a35ac83e90f0680420d27 (diff) | |
download | gifed-64dc74a04eedd550f1c72af1caa88d2b81ab70e8.tar.gz gifed-64dc74a04eedd550f1c72af1caa88d2b81ab70e8.zip |
Why are these files changed
Diffstat (limited to 'gifprobe')
-rw-r--r-- | gifprobe/Cargo.toml | 2 | ||||
-rw-r--r-- | gifprobe/src/main.rs | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/gifprobe/Cargo.toml b/gifprobe/Cargo.toml index 75047b8..96e76a5 100644 --- a/gifprobe/Cargo.toml +++ b/gifprobe/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "gifprobe" version = "0.1.0" -authors = ["Genevive Alfirevic <gen@nyble.dev"] +authors = ["Genevive <gen@nyble.dev"] edition = "2018" license = "CC0-1.0" description = "Print the details of a gif to stdout; ffprobe for gif" diff --git a/gifprobe/src/main.rs b/gifprobe/src/main.rs index 35a137f..a8e3cfd 100644 --- a/gifprobe/src/main.rs +++ b/gifprobe/src/main.rs @@ -49,11 +49,11 @@ fn main() { img_count += 1; } Block::GraphicControlExtension(gce) => { - hundreths += gce.delay_time() as usize; + hundreths += gce.delay() as usize; println!( "Graphic Control Extension\n\tDelay Time {}\n\tDispose {}", - format!("{}s", gce.delay_time() as f32 / 100.0).yellow(), + format!("{}s", gce.delay() as f32 / 100.0).yellow(), gce.disposal_method().unwrap().yellow() ) } @@ -65,7 +65,7 @@ fn main() { let auth = app.authentication_code(); println!( "Application Extension\n\tIdentifier {}\n\tAuthentication {:02X} {:02X} {:02X}", - app.identifier().yellow(), + String::from_utf8_lossy(app.identifier()).yellow(), auth[0].yellow(), auth[1].yellow(), auth[2].yellow() |