[FFmpeg-cvslog] avcodec/cdgraphics: fix for negative linesize and vertical scrolling
Paul B Mahol
git at videolan.org
Tue Sep 26 21:28:41 EEST 2023
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Sep 26 16:32:58 2023 +0200| [e1530a319ab5e9dfa6715391824d203914323ed5] | committer: Paul B Mahol
avcodec/cdgraphics: fix for negative linesize and vertical scrolling
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e1530a319ab5e9dfa6715391824d203914323ed5
---
libavcodec/cdgraphics.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/cdgraphics.c b/libavcodec/cdgraphics.c
index 966b255220..f33f7fbf00 100644
--- a/libavcodec/cdgraphics.c
+++ b/libavcodec/cdgraphics.c
@@ -249,11 +249,11 @@ static void cdg_scroll(CDGraphicsContext *cc, uint8_t *data,
if (vinc > 0)
cdg_fill_wrapper(0, 0, out,
0, CDG_FULL_HEIGHT - vinc, in, color,
- stride, vinc, stride, roll_over);
+ FFABS(stride), vinc, stride, roll_over);
else if (vinc < 0)
cdg_fill_wrapper(0, CDG_FULL_HEIGHT + vinc, out,
0, 0, in, color,
- stride, -1 * vinc, stride, roll_over);
+ FFABS(stride), -1 * vinc, stride, roll_over);
if (hinc > 0)
cdg_fill_wrapper(0, 0, out,
More information about the ffmpeg-cvslog
mailing list