From: Kostya Shishkov Date: Sun, 5 May 2024 16:46:37 +0000 (+0200) Subject: armovie: zero-terminated string is not exactly an error X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=495496ba02a782e17314b5c36be98de0ae4a7989;p=nihav.git armovie: zero-terminated string is not exactly an error --- 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);