about summary refs log tree commit diff
path: root/gifprobe
diff options
context:
space:
mode:
authorgennyble <gen@nyble.dev>2023-07-22 12:58:31 -0500
committergennyble <gen@nyble.dev>2023-07-22 12:58:31 -0500
commit5187b4adab1ef6cbda32b892d517d57e05451276 (patch)
treecd0c7a358423e12605aeeada4aa8c6ff259b8f66 /gifprobe
parent7bb866f0aa07e56013db68d7a50eb2cf0494960f (diff)
downloadgifed-5187b4adab1ef6cbda32b892d517d57e05451276.tar.gz
gifed-5187b4adab1ef6cbda32b892d517d57e05451276.zip
use correct bytes for loop count
Diffstat (limited to 'gifprobe')
-rw-r--r--gifprobe/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/gifprobe/src/main.rs b/gifprobe/src/main.rs
index 03d626f..64cee94 100644
--- a/gifprobe/src/main.rs
+++ b/gifprobe/src/main.rs
@@ -153,7 +153,7 @@ fn main() {
 
 				if app_ident == "NETSCAPE" {
 					let data = app.data();
-					let looping = u16::from_le_bytes([data[0], data[1]]);
+					let looping = u16::from_le_bytes([data[1], data[2]]);
 
 					if looping == 0 {
 						println!("\tLoop {}", "forever".yellow())