B8: show_existing_frame clears pending frame header so a stray OBU_TILE_GROUP is rejected (no tile group follows a show-existing header)
Browse files at this commit892fabdae2b6fc01dcfe112e65eb0998842b40e5Parent: 990c0b51 changed file +5 -1
crates/ec-av1-syntax/src/lib.rsmodified+5 -1
| @@ -313,7 +313,11 @@ impl Av1Parser { | |||
| 313 | } else { | 313 | } else { |
| 314 | apply_refresh(&mut self.state, &h, seq.color_config.bit_depth); | 314 | apply_refresh(&mut self.state, &h, seq.color_config.bit_depth); |
| 315 | } | 315 | } |
| 316 | - self.pending = Some(h.clone()); | 316 | + self.pending = if h.show_existing_frame { |
| 317 | + None | ||
| 318 | + } else { | ||
| 319 | + Some(h.clone()) | ||
| 320 | + }; | ||
| 317 | } | 321 | } |
| 318 | Ok(h) | 322 | Ok(h) |
| 319 | } | 323 | } |