From patchwork Tue Sep 20 01:31:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 38065 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:3b1c:b0:96:9ee8:5cfd with SMTP id c28csp1615537pzh; Mon, 19 Sep 2022 18:32:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5D72bWbNSN/eyr0koXhwMOrEIGPn+gPRkeQu0Yxh6gBIzdFZwfDxZ5XD442jJQb+UG0u1L X-Received: by 2002:a17:907:2c54:b0:77d:971f:be12 with SMTP id hf20-20020a1709072c5400b0077d971fbe12mr14486834ejc.560.1663637524602; Mon, 19 Sep 2022 18:32:04 -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 b8-20020a056402350800b004515d9b26d3si253349edd.406.2022.09.19.18.31.55; Mon, 19 Sep 2022 18:32:04 -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=@outlook.com header.s=selector1 header.b=ieU2seCq; arc=fail (body hash mismatch); 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=outlook.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 6CA1868BAEC; Tue, 20 Sep 2022 04:31:49 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-oln040092067072.outbound.protection.outlook.com [40.92.67.72]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 56DE768BA7C for ; Tue, 20 Sep 2022 04:31:42 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AMuxvY7tfwtAYAy2cW5UTeCJ7PASn+xCzfJB7Ifs5M/C5Ug/MfrlWekJJkmCJLV/EsSFrnHCeG0Tixpuklo8rjMvf6C3yseUtCGnySlOSr5zgkd7zOSh6NoMDaMDCnHBHwdHER8W+f4BpLSZxpxntI5+DS63VOyUeP2jmEkTn0ymAR3YP6cio2xKE+VTOiqXzfq5j1PLZqGu7MKzIwULTngQzC2L+/3c/35K1yxrJVi2MXTz/6wmPU4SZ2zJNbL/Cskz36AmfSnJzwu3kPYjXgMUAhyi/KrRkhGeS9Ufu2OYfFfebNBfCpr0/4wsT40xmtN/D9rc2CWNliJ0dLS72Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=YyyYvK68HdzVQpR2ylvXoiwkaeG+PSjsfEhGfVCJSw8=; b=I3yEVT14DOsblhuaMnok9SstB97xD7l3gCJhhk1IPXhFfgAIuDzaK6CmPk+QJjKgxlcAiVuy7nn+Jiu0+bpc6G1xojvZsdKXANzGdw8ygV2MBCAQZgHaH+laOFzZbtOmXC3vRAdk3sfcI7nPtzq0lBkY6Lm+WUHvBFTMXEjj6ApRJXXbWA2Ich992+uLi4BKh0AvjsCWY4/sSIyOr67jRmzIcv9X2cGxzsfF3nYXd47BeSIEL/tPwffsXc5Yf5qntgIsb5UaHaJGTwxWcWFyY34YFGmFLWOXKnEftc4BAgAfqiyl6do8YktK4sjBgJfzKsyYfiGgACY+WTd4BZXPsQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YyyYvK68HdzVQpR2ylvXoiwkaeG+PSjsfEhGfVCJSw8=; b=ieU2seCqSkdJQAlJDmFHezJOThmFF3/6hBLbIo6gDyON8dHs/nBiyEBVvxl/vqWB5ewV2ItW6XUpPbrCuyNlaZlXlIcY/4LZx5P3hA6BSDs90fRf5JMfqp9CbKiTEMr5LwXEXaJ1g16Nys5UW/jN1f92uV84KtWGx2Y3WbAZQxLCNDXrCMcJcAFc95l6/e/LOexY4VGXG6Mp66YtYSC//7bd+FC1o4aOblI5B+hKWo7EBCted6WW3VgT0Td6i5vkCWFIB219MV/LY2PVMM/fZV1N1Gv00J2D6k3WYd/vh2JNnpVsYQNRycpMhpCLHqT6Pk/J0Jof5bj1fbq1nMoBUg== Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) by AS4P250MB0415.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:4c2::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5632.15; Tue, 20 Sep 2022 01:31:38 +0000 Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM ([fe80::f3f2:4362:56:4785]) by GV1P250MB0737.EURP250.PROD.OUTLOOK.COM ([fe80::f3f2:4362:56:4785%8]) with mapi id 15.20.5632.019; Tue, 20 Sep 2022 01:31:38 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Tue, 20 Sep 2022 03:31:30 +0200 Message-ID: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: X-TMN: [OpCIPRiVyukqncmV/hdOAYgo+DOdoHS8vZjDUuUQzJY=] X-ClientProxiedBy: ZR2P278CA0001.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:50::9) To GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) X-Microsoft-Original-Message-ID: <20220920013130.3759384-2-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1P250MB0737:EE_|AS4P250MB0415:EE_ X-MS-Office365-Filtering-Correlation-Id: 45425301-8a08-4522-4283-08da9aa7dce1 X-MS-Exchange-SLBlob-MailProps: ZILSnhm0P3kyBfxgtFTZKWfNHcc7URYFZYOYnCgWNORgSjyy/GMxV+EnFeipdg+Oe0LDfqhzy374+pxBMGE5n7p0nFCUJgVeqZAGrFHxElzmqpmze377HiKg+BkGxakY8chwXdNZ2yTPHMwmk3vAOeWUwS/hr2z9k97w1VEF0pcYXeSCvPhqJSwPA24NB5rpTZ3PL/0qG83PRH7gR3krfQj5QB9rWq5nB9vhFeBCSNdnHXohyBi44nvHMPq/LmNoibBkHDtFLILTstwIhCnp46iFqz0vfpEw+DRdMXT2nXEUEDQ3D1V5Wfp4ENQfS83Mk3S+C1mElZE5NCSju6ZjjxpuHmT23/+Gtn8e+8n9Qh97Df+HsHkAKir94lyApY90sjlwE7wvNVsv3ha0xmNiYTBvDFgr9UA5cUS15jzi1iLBHCZrgByPr+U4Pn4JZNb1O7kQR5BzQhPOftwDYbH3qdB+OO0Fq+wl7Ee/avwAnJD12SXMhqvXXXqHCSx9nXTw3IPVzgQ1lOmUWJ0vNTQgjBV5ivz5mC26lhTVTXz3+h6D6Pf2/BN1J7+45LWWqZE/27mI4OSXO5LSj3GrJ/dBjxlBd/1U8jkmrR9q2QfGPxNcBjzlNBCZ01HSXaFZ/YymKJ9CIPSw/Kjk7NH6zneYo6oOfFPKVLfNc78jD1hCMSHi564r+0R0qZqnLurYgU25Qm3u5aor0dqkNq6snhMRNYjAF+ZuwZKq0CasHFZvKHHC49Rbx6ek6PRMVQpa4SnskizfC8Bzf9YyeKSVrm95WmGpD4w4wa/y X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: PKh4Mh7iRKf4I+3SSvr/yeVcR8FrsjlGkjnzj6RkrBoxyOpWqQG9QHjbs+BC1iJGvN5PBU0TEApiWdMCF886yuhbqdQM1d9c3gF4NWDvntyavMb0DD+ECLLXHpd/JasduhANcKy2hmVtNrJhOnH4TcoplV8QvvHMvmnlqTv7v8VteqAElHZQgWn140dh3Hzt17lpztk9KAHCS12l9psLpnNyiqmGUmBGpWnekkhyCRQ/lMadCGg+M4Ffu7gEGFSD6B2CwE/4sdgU/LOeCW8DuHWSrSmdOvMAOsWaq4qvgw2aLr/0Uv4NMWhG6FSkyiO0CsrtyevTL3SPoye5TN3lFDFzN0iFjOkIOjGyWOoUDr92xyvthx8PYWfuv7ApEcyfum+y0hpBXfyLc8W8iAufENGRZ8J+JFEVledLtkAc5h6/QUFxbzy65SbVjtogGfPhMcdLz8M27yR+nqHyfiT+K5Toyg7yxYRpkP+tLgUZjGEYtg8mARf9jg78EuNHO3wjPeD0mcOdQkInmvPaIO3+udyb2INHF10Rmmcn1548FzgETdl4F8sg/rb5KSQXDqA6chYMTViFGkEdI9HzbNXbXMajYsuVtWXDfivA3FFneekfmAOo/VuvNZIPwEFXXOJP7fsssVtGlzWLMF9xUDZqaA== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: g1LBb+hRDOrfOIQyjQTKKjL4iXU8fmBVdnj5gSq4brtah4+dznaCJ+2WfjPmdxNy2Wlg2sNIELChERUvqGzvtjYOpzF4Z3XgBCUO1v9LQDdRTTlfLFvvKXdvt4LE1v+weqVj/sye022jsUrMO6tVPZHSrG6Hvros1k8bykxoSF35zoMWRQjNWJNlbF1gx7tvvYQxeBcai5RrvRoZOUXkLHDXmJkRpcGIQtphDSTo8tG+Pl9QKZsar1y/xVeWISR+0CrI5XSi+JdodXke2WixNm6HPWpv1QqjdIYgLS0yv2bRIr+gWF5blDMct3WY9fSXXsveFa6WsYRGU6aWFMBdZTkRXtYQRFcIALfnQG7dAOP+dgicuF+tCch2RAmEhdV1kmVgrVT3o3If4vFPzfLnExvOmGBtCXdkzfJp5QaRxEH4GPe3YBt0TGJskIMzLhq8sQz4YC0yZpg3I2XeNFoq+7QPPb5zHx4y/skMX4emSaM2EUns3opLNxLHOY3m9Oxfus88JmJD6aBLJZRFhkfYCp6ZLVmoTCGk6nJ3yt6dzOmZRhj8XXH71rYp0WFexkPKX3ML6iVfl/1IKgSg5++H00ad+kfBEDuWUzAqg5TBKU2+8zTzVG0sdEQTLl8DBJSNvkcEe4bpv+CcVXu4h9eZQWgUGTJeAyvDTnehydiONMEqspYQRag7uztctXb+rac8sO3hKdIdJ6UBJuDre5oYLAz5nUpDGVK5KIlCgYO5L19FSpJwdnHn9XoCfvrvcJpJlFSnGhPrJEdSr94siPvLCigKV9wW/hRNY4F9AOxLfZhMcpr5q5YRsthyQVs+9DpvrGW8qW17oOLSV02ZJA9oBagUFPBNZxgu56tKDLwKa799ZyPXTKBiPlMrK0uBa36VuAmAbwBfM7WPBEm5HDoKPCjkF665Bxl+YiJNzNm13IRkGJ7gX/cmiOGj+/tGs4wtYg2Aalj5S1kCDwwt2rSgQcnrBHZtmMwP7s2enoCrpHV73oxK1x8Q5XxqxR0NxZM+IoQgrKjfQcm58Qu88laXxcGhnQi7hA1XMkmMkFbmfHgfZg7p7+/i56GNI7oOmIE1Li9kTEuiglt4AXUYzCrT5n3WVpt6jOSYuE110mPtxBEf5fyhdkpFTNu4H1kBiC2NdcS4XdU9Z1ciCt0rh7ZvJbNdIOnL1r5f/9rjSNLx6EKjp0mXVz/ArpO8zHUnEbndEKBYQ6Bet0MJFJ6HAZqUlp1lKHORVSvuHGYMsqjh20+mtD95gNtr7JeD5XnlzhUxawJz2LSc1DNSctHtQtgjF8Uv97gAu9Dorf4pIHKq4pI= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 45425301-8a08-4522-4283-08da9aa7dce1 X-MS-Exchange-CrossTenant-AuthSource: GV1P250MB0737.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Sep 2022 01:31:38.4187 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4P250MB0415 Subject: [FFmpeg-devel] [PATCH 3/3] avcodec/fmtconvert: Remove unused AVCodecContext parameter 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 Cc: Andreas Rheinhardt Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: 08Ou6SIyAt8T Unused since d74a8cb7e42f703be5796eeb485f06af710ae8ca. Signed-off-by: Andreas Rheinhardt --- libavcodec/aarch64/fmtconvert_init.c | 4 +--- libavcodec/ac3dec.c | 2 +- libavcodec/ac3dec.h | 1 + libavcodec/arm/fmtconvert_init_arm.c | 3 +-- libavcodec/fmtconvert.c | 11 +++++------ libavcodec/fmtconvert.h | 12 ++++++------ libavcodec/mips/fmtconvert_mips.c | 1 - libavcodec/ppc/fmtconvert_altivec.c | 3 +-- libavcodec/x86/fmtconvert_init.c | 2 +- tests/checkasm/fmtconvert.c | 2 +- 10 files changed, 18 insertions(+), 23 deletions(-) diff --git a/libavcodec/aarch64/fmtconvert_init.c b/libavcodec/aarch64/fmtconvert_init.c index 210e74b654..e0990afabc 100644 --- a/libavcodec/aarch64/fmtconvert_init.c +++ b/libavcodec/aarch64/fmtconvert_init.c @@ -22,7 +22,6 @@ #include "libavutil/attributes.h" #include "libavutil/aarch64/cpu.h" -#include "libavcodec/avcodec.h" #include "libavcodec/fmtconvert.h" void ff_int32_to_float_fmul_array8_neon(FmtConvertContext *c, float *dst, @@ -31,8 +30,7 @@ void ff_int32_to_float_fmul_array8_neon(FmtConvertContext *c, float *dst, void ff_int32_to_float_fmul_scalar_neon(float *dst, const int32_t *src, float mul, int len); -av_cold void ff_fmt_convert_init_aarch64(FmtConvertContext *c, - AVCodecContext *avctx) +av_cold void ff_fmt_convert_init_aarch64(FmtConvertContext *c) { int cpu_flags = av_get_cpu_flags(); diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c index 5d0add40fe..ac6298d57e 100644 --- a/libavcodec/ac3dec.c +++ b/libavcodec/ac3dec.c @@ -205,7 +205,7 @@ static av_cold int ac3_decode_init(AVCodecContext *avctx) #if (USE_FIXED) s->fdsp = avpriv_alloc_fixed_dsp(avctx->flags & AV_CODEC_FLAG_BITEXACT); #else - ff_fmt_convert_init(&s->fmt_conv, avctx); + ff_fmt_convert_init(&s->fmt_conv); s->fdsp = avpriv_float_dsp_alloc(avctx->flags & AV_CODEC_FLAG_BITEXACT); #endif if (!s->fdsp) diff --git a/libavcodec/ac3dec.h b/libavcodec/ac3dec.h index 9444124974..88651ae61f 100644 --- a/libavcodec/ac3dec.h +++ b/libavcodec/ac3dec.h @@ -57,6 +57,7 @@ #include "ac3.h" #include "ac3dsp.h" +#include "avcodec.h" #include "bswapdsp.h" #include "get_bits.h" #include "fft.h" diff --git a/libavcodec/arm/fmtconvert_init_arm.c b/libavcodec/arm/fmtconvert_init_arm.c index e88255d619..e12f83c842 100644 --- a/libavcodec/arm/fmtconvert_init_arm.c +++ b/libavcodec/arm/fmtconvert_init_arm.c @@ -22,7 +22,6 @@ #include "libavutil/attributes.h" #include "libavutil/arm/cpu.h" -#include "libavcodec/avcodec.h" #include "libavcodec/fmtconvert.h" void ff_int32_to_float_fmul_array8_neon(FmtConvertContext *c, float *dst, @@ -37,7 +36,7 @@ void ff_int32_to_float_fmul_array8_vfp(FmtConvertContext *c, float *dst, const int32_t *src, const float *mul, int len); -av_cold void ff_fmt_convert_init_arm(FmtConvertContext *c, AVCodecContext *avctx) +av_cold void ff_fmt_convert_init_arm(FmtConvertContext *c) { int cpu_flags = av_get_cpu_flags(); diff --git a/libavcodec/fmtconvert.c b/libavcodec/fmtconvert.c index 00f55f8f1e..cedfd61138 100644 --- a/libavcodec/fmtconvert.c +++ b/libavcodec/fmtconvert.c @@ -22,7 +22,6 @@ #include "config.h" #include "libavutil/attributes.h" -#include "avcodec.h" #include "fmtconvert.h" static void int32_to_float_fmul_scalar_c(float *dst, const int32_t *src, @@ -42,19 +41,19 @@ static void int32_to_float_fmul_array8_c(FmtConvertContext *c, float *dst, c->int32_to_float_fmul_scalar(&dst[i], &src[i], *mul++, 8); } -av_cold void ff_fmt_convert_init(FmtConvertContext *c, AVCodecContext *avctx) +av_cold void ff_fmt_convert_init(FmtConvertContext *c) { c->int32_to_float_fmul_scalar = int32_to_float_fmul_scalar_c; c->int32_to_float_fmul_array8 = int32_to_float_fmul_array8_c; #if ARCH_AARCH64 - ff_fmt_convert_init_aarch64(c, avctx); + ff_fmt_convert_init_aarch64(c); #elif ARCH_ARM - ff_fmt_convert_init_arm(c, avctx); + ff_fmt_convert_init_arm(c); #elif ARCH_PPC - ff_fmt_convert_init_ppc(c, avctx); + ff_fmt_convert_init_ppc(c); #elif ARCH_X86 - ff_fmt_convert_init_x86(c, avctx); + ff_fmt_convert_init_x86(c); #endif #if HAVE_MIPSFPU ff_fmt_convert_init_mips(c); diff --git a/libavcodec/fmtconvert.h b/libavcodec/fmtconvert.h index b2df7a9629..da244e05a5 100644 --- a/libavcodec/fmtconvert.h +++ b/libavcodec/fmtconvert.h @@ -23,7 +23,7 @@ #ifndef AVCODEC_FMTCONVERT_H #define AVCODEC_FMTCONVERT_H -#include "avcodec.h" +#include typedef struct FmtConvertContext { /** @@ -56,12 +56,12 @@ typedef struct FmtConvertContext { } FmtConvertContext; -void ff_fmt_convert_init(FmtConvertContext *c, AVCodecContext *avctx); +void ff_fmt_convert_init(FmtConvertContext *c); -void ff_fmt_convert_init_aarch64(FmtConvertContext *c, AVCodecContext *avctx); -void ff_fmt_convert_init_arm(FmtConvertContext *c, AVCodecContext *avctx); -void ff_fmt_convert_init_ppc(FmtConvertContext *c, AVCodecContext *avctx); -void ff_fmt_convert_init_x86(FmtConvertContext *c, AVCodecContext *avctx); +void ff_fmt_convert_init_aarch64(FmtConvertContext *c); +void ff_fmt_convert_init_arm(FmtConvertContext *c); +void ff_fmt_convert_init_ppc(FmtConvertContext *c); +void ff_fmt_convert_init_x86(FmtConvertContext *c); void ff_fmt_convert_init_mips(FmtConvertContext *c); #endif /* AVCODEC_FMTCONVERT_H */ diff --git a/libavcodec/mips/fmtconvert_mips.c b/libavcodec/mips/fmtconvert_mips.c index 89c699854e..c39e853575 100644 --- a/libavcodec/mips/fmtconvert_mips.c +++ b/libavcodec/mips/fmtconvert_mips.c @@ -49,7 +49,6 @@ */ #include "config.h" #include "libavutil/attributes.h" -#include "libavcodec/avcodec.h" #include "libavcodec/fmtconvert.h" #include "libavutil/mips/asmdefs.h" diff --git a/libavcodec/ppc/fmtconvert_altivec.c b/libavcodec/ppc/fmtconvert_altivec.c index 7323eff0bd..2e34de7c90 100644 --- a/libavcodec/ppc/fmtconvert_altivec.c +++ b/libavcodec/ppc/fmtconvert_altivec.c @@ -54,8 +54,7 @@ static void int32_to_float_fmul_scalar_altivec(float *dst, const int32_t *src, #endif /* HAVE_ALTIVEC */ -av_cold void ff_fmt_convert_init_ppc(FmtConvertContext *c, - AVCodecContext *avctx) +av_cold void ff_fmt_convert_init_ppc(FmtConvertContext *c) { #if HAVE_ALTIVEC if (!PPC_ALTIVEC(av_get_cpu_flags())) diff --git a/libavcodec/x86/fmtconvert_init.c b/libavcodec/x86/fmtconvert_init.c index 58b396856e..acbc334565 100644 --- a/libavcodec/x86/fmtconvert_init.c +++ b/libavcodec/x86/fmtconvert_init.c @@ -35,7 +35,7 @@ void ff_int32_to_float_fmul_array8_sse2(FmtConvertContext *c, float *dst, const #endif /* HAVE_X86ASM */ -av_cold void ff_fmt_convert_init_x86(FmtConvertContext *c, AVCodecContext *avctx) +av_cold void ff_fmt_convert_init_x86(FmtConvertContext *c) { #if HAVE_X86ASM int cpu_flags = av_get_cpu_flags(); diff --git a/tests/checkasm/fmtconvert.c b/tests/checkasm/fmtconvert.c index aef74479f6..e103a664d0 100644 --- a/tests/checkasm/fmtconvert.c +++ b/tests/checkasm/fmtconvert.c @@ -56,7 +56,7 @@ void checkasm_check_fmtconvert(void) for (i = 0; i < FF_ARRAY_ELEMS(scale_arr); i++) scale_arr[i] = (FF_ARRAY_ELEMS(scale_arr) - FF_ARRAY_ELEMS(scale_arr) / 2) / 13; - ff_fmt_convert_init(&c, NULL); + ff_fmt_convert_init(&c); memset(dst0, 0, sizeof(*dst0) * BUF_SIZE); memset(dst1, 0, sizeof(*dst1) * BUF_SIZE);