mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-16 23:42:27 +00:00
hevc: simplify scaling-list condition for clippy nonminimal_bool
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c25999c8a4
commit
9541787aa9
1 file changed
+1
-1
@@ -417,7 +417,7 @@ impl<'a, S: Sample> SliceDecoder<'a, S> {
|
||||
let round = 1i64 << (bd_shift - 1);
|
||||
let scale = (LEVEL_SCALE[(qp % 6) as usize] as i64) << (qp / 6);
|
||||
let matrix = match &self.pic.scaling {
|
||||
Some(s) if !bypass && !(ts && n > 4) => {
|
||||
Some(s) if !(bypass || (ts && n > 4)) => {
|
||||
let size_id = (log2 - 2) as usize;
|
||||
let matrix_id = if self.cu_intra { c } else { 3 + c };
|
||||
Some((s.clone(), size_id * 6 + matrix_id))
|
||||
|
||||
Reference in new issue
Block a user