From patchwork Thu Dec 16 11:04:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul B Mahol X-Patchwork-Id: 32654 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:cd86:0:0:0:0:0 with SMTP id d128csp291038iog; Thu, 16 Dec 2021 03:04:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJyqDbW8lcSTlvaVqBXlEAxHIhd/rNklzqVSnaM+0SA0oNYMD9IvwJIn04/dtLXI/1jj9kUB X-Received: by 2002:a17:906:ae48:: with SMTP id lf8mr14835373ejb.451.1639652697029; Thu, 16 Dec 2021 03:04:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1639652697; cv=none; d=google.com; s=arc-20160816; b=tWTF6vi16rvxeUO2QHxXNYKNCm+ErmCU6IHQG1Jo97az20hGq4icsLKIwvuLnR65cN vGv+ttnn+XRH9IYQpBnqoPhcKv5EtR8Em4i56uZSsNsqyDUnaOSVl/9vyi+cPllge/no QOTOUGXsmBDBRpuHy6/IcYhWUlhrUdCKHj5xtf9BWbPwHAoSt8Uzs70JDZYngCq8PaKD 3mwaQwatB25VnIVzHNVkARfLsA9UCiQKE5/7jiSZ+7VbWIAckUP5W3sQ66PCm4R515VP GfDxDMfqVsMRZCvxycgRkxM1BjuD3cwlUZklnDeClb5BLSZqO3bn3SdrW+M2UJAx15Tw ksQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from :dkim-signature:delivered-to; bh=AJ/tXDXJcyWM5bUWImZfPfP/OtO0Tg7xk3bkE7hb+Ho=; b=RolZwOoh8ep+isWEUA+idazRK9BWBIPP2EHq0mdN48tQbh7awLy2TZjucxpO4sIj+y kGuOLiGYRG+sOFW1VOgign452eNI+nKoZLnyxQ/dEBSNBL8ZkD3/feN3YDUyF6QDf8j2 Cc6p7Gg09qykm4ZHDIcxqr+1/y+c/sktKD+XsgsGh9bHm/5BUqdSVX4CnwoB4G8k2uPO vexh0+q1g9FPpZ7yk/WGxM9wU9lp8ngx93VuZi7SsgFoV9D0TFuvS+dl2pmAZcAxdy+v gHYep+FHwXJHr/TKr7EGYCOeyIylQbDpBVRc1xZg3WZGO5LxX3JaQeNu8m4G6W9RVq5P EICg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=lxtU68FG; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id sc23si4781778ejc.36.2021.12.16.03.04.55; Thu, 16 Dec 2021 03:04:57 -0800 (PST) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=lxtU68FG; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 9E88B6806F5; Thu, 16 Dec 2021 13:04:52 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9384E689F94 for ; Thu, 16 Dec 2021 13:04:45 +0200 (EET) Received: by mail-ed1-f50.google.com with SMTP id e3so86534256edu.4 for ; Thu, 16 Dec 2021 03:04:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=dJLjPcMIzPp5otc2W5X9yi/WUGL4CNU2Zw6MC1/RVU0=; b=lxtU68FGnRaMf8e2olTj96oFFlj5IgT+IJPrtxvs61FtqgMxssbhHZwRGFRVJI+8Oa KBDRZNPK+re4nMub9Gv0lIDoDghJGcCgLZAmaatrNGLwBuNbDm00/9C7sMrvduEDh17n 3288RaDc9BSmCQob5mgen8r36M9cugCfcmjRj1wuLtCVfoNYXW5TbhiWrhUjKlpY9UFq pT2IsOBld++bo6vtWgK6NwO812HIXv5T+YqLEmNHoX1ZTB+vQ2EQ6PL75uIu8S+y9vTw 2dq6YQfMD5U8NBKfG0MUsnMq5CJ+h8usFTZDlt+D9VRbhBU2vWpDhFRaBso0+SYqqNiq Dp5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=dJLjPcMIzPp5otc2W5X9yi/WUGL4CNU2Zw6MC1/RVU0=; b=uphuPGsc7lw28pO1oem8MGGSvMr//SyHV1vjdlJd+5+ROF449pIc5DbEdDoOz1DUgP 4L3y4qgC66NZuaKSwiFoX1eM+4abXlqn06OumkbcTFsUyIHGl/QNCkYU1ANpKLxAt0bY VHlwInKFRhGIFkHWsIJ26Ldvp7ogwtbOMZfnqzPxz45Ud/kOqFLpqf2JVyJs27FbVK7e d7RbEGUipZFz2MchHpAWXfxl2a6+oyAzSUSr5qmjop0r4F6tNj7ebIurS61J/E8J13aq 6v4rbvwSGxqX5MmuLXYm61HZVE1bXnTHSZPWySga9yB14U1PxlCv8zxA4KEj11N4Dh/5 kqoA== X-Gm-Message-State: AOAM532hzgT2uoL03U0SN9+0y0bzqYrppScLJ8z1wewaHhZCG/6Q1Cvg Dy+Rm/PiZ6AiXcsl01TbICjcSE1hkmA= X-Received: by 2002:a05:6402:5246:: with SMTP id t6mr19510598edd.18.1639652685084; Thu, 16 Dec 2021 03:04:45 -0800 (PST) Received: from localhost.localdomain ([95.168.120.84]) by smtp.gmail.com with ESMTPSA id h2sm2229619edl.85.2021.12.16.03.04.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Dec 2021 03:04:44 -0800 (PST) From: Paul B Mahol To: ffmpeg-devel@ffmpeg.org Date: Thu, 16 Dec 2021 12:04:46 +0100 Message-Id: <20211216110447.922332-1-onemda@gmail.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/2] avcodec/cdgraphics: unbreak rendering of vertical scrolling X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: VSEwFvI03Pim Signed-off-by: Paul B Mahol --- 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;