forge
Explore
Log in

Don't you dare go Hollow

Decode_block_rect64 dequant used stale base_q_idx snapshot, not running CURRENT_Q_IDX

Browse files at this commit

528531af57982d893d81a25a2431390e1928a346Ahmet Kaan GümüşParent: b8f30b8
  • fix
    • decode_block_rect64 dequant used stale base_q_idx snapshot, not running CURRENT_Q_IDX
Show full message
fix(av1): decode_block_rect64 dequant used stale base_q_idx snapshot, not running CURRENT_Q_IDX
crates/ec-av1/src/decode.rsmodified+3 -3
@@ -3532,7 +3532,7 @@ fn decode_block_rect64(
3532 bw,3532 bw,
3533 bh,3533 bh,
3534 8,3534 8,
3535- i32::from(base_q_idx),3535+ CURRENT_Q_IDX.with(|c| c.get()),
3536 plane_q_delta(0).0,3536 plane_q_delta(0).0,
3537 plane_q_delta(0).1,3537 plane_q_delta(0).1,
3538 luma_tx_type,3538 luma_tx_type,
@@ -3593,7 +3593,7 @@ fn decode_block_rect64(
3593 chroma_w,3593 chroma_w,
3594 chroma_h,3594 chroma_h,
3595 8,3595 8,
3596- i32::from(base_q_idx),3596+ CURRENT_Q_IDX.with(|c| c.get()),
3597 plane_q_delta(1).0,3597 plane_q_delta(1).0,
3598 plane_q_delta(1).1,3598 plane_q_delta(1).1,
3599 u_tx_type,3599 u_tx_type,
@@ -3636,7 +3636,7 @@ fn decode_block_rect64(
3636 chroma_w,3636 chroma_w,
3637 chroma_h,3637 chroma_h,
3638 8,3638 8,
3639- i32::from(base_q_idx),3639+ CURRENT_Q_IDX.with(|c| c.get()),
3640 plane_q_delta(2).0,3640 plane_q_delta(2).0,
3641 plane_q_delta(2).1,3641 plane_q_delta(2).1,
3642 v_tx_type,3642 v_tx_type,