1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:38:11 +00:00

LibVideo/VP9: Begin reference frame update process (8.10)

This was required for correctly parsing more than one frame's
height/width data properly. Additionally, start handling failure
a little more gracefully. Since we don't fully parse a tile before
starting to parse the next tile, we will now no longer make it past
the first tile mark, meaning we should not handle that scenario well.
This commit is contained in:
FalseHonesty 2021-06-26 19:58:08 -04:00 committed by Andreas Kling
parent 514559f074
commit cf6b3d0ce9
6 changed files with 54 additions and 10 deletions

View file

@ -43,8 +43,10 @@ int main(int argc, char** argv)
auto const& frame = block.frame(0);
dbgln("Reading frame 0 from block @ {}", block.timestamp());
vp9_decoder.decode_frame(frame);
bool failed = !vp9_decoder.decode_frame(frame);
vp9_decoder.dump_frame_info();
if (failed)
return 1;
}
}