diff options
author | Zaggy1024 <zaggy1024@gmail.com> | 2022-11-26 11:15:58 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-11-30 08:28:30 +0100 |
commit | a4f14f220d4ebba8a72b239d83eb34c841c1e18f (patch) | |
tree | 4f3e60195e2b0699f194e6ace74f7e4d093c9f05 /Userland/Libraries/LibVideo/VP9/Decoder.cpp | |
parent | db9f1a18f892819a139b8b7f75ad46edffdf4033 (diff) | |
download | serenity-a4f14f220d4ebba8a72b239d83eb34c841c1e18f.zip |
LibVideo/VP9: Fully qualify all reference frame type enum values
Since the enum is used as an index to arrays, it unfortunately can't
be converted to an enum class, but at least we can make sure to use it
with the qualified enum name to make things a bit clearer.
Diffstat (limited to 'Userland/Libraries/LibVideo/VP9/Decoder.cpp')
-rw-r--r-- | Userland/Libraries/LibVideo/VP9/Decoder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibVideo/VP9/Decoder.cpp b/Userland/Libraries/LibVideo/VP9/Decoder.cpp index 9238fadab8..745b391d35 100644 --- a/Userland/Libraries/LibVideo/VP9/Decoder.cpp +++ b/Userland/Libraries/LibVideo/VP9/Decoder.cpp @@ -790,7 +790,7 @@ DecoderErrorOr<void> Decoder::predict_inter_block(u8 plane, BlockContext const& // A variable refIdx specifying which reference frame is being used is set equal to // ref_frame_idx[ ref_frame[ refList ] - LAST_FRAME ]. - auto reference_frame_index = block_context.frame_context.reference_frame_indices[block_context.reference_frame_types[reference_index] - LastFrame]; + auto reference_frame_index = block_context.frame_context.reference_frame_indices[block_context.reference_frame_types[reference_index] - ReferenceFrameType::LastFrame]; // It is a requirement of bitstream conformance that all the following conditions are satisfied: // − 2 * FrameWidth >= RefFrameWidth[ refIdx ] |