mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 04:22:28 +00:00
LibVideo/VP9: Put reference frames into a struct
This commit is contained in:
parent
e6b696fe24
commit
f5ea6c89df
Notes:
sideshowbarker
2024-07-17 21:26:19 +09:00
Author: https://github.com/Zaggy1024
Commit: f5ea6c89df
Pull-request: https://github.com/SerenityOS/serenity/pull/16238
4 changed files with 32 additions and 24 deletions
|
@ -357,7 +357,9 @@ DecoderErrorOr<Gfx::Size<u32>> Parser::parse_frame_size_with_refs(Array<u8, 3> c
|
|||
Optional<Gfx::Size<u32>> size;
|
||||
for (auto frame_index : reference_indices) {
|
||||
if (TRY_READ(m_bit_stream->read_bit())) {
|
||||
size.emplace(m_ref_frame_size[frame_index]);
|
||||
if (!m_reference_frames[frame_index].is_valid())
|
||||
return DecoderError::corrupted("Frame size referenced a frame that does not exist"sv);
|
||||
size.emplace(m_reference_frames[frame_index].size);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue