lavc/ffv1dec: simplify slice index calculation

release/7.1
Anton Khirnov 7 months ago
parent d776fa4e4d
commit e1fa107fd1
  1. 5
      libavcodec/ffv1dec.c

@ -259,10 +259,7 @@ static int decode_slice(AVCodecContext *c, void *arg)
int width, height, x, y, ret;
const int ps = av_pix_fmt_desc_get(c->pix_fmt)->comp[0].step;
AVFrame * const p = f->cur;
int si;
for( si=0; fs != f->slice_context[si]; si ++)
;
const int si = (FFV1Context**)arg - f->slice_context;
if (f->fsrc && !(p->flags & AV_FRAME_FLAG_KEY) && f->last_picture.f)
ff_progress_frame_await(&f->last_picture, si);

Loading…
Cancel
Save