[FFmpeg-cvslog] avcodec/scpr: use correct linesize for prev frame
Paul B Mahol
git at videolan.org
Sun Mar 12 13:36:55 EET 2017
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Mar 12 12:34:55 2017 +0100| [807d5dcde9d83dca48f8dfc5c98bbc2be6fdc61c] | committer: Paul B Mahol
avcodec/scpr: use correct linesize for prev frame
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=807d5dcde9d83dca48f8dfc5c98bbc2be6fdc61c
---
libavcodec/scpr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/scpr.c b/libavcodec/scpr.c
index 1fc0593..465926a 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) {
More information about the ffmpeg-cvslog
mailing list