From 9a482e5beee26b311f93cb8b6b8f02f49886b0f3 Mon Sep 17 00:00:00 2001 From: vishruth-iyer <137830515+vishruth-iyer@users.noreply.github.com> Date: Mon, 6 Oct 2025 05:00:59 -0700 Subject: [PATCH] Allow zero values in quantization table --- src/parser.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/parser.rs b/src/parser.rs index b17e7e9..dd88074 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -520,10 +520,6 @@ pub fn parse_dqt(reader: &mut R) -> Result<[Option<[u16; 64]>; 4]> { }; } - if table.iter().any(|&val| val == 0) { - return Err(Error::Format("quantization table contains element with a zero value".to_owned())); - } - tables[index] = Some(table); length -= 65 + 64 * precision; }