diff options
author | Paul B Mahol <onemda@gmail.com> | 2017-03-12 12:34:55 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2017-03-12 12:34:55 +0100 |
commit | 807d5dcde9d83dca48f8dfc5c98bbc2be6fdc61c (patch) | |
tree | 275e7ac89cdd652a71ad623a23466f564389bfc4 /libavcodec/scpr.c | |
parent | ce010655a6b82d49bd8df179d73bcb5802a273c1 (diff) | |
download | ffmpeg-807d5dcde9d83dca48f8dfc5c98bbc2be6fdc61c.tar.gz |
avcodec/scpr: use correct linesize for prev frame
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/scpr.c')
-rw-r--r-- | libavcodec/scpr.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |