| @@ -239,7 +239,7 @@ static int decode_slice_header(const FFV1Context *f, FFV1Context *fs, · 238 unmodified lines |
| 239 | } | 239 | } |
| 240 | | 240 | |
| 241 | if (fs->version > 3) { | 241 | if (fs->version > 3) { |
| 242 | fs->slice_reset_contexts = get_rac(c, state); | 242 | sc->slice_reset_contexts = get_rac(c, state); |
| 243 | sc->slice_coding_mode = get_symbol(c, state, 0); | 243 | sc->slice_coding_mode = get_symbol(c, state, 0); |
| 244 | if (sc->slice_coding_mode != 1) { | 244 | if (sc->slice_coding_mode != 1) { |
| 245 | sc->slice_rct_by_coef = get_symbol(c, state, 0); | 245 | sc->slice_rct_by_coef = get_symbol(c, state, 0); |
| @@ -309,7 +309,7 @@ static int decode_slice(AVCodecContext *c, void *arg) · 63 unmodified lines |
| 309 | } | 309 | } |
| 310 | if ((ret = ff_ffv1_init_slice_state(f, sc)) < 0) | 310 | if ((ret = ff_ffv1_init_slice_state(f, sc)) < 0) |
| 311 | return ret; | 311 | return ret; |
| 312 | if ((p->flags & AV_FRAME_FLAG_KEY) || fs->slice_reset_contexts) { | 312 | if ((p->flags & AV_FRAME_FLAG_KEY) || sc->slice_reset_contexts) { |
| 313 | ff_ffv1_clear_slice_state(f, sc); | 313 | ff_ffv1_clear_slice_state(f, sc); |
| 314 | } else if (fs->slice_damaged) { | 314 | } else if (fs->slice_damaged) { |
| 315 | return AVERROR_INVALIDDATA; | 315 | return AVERROR_INVALIDDATA; |