Commit 807d5dcd authored by Paul B Mahol's avatar Paul B Mahol

avcodec/scpr: use correct linesize for prev frame

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent ce010655
......@@ -656,7 +656,7 @@ static int decompress_p(AVCodecContext *avctx,
if (by >= avctx->height)
return AVERROR_INVALIDDATA;
clr = prev[by * linesize + bx];
clr = prev[by * plinesize + bx];
dst[by * linesize + bx] = clr;
bx++;
if (bx >= x * 16 + sx2 || bx >= avctx->width) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment