X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fffv1dec.c;h=557b1a0994148b1820fa4e460005dbd9c54aeb74;hb=25a7c2aed6f4eec05c771e047f418e31610170c7;hp=162e41bcbffe757e8bf8a7301a3ab74b8e8d2f49;hpb=d02d208211eb9a9de2e082942d007d558b2ce110;p=ffmpeg diff --git a/libavcodec/ffv1dec.c b/libavcodec/ffv1dec.c index 162e41bcbff..557b1a09941 100644 --- a/libavcodec/ffv1dec.c +++ b/libavcodec/ffv1dec.c @@ -359,7 +359,7 @@ static int decode_slice(AVCodecContext *c, void *arg) FFV1Context *fs = *(void **)arg; FFV1Context *f = fs->avctx->priv_data; int width, height, x, y, ret; - const int ps = av_pix_fmt_desc_get(c->pix_fmt)->comp[0].step_minus1 + 1; + const int ps = av_pix_fmt_desc_get(c->pix_fmt)->comp[0].step; AVFrame * const p = f->cur; int i, si;