mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
lavc/ffv1dec: simplify slice index calculation
This commit is contained in:
parent
d776fa4e4d
commit
e1fa107fd1
@ -259,10 +259,7 @@ static int decode_slice(AVCodecContext *c, void *arg)
|
|||||||
int width, height, x, y, ret;
|
int width, height, x, y, ret;
|
||||||
const int ps = av_pix_fmt_desc_get(c->pix_fmt)->comp[0].step;
|
const int ps = av_pix_fmt_desc_get(c->pix_fmt)->comp[0].step;
|
||||||
AVFrame * const p = f->cur;
|
AVFrame * const p = f->cur;
|
||||||
int si;
|
const int si = (FFV1Context**)arg - f->slice_context;
|
||||||
|
|
||||||
for( si=0; fs != f->slice_context[si]; si ++)
|
|
||||||
;
|
|
||||||
|
|
||||||
if (f->fsrc && !(p->flags & AV_FRAME_FLAG_KEY) && f->last_picture.f)
|
if (f->fsrc && !(p->flags & AV_FRAME_FLAG_KEY) && f->last_picture.f)
|
||||||
ff_progress_frame_await(&f->last_picture, si);
|
ff_progress_frame_await(&f->last_picture, si);
|
||||||
|
Loading…
Reference in New Issue
Block a user