summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibVideo/VP9/Decoder.cpp
diff options
context:
space:
mode:
authorZaggy1024 <zaggy1024@gmail.com>2022-11-26 11:15:58 -0600
committerAndreas Kling <kling@serenityos.org>2022-11-30 08:28:30 +0100
commita4f14f220d4ebba8a72b239d83eb34c841c1e18f (patch)
tree4f3e60195e2b0699f194e6ace74f7e4d093c9f05 /Userland/Libraries/LibVideo/VP9/Decoder.cpp
parentdb9f1a18f892819a139b8b7f75ad46edffdf4033 (diff)
downloadserenity-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.cpp2
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 ]