mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibVideo/VP9: Return error for frames with invalid subsampling format
Previously, the program would crash if this condition was encountered. We now return a decoder error allowing for graceful failure.
This commit is contained in:
parent
409eb644c8
commit
fd3837c63b
Notes:
sideshowbarker
2024-07-17 17:38:29 +09:00
Author: https://github.com/tcl3
Commit: fd3837c63b
Pull-request: https://github.com/SerenityOS/serenity/pull/21406
1 changed files with 1 additions and 1 deletions
|
@ -355,7 +355,7 @@ DecoderErrorOr<ColorConfig> Parser::parse_color_config(BigEndianInputBitStream&
|
|||
return DecoderError::corrupted("color_config: RGB reserved zero was set"sv);
|
||||
} else {
|
||||
// FIXME: Spec does not specify the subsampling value here. Is this an error or should we set a default?
|
||||
VERIFY_NOT_REACHED();
|
||||
return DecoderError::corrupted("color_config: Invalid subsampling value for profile 0 or 2"sv);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue