From patchwork Sat Jun 29 07:08:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul B Mahol X-Patchwork-Id: 13757 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 0C612448E68 for ; Sat, 29 Jun 2019 10:08:58 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id D624668AB76; Sat, 29 Jun 2019 10:08:57 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D329868AA1D for ; Sat, 29 Jun 2019 10:08:51 +0300 (EEST) Received: by mail-wr1-f68.google.com with SMTP id n9so8454051wru.0 for ; Sat, 29 Jun 2019 00:08:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=AU9FDSGqbRTd8y+PtsX9OAX6zcfI6vlQ18nGMDZMAuA=; b=KURB+Np3eZuhUaobUL8CecIXMR3Gg29FnFXGXE8yXxQ+4ccQHfG/12ruc2fFFk0g4G HIJuKR9XLa8hFy4CpvFit8KiuFeuufhRmAGfWoMo/AgCVKTMVfNbuZnCbMq5bx07aJF+ Lm0ExWJSUPa761KrZ3ZrhBgv7nffPP+ezJjk/NhVyJLPny1waXXpLnX/zYsy7sLXkACN lhA1klU1P8teMyk3KGsuxRV/kiCg2wL8R0W5C6r6I22KTsBWOa7hmC+rdGCO5gLQItHh AYo7Hcq0uG7CltelFLITqJ7IHMKsWsHhacIidEnrPX/bK54G+KR6vJknDW3FIkNyZjz1 wG+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=AU9FDSGqbRTd8y+PtsX9OAX6zcfI6vlQ18nGMDZMAuA=; b=XcU09KX6mA0gPpKBmf4MILufcbHziN48UXOesPnNiQGBWXj7/1Ap5cFp59aPac7Oik LZxqVSC4Zv1RyOe4uZwhJPrnY1O0KWxjUIrITck7ln/y+yJ7zweBY8VnujGf3gMOWrCO 2/DlipyezPeDsp12V0ryN+E+4gGq4zZXyEii54ZXdmM5seaKnCF4He/Pr0qq6HtA/P5M 3gvDrjXiKXxg0poW+dSBb5t62m4PyG4dF87nK53sfOMPiXR6mjl6tdBXqoUpK/+U9HdI 5ZqTznQJKBQOARfQ4TIVweUMoBuv0crSgFphdPVz/BUUavL6qeWxOowbA0b4CKBvu9Dt 5kYQ== X-Gm-Message-State: APjAAAVb3zp1JY882nMFY/pGnLGisN5FcgpK46EkPERlI4z0yzsbLE6/ g25E+FwLhpurjykLFoP0aCJ2otoO X-Google-Smtp-Source: APXvYqy68lCNMhF5MuCmxqdVHdkRP0kAzhGHs30X0VPjrpcAGqp09EBygSouMkTgVai7Y60N8ERatA== X-Received: by 2002:adf:edcd:: with SMTP id v13mr8286197wro.210.1561792131136; Sat, 29 Jun 2019 00:08:51 -0700 (PDT) Received: from localhost.localdomain ([77.237.101.48]) by smtp.gmail.com with ESMTPSA id y2sm4610192wrl.4.2019.06.29.00.08.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Jun 2019 00:08:50 -0700 (PDT) From: Paul B Mahol To: ffmpeg-devel@ffmpeg.org Date: Sat, 29 Jun 2019 09:08:41 +0200 Message-Id: <20190629070841.15241-1-onemda@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190628174216.28197-1-onemda@gmail.com> References: <20190628174216.28197-1-onemda@gmail.com> Subject: [FFmpeg-devel] [PATCH] avcodec/cfhd: add back alpha processing removed in 9cefb9e7ec 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" Fixes #7886. Signed-off-by: Paul B Mahol --- libavcodec/cfhd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/cfhd.c b/libavcodec/cfhd.c index 846d334b9b..49a5a2c30a 100644 --- a/libavcodec/cfhd.c +++ b/libavcodec/cfhd.c @@ -884,6 +884,8 @@ static int cfhd_decode(AVCodecContext *avctx, void *data, int *got_frame, high = s->plane[plane].l_h[7]; for (i = 0; i < lowpass_height * 2; i++) { horiz_filter_clip(dst, low, high, lowpass_width, s->bpc); + if (avctx->pix_fmt == AV_PIX_FMT_GBRAP12 && act_plane == 3) + process_alpha(dst, lowpass_width * 2); low += lowpass_width; high += lowpass_width; dst += pic->linesize[act_plane] / 2;