From patchwork Mon Oct 2 17:24:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Roche X-Patchwork-Id: 5382 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.61.8 with SMTP id n8csp1752850jan; Mon, 2 Oct 2017 10:25:46 -0700 (PDT) X-Received: by 10.28.237.17 with SMTP id l17mr9813301wmh.99.1506965146376; Mon, 02 Oct 2017 10:25:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506965146; cv=none; d=google.com; s=arc-20160816; b=pI/2CfsrgzCaOv7Qr34jRDOtWoGEk8pFDqv1mhuAFWxDL3wuLYZoiaglI7SgUNbOsh Gcjzz2gA62UwFTZy6I9FFZrPu5I05ywn1KbdyLjtQuaebZmVhDpRSaxwlvqFZCREdWQ1 eDlVlKWIU39iyOAQ9+xM3Bc5gn8f4PdVjluKr3i3FZNKE7LteJkw3qzVeE8BmQWypuu+ UBsISWBxXUdispmOJT3rI0mvDE0l5TGeDHf1LIBUd0WeNOMJh0qbPF1dA/nkDkyzlSyA 5gju6KTAP1XiJbtbs9jJx8EYpSkWfipjUySZ8a7KVwOZd6HHJO8iknU3JaXt+09uJimy xSlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=9ALv2tOWgZj4lEwq/OL+1ouK8uyI53hDrrBWpSnkGJI=; b=zp4cG1ptZKjoFRHYr/ny68tSLJuCV+slWhFBy54ldJAc/TLV3rFfD3zx98xxNQKmgx jz45+LvwS9Su3vHj2m0WZU+uOFFhUaMfe4wMCgs/mxPiI10Qtggo7Bo2CmAd3RssaDhW WOBHSzhOBhE9WEOkjK9Q+2QiygRldTBpUpX6OXC+jFcL49C/FLx4B7JA/0lX6usbsqqb 6zf1rwkH/yhg6Y+kquOG3HsM+ERWX/vC/6zudC/wqnpaDfac0/Z88p5UJU77YeTcayjb SkIR9ywU1SNNSYLM2mOm8a+vTKxw6GzXkxoq7GccpJ2pnph+U7L+/wf88hH5uzRs8UZT uR5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@giphy.com header.s=google header.b=qmQ/T9ry; 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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id y62si7730156wmd.75.2017.10.02.10.25.45; Mon, 02 Oct 2017 10:25:46 -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=@giphy.com header.s=google header.b=qmQ/T9ry; 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E8158689F16; Mon, 2 Oct 2017 20:25:00 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qk0-f178.google.com (mail-qk0-f178.google.com [209.85.220.178]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D1FFB689F09 for ; Mon, 2 Oct 2017 20:24:54 +0300 (EEST) Received: by mail-qk0-f178.google.com with SMTP id q8so5890991qkl.12 for ; Mon, 02 Oct 2017 10:25:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=giphy.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=dGyL1rUpT2PmBGHc0ERgRn8Qr3mHeJ+QBA6TR2Z30Rc=; b=qmQ/T9ryM67dYjrP4tFCUO0676sI/AeFsLI8ExTiQANDTEFmkBPwW/1wdTP5Lb+oQ/ fdD7E5FAXJkpod5nVgS2ea9zmhdznFFzqDVdoRB8tnVq7IzOhGlM3q4K7GsJVJ1cVfc3 KRHZqyEHFSSjueJoOY7Z4WEKnKKLfJ81BhL8Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=dGyL1rUpT2PmBGHc0ERgRn8Qr3mHeJ+QBA6TR2Z30Rc=; b=VQ60I3dLTX5H0SD1c26gSkqUZ9sxZj1UpKXvsFX2YdVA2yH/EGkEGEdY1Eone02vv5 05kBk9ysO5OsQCFNT508Jf/DBmEXzP4uvchQk5pIuKwanKNSvrs5twYEIYWGty2DCvt1 cAFpQRPWNeCBXmRk/+F4Hyg0IXs1pv+91bDp+OPhcgZBK6Q7QqfxA4/6NbIm5A7jHc8s VNpbuGUpOZ3Bqh1xDhDfR2on19AMc9hQlZZMbxKpQqdwDKcgCXCrVIgnF3PvVlzV2JvJ LuUdF4p4zJGHFsNW1ej0twBKis/XMA1qCd+DH+3RU0YD2qtelQukoe5L0N1XVujfSPL3 wuqw== X-Gm-Message-State: AMCzsaVwsICQA9SCzOHZ325dfiu02SlO4q0a5Vj9g5u6XSE+a8HcaGEg Z0TCwb9p4aptodoDtM2YLTif7XAfDt8= X-Google-Smtp-Source: AOwi7QCUvd6YGBncHJC+6Di0/MSkbKOyTDVlrNitKkIw00TvlTLalgWwWlE3L8II1dU1V74fhk1f2w== X-Received: by 10.55.140.69 with SMTP id o66mr16122862qkd.312.1506965108201; Mon, 02 Oct 2017 10:25:08 -0700 (PDT) Received: from localhost.localdomain ([208.184.100.82]) by smtp.gmail.com with ESMTPSA id p25sm7339001qte.28.2017.10.02.10.25.07 (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 02 Oct 2017 10:25:07 -0700 (PDT) From: Bjorn Roche To: ffmpeg-devel@ffmpeg.org Date: Mon, 2 Oct 2017 13:24:39 -0400 Message-Id: <20171002172439.65628-8-bjorn@giphy.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171002172439.65628-1-bjorn@giphy.com> References: <20171002172439.65628-1-bjorn@giphy.com> Subject: [FFmpeg-devel] [PATCH 7/7] Fix for detecting opaque correctly. 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 Cc: Bjorn Roche MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Bjorn Roche --- libavcodec/gif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/gif.c b/libavcodec/gif.c index 3ced6d4d45..758e16b83d 100644 --- a/libavcodec/gif.c +++ b/libavcodec/gif.c @@ -80,7 +80,7 @@ static int is_image_translucent(AVCodecContext *avctx, const uint8_t *buf, const int linesize) { GIFContext *s = avctx->priv_data; - uint8_t trans = s->transparent_index; + int trans = s->transparent_index; int p; const int m = avctx->width * avctx->height ;