From 807d5dcde9d83dca48f8dfc5c98bbc2be6fdc61c Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sun, 12 Mar 2017 12:34:55 +0100 Subject: [PATCH] avcodec/scpr: use correct linesize for prev frame Signed-off-by: Paul B Mahol --- libavcodec/scpr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/scpr.c b/libavcodec/scpr.c index 1fc0593dbb..465926af19 100644 --- a/libavcodec/scpr.c +++ b/libavcodec/scpr.c @@ -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) {