Browse Source

avcodec/scpr: use correct linesize for prev frame

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n3.3
Paul B Mahol 8 years ago
parent
commit
807d5dcde9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/scpr.c

+ 1
- 1
libavcodec/scpr.c View File

@@ -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…
Cancel
Save