mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/scpr: use correct linesize for prev frame
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
ce010655a6
commit
807d5dcde9
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user