Skip to content
Snippets Groups Projects
Commit 807d5dcd authored by Paul B Mahol's avatar Paul B Mahol
Browse files

avcodec/scpr: use correct linesize for prev frame


Signed-off-by: default avatarPaul B Mahol <onemda@gmail.com>
parent ce010655
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment