Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2021-12-15 12:26:22 +0300
committerPaul B Mahol <onemda@gmail.com>2021-12-18 12:20:24 +0300
commit1c49d74fad3a996e08a6b96db59ed5179f8aa373 (patch)
tree58cc8ccda649feb50ab14492df613ba36f0ae502 /libavcodec/cdgraphics.c
parent68457c1e85122ffcadb0c909070dd210095fd2cd (diff)
avcodec/cdgraphics: unbreak rendering of vertical scrolling
Diffstat (limited to 'libavcodec/cdgraphics.c')
-rw-r--r--libavcodec/cdgraphics.c2
1 files changed, 1 insertions, 1 deletions
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;