From patchwork Tue Sep 6 11:30:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul B Mahol X-Patchwork-Id: 449 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.140.134 with SMTP id o128csp529231vsd; Tue, 6 Sep 2016 04:30:41 -0700 (PDT) X-Received: by 10.28.173.205 with SMTP id w196mr20886919wme.86.1473161441128; Tue, 06 Sep 2016 04:30:41 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id dx2si8451210wjd.28.2016.09.06.04.30.38; Tue, 06 Sep 2016 04:30:41 -0700 (PDT) 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; 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 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 40CFA689F50; Tue, 6 Sep 2016 14:30:27 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E7A8C689F2A for ; Tue, 6 Sep 2016 14:30:20 +0300 (EEST) Received: by mail-wm0-f68.google.com with SMTP id w12so8507931wmf.1 for ; Tue, 06 Sep 2016 04:30:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=eTqRpsdhoplb9Cg+xOhrluU9q840zgEYzwgrmBP5alY=; b=sDyFAeOMVSpK3p/yubYVKG7ARB4aHt7j/86nV/q1f835fDgUj/8B8sS0E2gLYbvoHd 3KUCvG6wmmBqEU7EcQfalLCJcRHjTvithHr2sEJ+aRI09mRhbXT92azw4vYlEY1ROxBe LlIgynb15qk3Cwqmp1tDnyy3YlR8LJwGGtJCEEz+iszJubmBvHXU8OLG4KbYrD0J3iX0 65f3mFeT5Wveg4/Uo0wPlIA1+pMHumjtEeAHhj5c/OfPon6lV/2gcmtmFFaj86E5JU/K pNqVRzoO7Gap7oFb/M3gITwBvGU8vrjr9yTf5WTyticlqywZZ59Zm5ZmY7Eqb+37dt6L 5KiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=eTqRpsdhoplb9Cg+xOhrluU9q840zgEYzwgrmBP5alY=; b=GeHp50JAs9ws+ZSPMYp35PLbabxxW/BnPO7OU1mX64qngJ0cxaMGvzxIIcYr4T9Swm K8i3GLWnVqPKKCWzJqiQCGmPWKr3y14hj7gQ9ClcPdK6HGao/g41rZoNci+yacvCSvt2 OSWmBOmc67SiPxgDdOtIMAmmBuYfuj4jxtr6ZsYFUwPBpWrNAajIR31tQmkxnLTZz666 wlsfm9F/asIHqviI3UiS2PS3O/KC6PmMXdWAo8jatBukKo5HUfMUA9N0PhtHFrLxw9Ar CqvbjTVdjAGT4BMehhqiVVG0S0NHuO3MqEV018dtWSWQBwYd2Pppzc5PvX7Ofy4Fwy3V EeZA== X-Gm-Message-State: AE9vXwPDs/1nM60y4USTGoQv4JKuWPSatlaKJssms7NnErQRYYx6pBhP7NiWmWqgTtsP9A== X-Received: by 10.194.169.194 with SMTP id ag2mr11861757wjc.164.1473161429525; Tue, 06 Sep 2016 04:30:29 -0700 (PDT) Received: from computer.gigaset.lan (217-229.dsl.iskon.hr. [89.164.217.229]) by smtp.gmail.com with ESMTPSA id z17sm26031143wmz.23.2016.09.06.04.30.28 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Sep 2016 04:30:28 -0700 (PDT) From: Paul B Mahol To: ffmpeg-devel@ffmpeg.org Date: Tue, 6 Sep 2016 13:30:17 +0200 Message-Id: <1473161417-19576-1-git-send-email-onemda@gmail.com> X-Mailer: git-send-email 2.5.0 Subject: [FFmpeg-devel] [PATCH] avcodec/gif: dont honor transparency if palette changed X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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 MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" It generally does not work. Signed-off-by: Paul B Mahol --- libavcodec/gif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/gif.c b/libavcodec/gif.c index 6af1f4a..d9c99d5 100644 --- a/libavcodec/gif.c +++ b/libavcodec/gif.c @@ -83,7 +83,7 @@ static int gif_image_write_image(AVCodecContext *avctx, GIFContext *s = avctx->priv_data; int len = 0, height = avctx->height, width = avctx->width, x, y; int x_start = 0, y_start = 0, trans = s->transparent_index; - int honor_transparency = (s->flags & GF_TRANSDIFF) && s->last_frame; + int honor_transparency = (s->flags & GF_TRANSDIFF) && s->last_frame && !palette; const uint8_t *ptr; /* Crop image */