From f58c5ff569a738339349a2aaee36d175eddff891 Mon Sep 17 00:00:00 2001 From: Zaggy1024 Date: Thu, 2 Feb 2023 05:01:26 -0600 Subject: [PATCH] LibVideo/VP9: Correct the mode/partition probability adaption counts --- Userland/Libraries/LibVideo/VP9/Decoder.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Userland/Libraries/LibVideo/VP9/Decoder.cpp b/Userland/Libraries/LibVideo/VP9/Decoder.cpp index 09fb9058d3..01628bf6e9 100644 --- a/Userland/Libraries/LibVideo/VP9/Decoder.cpp +++ b/Userland/Libraries/LibVideo/VP9/Decoder.cpp @@ -295,9 +295,9 @@ DecoderErrorOr Decoder::adapt_non_coef_probs(FrameContext const& frame_con probs.single_ref_prob()[i][j] = adapt_prob(probs.single_ref_prob()[i][j], counter.m_counts_single_ref[i][j]); } ADAPT_TREE(inter_mode, inter_mode, inter_mode, INTER_MODE_CONTEXTS); - ADAPT_TREE(intra_mode, y_mode, intra_mode, INTER_MODE_CONTEXTS); - ADAPT_TREE(intra_mode, uv_mode, uv_mode, INTER_MODE_CONTEXTS); - ADAPT_TREE(partition, partition, partition, INTER_MODE_CONTEXTS); + ADAPT_TREE(intra_mode, y_mode, intra_mode, BLOCK_SIZE_GROUPS); + ADAPT_TREE(intra_mode, uv_mode, uv_mode, INTRA_MODES); + ADAPT_TREE(partition, partition, partition, PARTITION_CONTEXTS); ADAPT_PROB_TABLE(skip, SKIP_CONTEXTS); if (frame_context.interpolation_filter == Switchable) { ADAPT_TREE(interp_filter, interp_filter, interp_filter, INTERP_FILTER_CONTEXTS);