From 0fa98969f3b78d6df394a6ca2234ab15432b278d Mon Sep 17 00:00:00 2001 From: Matthew Gregan Date: Wed, 25 Nov 2026 10:13:04 +1300 Subject: [PATCH] Return an error for unsupported AVIF item construction --- mp4parse/src/lib.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mp4parse/src/lib.rs b/mp4parse/src/lib.rs index 33dda4c0..e5e6e8be 100644 --- a/mp4parse/src/lib.rs +++ b/mp4parse/src/lib.rs @@ -2811,10 +2811,7 @@ pub fn read_avif(f: &mut T, strictness: ParseStrictness) -> Result { - fail_with_status_if( - strictness != ParseStrictness::Permissive, - Status::ConstructionMethod, - )?; + return Status::ConstructionMethod.into(); } } }