Scope the left sign context to its superblock row
Browse files at this commitd7b77889ae39d8f23b4063df9a8817d0163d71d6Parent: 154aa4b- fix
- scope the left sign context to its superblock row
1 changed file +1 -3
crates/ec-av1/src/tile.rsmodified+1 -3
| @@ -167,11 +167,9 @@ pub fn dc_key_frame_tile_levels( | ||
| 167 | 167 | // the left, which is dropped at the start of every superblock row the way a |
| 168 | 168 | // decoder clears its left context there. |
| 169 | 169 | let mut above: Vec<Option<bool>> = vec![None; sb_cols as usize]; |
| 170 | - let mut left: Option<bool> = None; | |
| 171 | - | |
| 172 | 170 | let mut enc = SymbolEncoder::new(); |
| 173 | 171 | for r in 0..sb_rows { |
| 174 | - left = None; | |
| 172 | + let mut left: Option<bool> = None; | |
| 175 | 173 | for c in 0..sb_cols { |
| 176 | 174 | let dc_level = levels[(r * sb_cols + c) as usize]; |
| 177 | 175 | let level = dc_level.abs(); |