From patchwork Thu Dec 1 16:22:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?St=C3=A8ve_Lhomme?= X-Patchwork-Id: 1632 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.65.86 with SMTP id o83csp1025090vsa; Thu, 1 Dec 2016 08:22:46 -0800 (PST) X-Received: by 10.194.112.196 with SMTP id is4mr38795176wjb.92.1480609366458; Thu, 01 Dec 2016 08:22:46 -0800 (PST) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id w63si1267587wmb.92.2016.12.01.08.22.45; Thu, 01 Dec 2016 08:22:46 -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; 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 55D0E689BE5; Thu, 1 Dec 2016 18:22:35 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wj0-f194.google.com (mail-wj0-f194.google.com [209.85.210.194]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 27A98689A71 for ; Thu, 1 Dec 2016 18:22:29 +0200 (EET) Received: by mail-wj0-f194.google.com with SMTP id he10so12760214wjc.2 for ; Thu, 01 Dec 2016 08:22:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=A8HajNW+9vzZYUpOq/3xiC10lAuGcD1AuxPprvh8HQA=; b=WCcTadLZtGE3hTzrmJn4AabvLl/h5RdWMv7VS1+py+XVl1K8xHgBbbbvAGJA3TWWyI Ry0sShRfmi8tCDZ45Z/t/pR9+B6q3UlBR2wpoziwf+epoR+YqO6cPJuz4daTHeYOv1sd RsVwUqJnnE05av2lF8dLdq3EHv3axTVWQ7bFTxVGG2LrRTVWPWiXCMKtuQSBk9WfCrXy IYZ7wiDMNEK7rGaxdFWYICpJ47iYP/KkzDX4ZzFoIA449rVlszdQ1mY5jgI0kfmPyRFJ nxZNGw3eK2PvW/AmQsS5DGY1p8vzpVFdKUH3NGanuTtwomftVGdguItxvNRlsiFLkGdt Yl0g== X-Gm-Message-State: AKaTC02DJFC/Mn4e5uIIucbMQw0kEtcsndarXJK0BQc5yr2f/mHAkxLFd/c/G7tMGjdjlw== X-Received: by 10.194.191.201 with SMTP id ha9mr34107191wjc.205.1480609356818; Thu, 01 Dec 2016 08:22:36 -0800 (PST) Received: from localhost.localdomain (2a01cb0c000ea90021f51a7b7fa51aff.ipv6.abo.wanadoo.fr. [2a01:cb0c:e:a900:21f5:1a7b:7fa5:1aff]) by smtp.gmail.com with ESMTPSA id yj10sm1066807wjb.3.2016.12.01.08.22.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Dec 2016 08:22:35 -0800 (PST) From: Steve Lhomme To: ffmpeg-devel@ffmpeg.org Date: Thu, 1 Dec 2016 17:22:25 +0100 Message-Id: <20161201162228.3524-1-robux4@videolabs.io> X-Mailer: git-send-email 2.10.1 Subject: [FFmpeg-devel] [PATCH 1/4] dxva2: make ff_dxva2_get_surface() static 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: Steve Lhomme MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Steve Lhomme --- libavcodec/dxva2.c | 2 +- libavcodec/dxva2_internal.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/libavcodec/dxva2.c b/libavcodec/dxva2.c index 04a9c11..a64b1b5 100644 --- a/libavcodec/dxva2.c +++ b/libavcodec/dxva2.c @@ -29,7 +29,7 @@ #include "avcodec.h" #include "dxva2_internal.h" -void *ff_dxva2_get_surface(const AVFrame *frame) +static void *ff_dxva2_get_surface(const AVFrame *frame) { return frame->data[3]; } diff --git a/libavcodec/dxva2_internal.h b/libavcodec/dxva2_internal.h index 24adb99..c962810 100644 --- a/libavcodec/dxva2_internal.h +++ b/libavcodec/dxva2_internal.h @@ -96,8 +96,6 @@ typedef union { #define DXVA_CONTEXT_CFG_RESIDACCEL(avctx, ctx) (ctx->d3d11va.cfg->ConfigResidDiffAccelerator) #endif -void *ff_dxva2_get_surface(const AVFrame *frame); - unsigned ff_dxva2_get_surface_index(const AVCodecContext *avctx, const AVDXVAContext *, const AVFrame *frame);