From 495496ba02a782e17314b5c36be98de0ae4a7989 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sun, 5 May 2024 18:46:37 +0200 Subject: [PATCH] armovie: zero-terminated string is not exactly an error --- nihav-acorn/src/demuxers/armovie.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nihav-acorn/src/demuxers/armovie.rs b/nihav-acorn/src/demuxers/armovie.rs index b2bf684..95c8dad 100644 --- a/nihav-acorn/src/demuxers/armovie.rs +++ b/nihav-acorn/src/demuxers/armovie.rs @@ -26,7 +26,7 @@ impl<'a> ReadString for ByteReader<'a> { let mut res = Vec::new(); loop { let c = self.read_byte()?; - if c == b'\n' { + if c == b'\n' || c == 0 { break; } res.push(c); -- 2.39.5