[FFmpeg-devel] [PATCH 1/2] avcodec/cdgraphics: unbreak rendering of vertical scrolling

Paul B Mahol onemda at gmail.com
Thu Dec 16 13:04:46 EET 2021


Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
 libavcodec/cdgraphics.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/cdgraphics.c b/libavcodec/cdgraphics.c
index 731d800666..c9e265fa53 100644
--- a/libavcodec/cdgraphics.c
+++ b/libavcodec/cdgraphics.c
@@ -218,7 +218,7 @@ static void cdg_scroll(CDGraphicsContext *cc, uint8_t *data,
 
     /// find the difference and save the offset for cdg_tile_block usage
     hinc = h_off - cc->hscroll;
-    vinc = v_off - cc->vscroll;
+    vinc = cc->vscroll - v_off;
     cc->hscroll = h_off;
     cc->vscroll = v_off;
 
-- 
2.33.0



More information about the ffmpeg-devel mailing list