From patchwork Thu Mar 28 22:38:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 47610 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:9f96:b0:1a3:b6bb:3029 with SMTP id mm22csp1653764pzb; Thu, 28 Mar 2024 15:39:23 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXX0ZXFeLkqhTQmFlcZk2KsLqSjB6w7IoHIuPDevQ2yqwDbw3BoNW2X+q/+0PrvIIZhGe/EdO7wekEaY3FTZ5E4/vvsLUCpRxCwkA== X-Google-Smtp-Source: AGHT+IFNTsC9VFQBcvHSzwrUNlDRa1Yg/zogdY4eNSDGibB9H1QCYTpAAWtDcXwwXyTJmHFSJ+2D X-Received: by 2002:a50:ab14:0:b0:56c:5a49:738 with SMTP id s20-20020a50ab14000000b0056c5a490738mr464179edc.10.1711665563249; Thu, 28 Mar 2024 15:39:23 -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 e21-20020a50a695000000b0056c4ca54a21si1184308edc.516.2024.03.28.15.39.21; Thu, 28 Mar 2024 15:39:23 -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="HhxKf4/N"; 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 7DB1868D737; Fri, 29 Mar 2024 00:39:18 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05olkn2026.outbound.protection.outlook.com [40.92.89.26]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E84FD68D55C for ; Fri, 29 Mar 2024 00:39:11 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FiK2bh+0MvOZEsxdyol/E/Ak/gy94rMMIae+y3EcG73DkbEa7Vin6HJjkKQGOecxs1vvbdAVs9e98F5Yt0u6x0VsVn6Ri7hAthr/PnqJxHvhZEruAxOxFm68YElHTZx8QzW1A9NjkHJ5OjIdv9rbS+sc22sBSNiAqQo02ewsS399QU23P01mK68VNRB7h2k+55pclqRC8jURn41Ne0uMSf9VIxVW+JTIali5WYarfwWdJWEbupQ2FHRAwP1P8JJ0bQNng+1PxyXnArsVrBowB92mig2ZFdRzaTglWr3tHE58rn558GIsT6PTep677BvyQS3zLMd9u/CsCAgGHlpAcg== 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=nFj/hajgQMO7Y8BXDRG0bSJHZyUJetrnFfBXqYL3Gso=; b=TBfUNvASFh82DNlzMwmcOPM3dhxSC0v46PV15OaNDU9BmU+7Tkg1uxMYYI22oWQvvLAPnj8OzkxfRiANON+D8tbmSvOOdARai1lbI3aBRejkx7YW+5/SM9jtZJBGT8HyC487n/aVTdJN/VM/bhygfncdvBbvWGjXdKu5vZBhqR+z5nlUnrZ/L6lO6Pc5vdlCUqBzlD3Im7id78Yrax9a3jTuWwe4pJ6mbn7cubAmiMY/1DqQWf8QgpWqGo0kXr0ZtAWJvfdOi8TP9TZlp0fNDt7O2IlxzDi3eyKscK97JkqqgrBvRBLqvCsPyZeusi9jBJIOc46hjogl5iq8hxci2w== 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=nFj/hajgQMO7Y8BXDRG0bSJHZyUJetrnFfBXqYL3Gso=; b=HhxKf4/NMoxOkTivsGtEaaF/KKX6F81ubJs+iisoWfK9h3PQybyo7ASS1At6T+vfRk7K+c/Izck6NpzuyetaOQ8SgEZj6Y/lHOLL55OoRIUdVcn2XNaOIvdAxyKwPZdlHmPpJr5sxTTb+7uEAiNsr9CX3rsDyHfyCPP7KZshvoSs6Gtaiyp/uPgG4hLl/Z9iWIhdoERLxHM6RCj0LT04qqQXlt5xn2rRYPL7zSFBbOUuIUhW7b+9OvZJn/nAnH7/PHS5DDwdLYirR5pkokBC9+4zqBoKdl9ult98H86eFrdHgIZxm0XGaa6YP+bsFfwQr36zXNTiZOEgkPZjUbBS/w== Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) by DU2P250MB0254.EURP250.PROD.OUTLOOK.COM (2603:10a6:10:27a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.32; Thu, 28 Mar 2024 22:39:10 +0000 Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM ([fe80::4a3b:cf76:cddc:c68d]) by GV1P250MB0737.EURP250.PROD.OUTLOOK.COM ([fe80::4a3b:cf76:cddc:c68d%4]) with mapi id 15.20.7409.028; Thu, 28 Mar 2024 22:39:09 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Thu, 28 Mar 2024 23:38:44 +0100 Message-ID: X-Mailer: git-send-email 2.40.1 X-TMN: [tHnrx3f6RjL4leMxjROJu/mzM+zoPVAD8p6GRcP03bY=] X-ClientProxiedBy: ZR2P278CA0070.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:52::13) To GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) X-Microsoft-Original-Message-ID: <20240328223901.2202299-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1P250MB0737:EE_|DU2P250MB0254:EE_ X-MS-Office365-Filtering-Correlation-Id: 419bac9c-1f5e-4e3b-702a-08dc4f77e208 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hAZIyVvCKlJPGa4OX3siI+PRbtL9uIXVD0dPfiedZff4LaYNgK3D4bsvHtRxvFggShZ1dvSJnQxUyR8Dkot/Uc5kEP8DI1MESYXOWY6a2RE49kZZGhJLfnqptu92oIr7coVMbrn/0yOTwePbY/uXMVfuxh2Uw5oNOEO1DL2Y9QLKj3JSJMQJfFw9jE8wE0We4VDbNdEip/OewO+kUSgaFymNBAAQQctvssQWOSOwU7XVytYFfYZAUi2xsKblL8P/YhtrHYCDXbQcVWDPFAc0aUqMCKbgSX6/A5tnpx+QwrL/FK10t0Lisx7kFN2I8TR1DNC/Eq1Ae7ecmDi32p/lvWPKEG5ZDVMma0yy2D1YcgY2XB+bp1/gCLEc6Rtzn3p5VC7XqutQ6Oh7TG4THaQjwIdslxW+xg9g2UcujDLrqeJp1aAvidd59njOOnH8m94riCcyz6GAlSYVxgwlZpN3y12BnZ+H1bVLoA2ylPJeAmrjTzV1yRLxFZde1kSZPa4N+Hl7i/h0sRFzLxaEmEovAnAvodIAW+1S33pV9UoF++UwKEZud7/apSfQ0lC/Oal2kF8cqa5sNf6XnXcYNogG7LCj54nQJanVcRgQYosknSHsEyDmXEB8QtAZ/kAiQ4jE X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: /sHYX1LvWXBIkBKb/kDRKAPz5QpK6OE9kQ/K4HI5zC3ZCA7/XcyBk2ikGkge2s1J8HiZRULWNPQ8vCb2E/OWGRKI2ggIxb/jWkcHHEfC30TuZgZwBYW68ybvWhsDOKf6BhyRHUYC/RxFRLGmOHOPwLQGzHP1mMNpeXcA9kc7TddLWNNcWdVeYA5wyhROzTiC8mfxJYp9KErD70S0B104f8MekLkT9Jbqzk5FOZmNMu2nTka/c15jQ6OKMPUcY5cEB/QdDaSBRQWs513t31/3yfF911LenHzMaGL1zDsxF11YMaBUvujnTpn4KUobxwgNJVE7yCDkDE3dF/O4uqAXHLJiLOkGvXde0xh1u8qvFshusZVQN6YxkF7L2jPcLWjfMP7pVLpjx0DwwmUrq585kcSlIzVR86JVYQnLGnzPwS5JVBYEuC6AMut9mcEVSvzyf1h3RdsieMbluCw/xlqFwXLYV3W1ym/2QnNNHFKkl8Yssu/BVnhjzxO6CcLDpN8DDi4HXiqEafcIjITYLkAkqMwWZDK1tA34RtJKtCiz1zrdgWG7XU6ZOhKa9vw9TUpb7mEW7l7GP3nzSJKEjksbQupvCGbRTOjrTV5iusENGyuEyOx8glAFSJzJDypKqhdrQUxDTvMWf0mf+CnOTWpsdRjun+M7fMm8nlaBSECtyrnP9e6YlK34QaMdVwaKCTEjrmRKT/MJodhNRcDYCf3x4qwrnH8mcz4pecggbW8GnF202nXmTrw+id15ujmQhKln5dociwFAIPKWzjxs0Kp5poElGQVBkDk9cDgUlfffTbabiZuVHk6ty7wHLI4uYAbyRfBCDwTQ46LWCe5hahZXOmVBDG3s0DUqr6Hmv8aitfFLZ2oFEWn+EKuwQoq3Q8tkA4q2DuJgDdCDhN05msVx5f6wJOljXVYARs7MVUAk3dSwPed6/tPQw/MKYk1wvbmCIEYmP3Kem44Xw0Pp2oflO3SbKOJevHNpEzpFlNqp5ar/MlyD0uYofSRDY4EeArUHEAohTunKhFOZPppYKp/3+5Rk61oLjfARXe6EyMqjrNNZt/Qg1PkyEfbgETwh/52TP9O9YbLr+Nl3FDw8ReF+ksn+nN5fmxBragOH7kHybcBc5SjHaYNhnoGcI4PxhmDR75oIAMckzBcxLEEut1BcFGA1c2R5mEEkxyj0Gpo7hWLsNbz+xtLvUh7INCh/xBRSwzIkjwuGsMYbaJ8XIa5KqNuGNtVSqvqTcwOaxykqJFH49blQILH2kwDueLhPgrtHqpSK95irGiICllHqYzYAAQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 419bac9c-1f5e-4e3b-702a-08dc4f77e208 X-MS-Exchange-CrossTenant-AuthSource: GV1P250MB0737.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2024 22:39:09.4375 (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: DU2P250MB0254 Subject: [FFmpeg-devel] [PATCH 01/18] avcodec/mips/ac3dsp_mips: Add missing includes 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: 1c+jAkiKV50R Likely broken in d7a75d21635eab4f4a1efea22945933059c2e36f. Signed-off-by: Andreas Rheinhardt --- libavcodec/mips/ac3dsp_mips.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/mips/ac3dsp_mips.c b/libavcodec/mips/ac3dsp_mips.c index e97a412922..cc49ba3888 100644 --- a/libavcodec/mips/ac3dsp_mips.c +++ b/libavcodec/mips/ac3dsp_mips.c @@ -54,11 +54,13 @@ */ #include +#include #include "config.h" #include "libavcodec/ac3dsp.h" #include "libavcodec/ac3.h" #include "libavcodec/ac3tab.h" +#include "libavutil/macros.h" #include "libavutil/mips/asmdefs.h" #if HAVE_INLINE_ASM From patchwork Thu Mar 28 23:10:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 47614 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:9f96:b0:1a3:b6bb:3029 with SMTP id mm22csp1667212pzb; Thu, 28 Mar 2024 16:11:15 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVQx4AC4UHKSHhFpY04xetiITXx6TZXkdCLqjvZR31baZfH+66f3FekzrwKFsNW3dRSTwjDi4BkGQ+SyU1IFP9z77uIXa7h876Qdw== X-Google-Smtp-Source: AGHT+IHo9fuG7+V87CzvWku0ZDZqFgafF6V5x8SlnD7OXGBXecp319skkKNT6TiOaySQ/kNaBixN X-Received: by 2002:a17:906:f196:b0:a4e:c11:4e28 with SMTP id gs22-20020a170906f19600b00a4e0c114e28mr355438ejb.1.1711667475192; Thu, 28 Mar 2024 16:11:15 -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 y17-20020a17090629d100b00a4e0a824b8esi1122806eje.49.2024.03.28.16.11.08; Thu, 28 Mar 2024 16:11:15 -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=hyKSfutw; 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 DD24868D1E0; Fri, 29 Mar 2024 01:11:05 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04olkn2024.outbound.protection.outlook.com [40.92.75.24]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 996AC68D1E0 for ; Fri, 29 Mar 2024 01:10:58 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Fx6j8lPYOPCuDziAqYbwg2C1lO1g5Ae2jo6qwK/PFwOgGRp4dWzaiszBkSBzbI/raOjvFpi6HAdFCFgA6H2IAho+pVXuX9VCr2t448jhca9huDTYVB8CygA9jrWPiPdb+ghIWfQ14hnwVheUrBj+rylUZVYfx4VkoYNH9ApfIfx5Z64AR3KiNAD8TOo4YRzDudaLtuKHFP5e+bfOUdAoaJxRhrJzm8rqUCw7BRTRSVEstLK9FT97q8QZ1u7cLAGa7P3kJpw7KeErtDbAkuFE9hoofsh3GqKhvhkpXcUKTm0dCVXePxYA4VhXMlVnYJSBcbEfJsuvAt42ukH3iWx+ZA== 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=5ddmSE11EhocvQ3wsjtTziw386wHe50QHBoXZsZj5/I=; b=GxBwaG9tOHq/+CpVKLBFUOD84XPA4HXjITQZhiqd868bo/EJnWBGYQaM6S5FFom8DYYb8f7Fywad2p2Up3pfa7eG/RUEYjC3scWcT8y1Wtj7ugNir5JT4GNbX+XL2JLsWLvqbVVT1uzIST1Sc/lBcSADko7KIq3vUxvsX0A3kmfkuhbdP9H8tk8aY6thJEdQzcHqF5CAiAXpgMmkgoyoGwOs0Mx1JokPz5AAJVDiye4oXVpNxcvcE5hwx9NEvghuSpQlvM40Nvm6NRPC+uXhV5BAfd6seCJaPEatby8+I5RO3nxsw4oqzoT7vUOzDamUxE9kgrCluXdZXcHzTHPyMg== 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=5ddmSE11EhocvQ3wsjtTziw386wHe50QHBoXZsZj5/I=; b=hyKSfutwPekYJGhVVI+263cRkVMffdKxeRSPgE2D30hm98euukF5PTg7dBcrCckf5h2J1tpI5y3wQ456dGKSIPlwa9dLHGK0l26Ytlz8pJatDTr4MJXbf5OBRqRjRXb3Y7t0DUEYlqhPVlBwiSsomH0SjFNL8aWz4yBDHssfEcjZLAuRTRUp+5Nd+41b98kiOcXM/tEUNuDgwSHUiNtvSEpTKakYI2nbaX7M8b5ZROaNdB27dZnLrSPmJuB+omAZDK2yO1nVWapJypoJlOgBd2r4iAog6bcGpabJqOidcuT2GcsAn5gDUI8bZDWRI+4B84FHZlJfG6WxVNch7pQHTA== Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) by AS1P250MB0553.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:4af::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Thu, 28 Mar 2024 23:10:57 +0000 Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb]) by AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb%3]) with mapi id 15.20.7409.039; Thu, 28 Mar 2024 23:10:57 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Fri, 29 Mar 2024 00:10:31 +0100 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: X-TMN: [9pdBkfictqvozk1M9lwKPae0xam1FX0Lf9Z+XOpu7As=] X-ClientProxiedBy: ZR0P278CA0093.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:23::8) To AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) X-Microsoft-Original-Message-ID: <20240328231047.2202386-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8P250MB0744:EE_|AS1P250MB0553:EE_ X-MS-Office365-Filtering-Correlation-Id: e963a56b-81eb-4f33-f26e-08dc4f7c52ef X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OBfK1S8aA/zyJOJdvkwcF3MiGUa1aoAZzEHqb6oYgRLbqmuZwvtuCqFPDAKUJKrw3gicFY2Nou5h6tsrpYd3PuZrqU5wjaCEgTeqFC+sD4vuON1/ECJSruKOvtWoqTQFLrZ8jf/fBNkaDR4vowkbz5bQ2cvL8zpGrAgzE1DJCw9YmEBG2HPD7akekUxX0Bcao2kgqOA1EMJJZ2w81AFyu1kWwD20ICKOpzP/dUv6rZF65DE0qJR+WWJ1XKzCDsi51v1NV8jhN6mbudPhWnvdGQln3jZ0E+Zdl8KJMDRVLoMNpO/b3B0JN97DaI8WULjgmUda68gkThTxkStfU6DturOeW5iSfu8X3RRqdYLZToVrngfFMgK6rGKZZQbAyWT5D5wDql5pG/ahWCAC4En3iDSTlhJ4Bd0GF4cSqkynCk36Ym/1kaDBnzHnBrlhrkBgInipyjwklCiMdW9X0XB2r8bFr7NUJ8OG1pe1LpP19xMEcUMJOdNkxfaj2M1YW4aHlg+yap9xQkkr8gT/FZ4yhWkofuvFKmUHixO0LgufpvFIIzF0NIE+Oi4D0xnr75b0oMwNw286i5dBNBmiplWW3a550R9IrFrBUODdZVb41kR47GrE2KejGKN98sZi7hHO X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: H1dPk/B0rqAdRNe/IbGSkqZKxr7kobs+5UIoR0QjqRq1mDR0yECPXMQP/pq10FAy3XrR5orf7duwkFuiSdkBqk2dUlZzDLM9JNYLq63MsliqRSz8+cAHBTTRaJT2kg9QBoXDH1BBBeLAcUuEPpJERk2TUtbILT9IfR8pVCMk5eIzLHMpkat4CJ1VVD5VaqU5T+JgP1i1kdBgHT6O2DY9dsoDqB9EcJE0fdnYInMG5YypZeBtHDYuPy1bMBZ3HB2eR6E5aQrPCB8C/JPSUpXN2XAb+HMw3iRhWt3V5aB1kL/s5+z8H4+qcbNgLddAO5BwOXfVRnh8YmGzAR2Nw7ho1KUETFAyMKIr/iGPMHMX/nDIu2BL1J/yCBOzOZEYfGJ1NUMDJV/N/Ceab/3ko62vzpcgNn0Z3oeZEex5NBGwmgR2ys5nd+9fJ4+hSMDjoW258XuaTMVxhOGooWquAht2ri+TSCCpG0kLW2pkhIFcaOnYq5oSIl2aXs3uErhvV8e74wVX5zUadgquWIpJJIgAGfV9dx3HXVObXPIgYDG5Jrka/hwTPgQJozVv3D75H+pxMl1mli2t2aMpCHpF0/mlYUhHY0PDrGNKtzr9ojIQd1860B5K+hbmHZXAbHGauckMl2BuANDr7Cll3MEatwihpME1R99BJIuISGFhep3Psx5rG1z1rqkY2GHr9XzDedt9yFO5a7swFeCzWdoV/7Ith5vkTSdg+cWV3hGvhWEoxF2zfrxNFJiaY8BPa4YnTEW84rlmIAUlJ9S1lEfLnOGkQIM66ZKN3Zbd8u5TaV/BZqhaCYsDSIC7EY0Cl+iisTI50KZPJq5EgdmkyOcN28tdCMLdrV6n+jSn9ZJnCGtnOzo4QgOIbK+i6W3SxX+LAmv118rnlcOmMnSCqQk4C72FqUmusD13M2NvYzF6+9lmDqZb1b2+rfNpKPaM3PsucyY0G/jOGoi1J+AyMc+E9Lht4IF8X1tALY2so+2DzD+yVbnsig1X6J7pcG0uFBY5/LfCef0hTw2lkoMimFpLHiPIhzuCQ3zQf4SjYc+2EzhAUBKhVzPS4h1hbeNCqxMMxz+A8ISwZMKlOexOSqLgej81xyHp5uA0zx+FaQHES0V2jkwYasdEQ6AIgNmbPInFoiWXy7ay+xDnBlMQKhthHGP/ZbK2p5hvP4OPDPXBqQmOpuXH7rmx1IKbsUusEceoty3YRHpH1GEx3g7WZj1Z9jSCxlk9hLs7+4sGPYdpP+wHphlk3/a5xme9BCfDp7aovfXlxim77/shdbPJO6xygsQ1PQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e963a56b-81eb-4f33-f26e-08dc4f7c52ef X-MS-Exchange-CrossTenant-AuthSource: AS8P250MB0744.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2024 23:10:56.7898 (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: AS1P250MB0553 Subject: [FFmpeg-devel] [PATCH 02/18] avcodec/pcm-bluray/dvd: Use correct pointer types on BE 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: vM+QiFKvN+Ep Signed-off-by: Andreas Rheinhardt --- libavcodec/pcm-bluray.c | 5 +++-- libavcodec/pcm-dvd.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libavcodec/pcm-bluray.c b/libavcodec/pcm-bluray.c index f65609514a..235020d78f 100644 --- a/libavcodec/pcm-bluray.c +++ b/libavcodec/pcm-bluray.c @@ -167,7 +167,7 @@ static int pcm_bluray_decode_frame(AVCodecContext *avctx, AVFrame *frame, samples *= num_source_channels; if (AV_SAMPLE_FMT_S16 == avctx->sample_fmt) { #if HAVE_BIGENDIAN - bytestream2_get_buffer(&gb, dst16, buf_size); + bytestream2_get_buffer(&gb, (uint8_t*)dst16, buf_size); #else do { *dst16++ = bytestream2_get_be16u(&gb); @@ -187,7 +187,8 @@ static int pcm_bluray_decode_frame(AVCodecContext *avctx, AVFrame *frame, if (AV_SAMPLE_FMT_S16 == avctx->sample_fmt) { do { #if HAVE_BIGENDIAN - bytestream2_get_buffer(&gb, dst16, avctx->ch_layout.nb_channels * 2); + bytestream2_get_buffer(&gb, (uint8_t*)dst16, + avctx->ch_layout.nb_channels * 2); dst16 += avctx->ch_layout.nb_channels; #else channel = avctx->ch_layout.nb_channels; diff --git a/libavcodec/pcm-dvd.c b/libavcodec/pcm-dvd.c index 419b2a138f..319746c62e 100644 --- a/libavcodec/pcm-dvd.c +++ b/libavcodec/pcm-dvd.c @@ -157,7 +157,7 @@ static void *pcm_dvd_decode_samples(AVCodecContext *avctx, const uint8_t *src, switch (avctx->bits_per_coded_sample) { case 16: { #if HAVE_BIGENDIAN - bytestream2_get_buffer(&gb, dst16, blocks * s->block_size); + bytestream2_get_buffer(&gb, (uint8_t*)dst16, blocks * s->block_size); dst16 += blocks * s->block_size / 2; #else int samples = blocks * avctx->ch_layout.nb_channels; From patchwork Thu Mar 28 23:10:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 47615 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:9f96:b0:1a3:b6bb:3029 with SMTP id mm22csp1667302pzb; Thu, 28 Mar 2024 16:11:26 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXgytBQXzwsZH41Ld7N4Jn7wm3aNKCcCHfn59/rw0C1hl65NKOf7YHDgSwLM4879pYJW5LhGfLbPzhv/1wafJarl7oVhB3OlWkayA== X-Google-Smtp-Source: AGHT+IHpqTf6Cl3aUAdlyi8jr6iobhAg0vpjY1Ch1lLKVTJjPioYOWmwqVTxkiKLNuMbIzJ0+91l X-Received: by 2002:a17:906:2adb:b0:a47:5104:c39 with SMTP id m27-20020a1709062adb00b00a4751040c39mr368414eje.0.1711667486357; Thu, 28 Mar 2024 16:11:26 -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 a13-20020a170906670d00b00a4e18901d3csi1151694ejp.754.2024.03.28.16.11.19; Thu, 28 Mar 2024 16:11:26 -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="Cg3J/seX"; 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 0878C68D748; Fri, 29 Mar 2024 01:11:17 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05olkn2063.outbound.protection.outlook.com [40.92.90.63]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id CBE0968D744 for ; Fri, 29 Mar 2024 01:11:09 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hOpERbVlh3Y2Cel0dMOogX/ydhnmha6dI2sFDe3YvPMkchUdE77KoC4TvKFEZr0KcPAMYQEVrjQmufl1/yfOig3CdU0KMmKYfxy/4gAd+3VEA80APb9CmvZz9yv4kXlhTUe1dcItEyNlQHe/zVPGJtr5472c4Tx1deiofW3++a35/F1JTG3v0m54DxtyosT8ta12+ZEVcySo30e/4FgEWtw0GBhIzbRacblTRhdPUSLtsu/z4oX643pX9Tu0APH+8XKE6NaL/uY3kTPugwAszo/CUu0qyfSWvhwDwPX4PRNuBvoxWVBunCcKR1f6K32cAGghucTjadwdxnp3QcFHhg== 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=PFDhxU6qq1c8SUa+ypUqI1HZpBDaQRYEruQriIzlhjo=; b=GZvVqTtLgoxnv5ewAFfoxbW+9A0zWXgCa32GCuEeVspJLKghBhB0bEkkJxB9enZzS/AkFLbieuacxfDxBtqv9vY1DaF8Y5zWhzGgH3WNx+QNWTTGR5kA7A0rrxgkPY2PsZcOp4mX/1E+WToeYSlhs2fGI+npi6+TSJBJGGRR5TCqdSbk1YzuP+NGucNlGHnlQe29YWb/3JVAV/uNUhne/FlxbPIKPSWukjqRBYyEpKUZRtHWMzB2nanbVfxf7dC1Z8/vY+HzKYD4u6mkwSi8mtu4FEDai12VT+pRBN/nH7TSgIzahDjtp5VhNba8Bm1qe07ag7uqkPUsEyM2HomVhA== 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=PFDhxU6qq1c8SUa+ypUqI1HZpBDaQRYEruQriIzlhjo=; b=Cg3J/seXOz99q4mtvd1lHtfvj4ij/z/ZH3OeO0/D1MX1L9wBJbUkeq9tDT3jrtMFnAq/aLETHgwJO3ytIShM57tdNR3xuVdZ5i01mVfOO904EnarFwU5Nvup9xD/USAV9prtIiiEUQN3tkDeDUKzYM9G9DXGdFs/Sc9ZGYJUpv6sI6IIfCXr+xw2hEE0K23cis62qxgLmja924vn4r31KC6CyRN0JFxi3Qc99oeENSjdAG34srK6yDnVu+LsAjCsUjcrPjyjyc6HWBtiI5E0duoIrZNgInlI4DwBTZ0IOd76Q1D+UfvpB7C5vjxrX7KXdoDX5JqlMF+kPbeSH+Ny6w== Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) by AS1P250MB0553.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:4af::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Thu, 28 Mar 2024 23:11:08 +0000 Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb]) by AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb%3]) with mapi id 15.20.7409.039; Thu, 28 Mar 2024 23:11:08 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Fri, 29 Mar 2024 00:10:32 +0100 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: X-TMN: [TfFKSLz7NQBQnNaMYqFc4j2Kz3mL9RMmSTlYI1gg+hg=] X-ClientProxiedBy: ZR0P278CA0093.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:23::8) To AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) X-Microsoft-Original-Message-ID: <20240328231047.2202386-2-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8P250MB0744:EE_|AS1P250MB0553:EE_ X-MS-Office365-Filtering-Correlation-Id: 6adbe1be-131a-4ae7-5f35-08dc4f7c59d3 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Bzut+wRgjjwZr1EvZH84bkOMKCZ+/icOA1lqh0tnK61hISZ+xCTmsbj90SdGRlJgM4p2BYarZeXEnjZk48cqJEQTqDHQ7zQb8U8hqwwJumnrpqgmR/7KpdMton95tPM66TE1knMNoJ2WaUZ5QWuqdfiGiYO+38XUo0f5s8C56qBUuDhnVPmw/nIl2bf/hDonUfCF2wPVn4er8pnMqUrfyc/Rx5OJc/YGJF9y+ShD61hvC6ezdyDS1DstilNdZjif31FMXwO8osjszzZ53ct3kH5FuQMjFvCXN9/4BPL4SwzKCefC6JQr65oqVQQHdCk5VqYs44hGD+tplDAe6kYZj5QOGzwvNLQ657TXrnsDw5nZ2Xg3yGREQbieev25c/fjL00rkBEFWOjlSEKskPPU+YnIrzzq8M2XvRlmeSy/NOa0m1b9ICom41HVXckcpT9y15Z/+eHxZN+1uVg2guNA0iLEMDIbsbjpp8q5SrX57JvNS2NNf6h7TmBTWFcrbxoTSM4ETiZ8T4Dstd9hUffon9ux0B1SMMzMdCLWfPqWUuCWMUZS/4HQA+jsf4VcxhRTrjRCkbry8QmoRLa9rMoONooclITg2QcJywMhw9mGIpP67JRxxCx3fPXS1ved1/qB X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: cRxTX1sI6ILHsrvi3tvspMau9K7JW342rM7z308e8+jec798HXkwFKHpuGLr2bPdY+vgxWqD7rahdnwfY4ziCZMs2qD3OBn2u4HRwVO51P3W/QxVtDOJByMcsFVOjiIneJHprDGGvV3zB6Mqdh/CSUYzlNewqO1jnCScGNaj18EQVeiC+fG5eiCqx6RopbGv/DDEnTDvE5k+7rKbfrnM6rqeO91EDFw3DWCD5HZsbg7phRWepJbueuqtO7AndPzvK7SW/sM3KTPoZ5HFPONI3blhRMETaM/ef500PwQXXu4rvSuwtB9rKWrKjhj2+SHtFD8tY/GNGk1QRxxmC4y96DMosWKgck/YPr1V570VcptTARSLUc6cnGlAJg30Cnw+rk+ptBwGoPs+SBjMOFIMFeFFDGdFile8cXe3nZ/m8bwODaF/Dx0S5Ih2a61+ZEjM0w6ZaFRW3EcblzrdHq2lXTKFdIS+eKiqu/SOuroZbdOb6SG2AnRwCZ56vPNU2xjgq9X5IO9eRuaS+NilVBXYi5xv0PUldjpDShqo88fo87cMcPIQ0ZrfvDGx5CAWPHjzROM0TTKDKQ4BnMv+Z5Gk5sB45jkD3yYNoOXNF7TljZvjwbvstvjgaYF+qzBJne18XDO2xC9lVkFNma2Uhy+M4P9ZO+WT/ehV9sF6EHiypNvfZsiQEE3KAPEmjWFgGhxz0qNElUzRR9JMxoqid0rRLvYZqRRkyIBTBfxxj01ued7t73piGiH1fMuET+2mT9y7fSgTDGNYchUOzJ7Zr3HmqlkwnNZNTLmZ0nWyKdbDFo7fL3rUfqOYeGJVH41a/yhZFhD8vJ/AmA33o0+bjxB967z7ESi5yBuVmGppAzcnerICtzVO96hZ09OAdJP8e8Qr2De2j5tdsa1NrtP+LTvq3KiehMCNZl9LjDFM+xY3Pi4uWhX20/KgunzgUO2ymGGPbOQRtbSCZ8G67KbK13mG8twgSqmdbbjS8HcEnRsY9Im0ZblHJyhaUMb/6kSufmWAWIqBrTLftfNBv1G8UiGGVz6NxDCyzbxbIxjCg/VVDb++2tB7rAcZYfmG+mXQIUWTkwSz/EK9tWf4WIIR0jalZsvYQNCNQtHv/paOiWZV3AotR4E+9LiPOSIOTebNsPmgNUnKl3H/SFr4C5W4R12s+9q1i+yAVyVDLVniqUtKMxlCWd4/gel/cBqqPyNDDFZ6ccttudWJ58HwIH7ET/o0ezuvJzPEdSNlcHoMW72gc2OUdelJpkPW8+5b4oti8CT+SL7p/h0vV0XC9iww72XAbw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6adbe1be-131a-4ae7-5f35-08dc4f7c59d3 X-MS-Exchange-CrossTenant-AuthSource: AS8P250MB0744.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2024 23:11:08.3072 (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: AS1P250MB0553 Subject: [FFmpeg-devel] [PATCH 03/18] swscale/ppc/swscale_altivec: Fix build with -O0 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: 2sxgrccd3iuf In this case GCC does not treat a const variable initialized to the compile-time constant "3" as a compile-time constant and errors out because the argument is not a literal value. Signed-off-by: Andreas Rheinhardt --- A similar issue exists in libswscale/ppc/swscale_vsx.c, but fixing this would be more involved (making templates out of always-inline functions...). libswscale/ppc/swscale_altivec.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libswscale/ppc/swscale_altivec.c b/libswscale/ppc/swscale_altivec.c index 1630355f51..8e35e0372f 100644 --- a/libswscale/ppc/swscale_altivec.c +++ b/libswscale/ppc/swscale_altivec.c @@ -107,6 +107,8 @@ #endif /* HAVE_BIGENDIAN */ +#define SHIFT 3 + #define output_pixel(pos, val, bias, signedness) \ if (big_endian) { \ AV_WB16(pos, bias + av_clip_ ## signedness ## 16(val >> shift)); \ @@ -149,12 +151,11 @@ yuv2plane1_float_bswap_u(const int32_t *src, uint32_t *dest, int dstW, int start static void yuv2plane1_float_altivec(const int32_t *src, float *dest, int dstW) { const int dst_u = -(uintptr_t)dest & 3; - const int shift = 3; - const int add = (1 << (shift - 1)); + const int add = (1 << (SHIFT - 1)); const int clip = (1 << 16) - 1; const float fmult = 1.0f / 65535.0f; const vec_u32 vadd = (vec_u32) {add, add, add, add}; - const vec_u32 vshift = (vec_u32) vec_splat_u32(shift); + const vec_u32 vshift = (vec_u32) vec_splat_u32(SHIFT); const vec_u32 vlargest = (vec_u32) {clip, clip, clip, clip}; const vec_f vmul = (vec_f) {fmult, fmult, fmult, fmult}; const vec_f vzero = (vec_f) {0, 0, 0, 0}; @@ -182,12 +183,11 @@ static void yuv2plane1_float_altivec(const int32_t *src, float *dest, int dstW) static void yuv2plane1_float_bswap_altivec(const int32_t *src, uint32_t *dest, int dstW) { const int dst_u = -(uintptr_t)dest & 3; - const int shift = 3; - const int add = (1 << (shift - 1)); + const int add = (1 << (SHIFT - 1)); const int clip = (1 << 16) - 1; const float fmult = 1.0f / 65535.0f; const vec_u32 vadd = (vec_u32) {add, add, add, add}; - const vec_u32 vshift = (vec_u32) vec_splat_u32(shift); + const vec_u32 vshift = (vec_u32) vec_splat_u32(SHIFT); const vec_u32 vlargest = (vec_u32) {clip, clip, clip, clip}; const vec_f vmul = (vec_f) {fmult, fmult, fmult, fmult}; const vec_f vzero = (vec_f) {0, 0, 0, 0}; From patchwork Thu Mar 28 23:10:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 47616 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:9f96:b0:1a3:b6bb:3029 with SMTP id mm22csp1667370pzb; Thu, 28 Mar 2024 16:11:36 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUyQfwlh7vKXi8e+GTTpMvrw2bDVt6fi1sRCX/DwrgoW0/dgNT7BNJ1TgW0s8sXKvcj+ugV5XEDA0GSwM2THyFWgKfqE4/JBdblcA== X-Google-Smtp-Source: AGHT+IGXn+YR02/FZJ/X+8h+cO7OPqHH3qLJc646nD2NE3CEWZHp+g0kVrjxOHww3Jn96+Ukk9ep X-Received: by 2002:a2e:7819:0:b0:2d6:fe13:f9aa with SMTP id t25-20020a2e7819000000b002d6fe13f9aamr283816ljc.3.1711667496134; Thu, 28 Mar 2024 16:11:36 -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 z17-20020a5096d1000000b0056c5425bb88si913112eda.336.2024.03.28.16.11.28; Thu, 28 Mar 2024 16:11:36 -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=rCxYhCP3; 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 EF87068D75C; Fri, 29 Mar 2024 01:11:21 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05olkn2063.outbound.protection.outlook.com [40.92.90.63]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id EA47B68D74D for ; Fri, 29 Mar 2024 01:11:14 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ESJRSVJs2FDNV0cV/6KZk6DLSpbeotmjCV5Bp235yTkKnSBXa2q8NrlTyYFah5peTuuUpDOBLcI7ZfEHi7sXtZ0vLMM4nIj0zfTOEOIk11944hhs/SbY3BAuOlLbEKfzRvJeIIBLxkx4C1Q3ylUFtoOlYT9XPxIgbGPV3UA29QJcAvGWFwvbexIAFUIZO0BnA+xEZqcQVodmDO0MYWwcBRu80rRuJcPFcodfH4KmvGL+NFPoL5e/hYPGCiVRWuRAh8N4PjegaxBFY3zMW4GGnJHxiauSDm7hQXXH0lfadGJcO8b8qxhokBtzoMoDMVPW3U1TGS5NRMM+fzTmlcIcqA== 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=qDjBxnKLqS+KNwnM+8/xDmihBt0tREv9G82JmAA08Dk=; b=RzKJv01KkGetMubDBu6+AtTTAUs0pH0Xb2jam7Pvyh8RGW//50iltGKQeEdZG/VYa5Jj6uKYwWmJ5qdlBsjDNGe0YhtQ/nN/soEQ90r09y7GWn884kKT+DR13Btngkz3hfqmoCVoAMx1ODKQasTl1TYq7xWQlnlmkGhwq9dd4wYLZh2qRi/6gdHqLmOCpKLYRaP2OAjqJr1vPM9Xu5v1x26yJkZ63+k9KG4B9YyGmufrBR919xRPO7dECE3FdVQoKR9ksjGO0Mk9LNpIjDeNCy76H1kwfQq6l+kdF8tPEmaTK/0veFXqSPMP4LR+tR0xMhOTVWqXZSbfYE8w+8hzpQ== 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=qDjBxnKLqS+KNwnM+8/xDmihBt0tREv9G82JmAA08Dk=; b=rCxYhCP3PBhqb2uGLx3abr/cEredV8GubyWNnl1YXS1WilQvZqahdMU5qM0EoZqPQXDc/vQ94E69mEtpO6owxi6k3+rUlwh3ajQdMP+WxoTD9cxSpc3elUqpzP3Zpn7tW6+zDdSmu3GitbKt2X8C+gJBFCil1ft3lxQI6dX9iYZNxS+IzcGYZQY7Vt+TII8DTGFGTtz1iC/NV4/jistbPe16GsRhL+KvVFpqCOnTb9MtZDva1mtDjP4zSduDnvZ4aQ0nl4sFrEKIlLHBcoQmQuBU493aILPC6IGr0wYbcMx6WmuIG1lC/Zs2KFqXUUKOXGDic2Wi8CB24Sak/8bz1w== Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) by AS1P250MB0553.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:4af::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Thu, 28 Mar 2024 23:11:09 +0000 Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb]) by AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb%3]) with mapi id 15.20.7409.039; Thu, 28 Mar 2024 23:11:09 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Fri, 29 Mar 2024 00:10:33 +0100 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: X-TMN: [f7d3HIP1VVbmmexS6+Kfpf9QcFnVEjOf+4ZiJ3+d0mw=] X-ClientProxiedBy: ZR0P278CA0093.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:23::8) To AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) X-Microsoft-Original-Message-ID: <20240328231047.2202386-3-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8P250MB0744:EE_|AS1P250MB0553:EE_ X-MS-Office365-Filtering-Correlation-Id: 74b26ff2-7f4d-4517-a6dc-08dc4f7c5aa2 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kkoQhtBMbDWKbSEi6S6uVjthOrFgp6tYZ6T2QIJVoJE+Yh1fHruVw6qQAUvsHXaqE4Vl11zExbS5/7rxgIh0v5nVqdLEoywHIBaiItQyOS2JtyEHgMekTrK9FqF0seZ35K6i39G1g4iX59H879EVtqcClgnU/DNJtm5fe6brvnR6zKdOxfVOq/sLlbtdRyJYoYJwyZ4SzdF4OPTKn/nr+4RJof5/4NtJzGFBV/jL/+U8EDdqm6vbBQOAoCmPgRfItlkkXqmeygtH6ivkjDLl5WSv82i+45gmlHW8e+9QPlmBj16/16YDGoHkDgujdXnJvILDtQe7s+jcJKpXD5Oy8MTLjeLBXstx9tIWxTZqK7MegoA51g2epBhS5o1MAkSUHDXwfDEKDbZO4YyWgi1uQRCBxvlxHBxmGclbq/b0q4e3tDQP30SakDknTWgz0UbiCAHdO9nykfwtOGBCnuV7CULQAQWrEILQOGmYwZiyC/Aw07ShxgsqWgyp1AnnJbipY7h8Lg+HDyXHPNoEfL0/ZpZ0gzQ/IE2WODVszLzl4Dm6rTMDP+w3ZJS9qsCV4PYgiSiYweU51kWpbQ960UYqMs77vqquwcBNcajhXJ9t5BVrm4DYNJ6YKR+6Vm03r86p X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Jv2jpYgrl0CQAWKxLNmAjRRJZBPKWuq0kjkzUdEuhD7mQQhzW2uNpBUuLlUJPteM4Qw44GosDnk5oAfH7YFZ6RhJG6etioXDiSq0xqkLt1mBfrOOC0s+FrxI/DS9PhGMG+Uw/YaNpunYZ7Y9mLf8aLsAJ57FOkFaOIruP5WHJfCfdW/TDv+THLpQ3iBwewjxw/sggzkzgCHaYRRRMhogWfJRvg2/oiVxETH1tksfie5+Ps9mzssaYKn3KSkk3BspgB4uYxdTO9kwzYAdQEsTsMQUBiCIQ5m0UtOMyPDea/LDR0SCO4z2hOUDOFAFlP+ELQ9KQFuyWXmOSYWYSLdZmiw9YgVi8NDAREvkC+80BHha32XIQxiVWqQTH63ef8blfqMuu+yDdjeIZxTgkumTquIbQpBJ960lYQ1UXna5YnKPxcWn5GO73OtB9j6Cuw08NTmTZRTEKSW9CdB4s0qbhYaAEMc3LxK9pqW3FvcolThzcrZ/4zedGbVNxf4g2r12XnsbRA/8+487sR55E07AXj+qA5aL4tErq0TEHwveTpJl4T3iACp6i9jqSITypImWbeB7hTjFQeeYQFZEoE9dWQcBmIxCx93ezY6Ryb38PWCGnVZcAxncFxcenOc0Y1P5M5IecWKVk9q/NgvKAF0MPR4P3hm8FhzbWt+4ON+Lzf1FUQytxhxKyAFPmx1VM79KiHxP5RoiCkVWWxayiF2LrDHIMaJ2XeMlI0kBkvK/gHSGeMWtfBFBYzRlo/zQfY67NfSZKVI2Kb8lXPqQ4fp9oX9lF3T+GpMZSYFGwNS982n7Plbyg0h0xLEgHmJmEyI7wzbuGZr1Lb03369FsTHC3OWrRgKBQhE5luY1AOQVJnA3sIUP/NQRC3BGR/suTtSyWjLgyZ7NleNfqFphjqbp6ySCf0sJs7OC5/FAknuB47anh9cyeq8PJ2CSiRjDZbymg2/n+Tp0EHVuU1RQ+7nlJATi5tuR6YB3wKnBH8t4qOVv79DUCNW33yr18X5Npt7xo5cvocqJzH2e7ziNcYkzf+kkF0/wJCpMeOj1/63iHWHEG7fIYFkUKDMlhnSMOm9w6dqLORWY+sIY/vgwEi3uix0SANi4RdtoaLnEbq2GF+RtjLRPG62TiCFWkPKp2VCiER+MDmXSnfSiNL4jxgyBxJsgVK8zt3UOQkUm4xQE15o11GBN3Pjfcsv9PqNC/rwfW+UdygKq8BZZ5LuwGnn6eY5IO2PtWTQZ3i0Jgbo93IePgb6fVJEHkAkyhFlyI37VFEN5apmnnaCsyBALWRdmpQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 74b26ff2-7f4d-4517-a6dc-08dc4f7c5aa2 X-MS-Exchange-CrossTenant-AuthSource: AS8P250MB0744.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2024 23:11:09.6490 (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: AS1P250MB0553 Subject: [FFmpeg-devel] [PATCH 04/18] swscale/ppc/swscale_altivec: Simplify macro 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: edygvUd9bja8 Signed-off-by: Andreas Rheinhardt --- libswscale/ppc/swscale_altivec.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/libswscale/ppc/swscale_altivec.c b/libswscale/ppc/swscale_altivec.c index 8e35e0372f..9bf72738df 100644 --- a/libswscale/ppc/swscale_altivec.c +++ b/libswscale/ppc/swscale_altivec.c @@ -109,17 +109,12 @@ #define SHIFT 3 -#define output_pixel(pos, val, bias, signedness) \ - if (big_endian) { \ - AV_WB16(pos, bias + av_clip_ ## signedness ## 16(val >> shift)); \ - } else { \ - AV_WL16(pos, bias + av_clip_ ## signedness ## 16(val >> shift)); \ - } +#define get_pixel(val, bias, signedness) \ + (bias + av_clip_ ## signedness ## 16(val >> shift)) static void yuv2plane1_float_u(const int32_t *src, float *dest, int dstW, int start) { - static const int big_endian = HAVE_BIGENDIAN; static const int shift = 3; static const float float_mult = 1.0f / 65535.0f; int i, val; @@ -127,7 +122,7 @@ yuv2plane1_float_u(const int32_t *src, float *dest, int dstW, int start) for (i = start; i < dstW; ++i){ val = src[i] + (1 << (shift - 1)); - output_pixel(&val_uint, val, 0, uint); + val_uint = get_pixel(val, 0, uint); dest[i] = float_mult * (float)val_uint; } } @@ -135,7 +130,6 @@ yuv2plane1_float_u(const int32_t *src, float *dest, int dstW, int start) static void yuv2plane1_float_bswap_u(const int32_t *src, uint32_t *dest, int dstW, int start) { - static const int big_endian = HAVE_BIGENDIAN; static const int shift = 3; static const float float_mult = 1.0f / 65535.0f; int i, val; @@ -143,7 +137,7 @@ yuv2plane1_float_bswap_u(const int32_t *src, uint32_t *dest, int dstW, int start for (i = start; i < dstW; ++i){ val = src[i] + (1 << (shift - 1)); - output_pixel(&val_uint, val, 0, uint); + val_uint = get_pixel(val, 0, uint); dest[i] = av_bswap32(av_float2int(float_mult * (float)val_uint)); } } From patchwork Thu Mar 28 23:10:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 47617 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:9f96:b0:1a3:b6bb:3029 with SMTP id mm22csp1667374pzb; Thu, 28 Mar 2024 16:11:37 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX155z/7jZjZbfIYAk4Wv2xM4K+XOx316xdcn5SgbvhNwtaimwqX8TrcvLXXXAs1s0qSCOEYYDNX7VQd2+BTsSZCY9f5/HQtds2ig== X-Google-Smtp-Source: AGHT+IHUV7/F642JpAvFA2ClLSEl4BG/X/DbdYiV4uoHBhHPxpd55nQiQ6R7sfxLbBAwqbPppzWm X-Received: by 2002:a17:906:d9cc:b0:a4e:109f:7b4b with SMTP id qk12-20020a170906d9cc00b00a4e109f7b4bmr418988ejb.41.1711667497419; Thu, 28 Mar 2024 16:11:37 -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 lx8-20020a170906af0800b00a46fe9df958si1135038ejb.640.2024.03.28.16.11.37; Thu, 28 Mar 2024 16:11:37 -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=KLRBHHxi; 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 F045368D75A; Fri, 29 Mar 2024 01:11:22 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05olkn2063.outbound.protection.outlook.com [40.92.90.63]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 30AA868D74F for ; Fri, 29 Mar 2024 01:11:20 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L5x6Abwx5xDTBgNqv+c4cSFiyt2FW0kX7KaBC0NDBk2hdYCwWGJwyYls6rVbXC1mLLynAZuZb0ZAkEGpAxUYKl/dfE5AZRlOrzkIhpunmie3zejuspJWJ3AXXRe61kvvieofYK43Bb6MlAyyYLEoZpyQAYMAo+d/lAp2dYvBSPiA2/juoEAODJleaC6mJs4KJn9wOTXsrPo8mnTg1VR7kVEk5cL5brm5GotRsYkxS84mB0qYxEgMdZ+JXPeErJLXBde18UFZ345xziF9ZQby3+0UIn3WDREucjJZ5WgmYR68iES6vRERNKmubwq7jPcET4OjHWjSVWgzRMh/AMd5Jg== 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=7+zqYL0KVJqM1L7ls+9l75n22QZLgFa+Ytsb+ol8b9I=; b=PrlHkJpSppqARJRVMrHYKolpSX5vRuCo4CAvHu4Fx78yIMHTwwEEjcgym7jpR2d9UcpG7WI56o1H4fJTiGNkLhZ2+ymGsCLkzEX+WK4QIQlnw6ucibHUifIO15NAoT4uj4wa0A28zhWIt0ulwZ7ZgJs6ZUS66+P606fJLeuvxStHpb/1zcJeyXLHnMPotzd2CZeZahshw6ZKI2PGYSm1YqwFkRk/xApu7bxSe/uYiVG9t9r7P4Ve2IuuKsNECK+1bGPu5WsyF0heBitTUMz82ozLZbiOxkBhQCa8x526WhY1V+D4XTjt4/6peQG9GQqE3EubzcYlzfSCXl5rSKeP5A== 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=7+zqYL0KVJqM1L7ls+9l75n22QZLgFa+Ytsb+ol8b9I=; b=KLRBHHxi+q+I39mm44aU3Zbg8dwBrgwEZDaThELpuWeFiiesUzaXRHD/qXx02U3G03o0YPq7i73J8Vd9pzvtAMrhonFGkGET3f25H5ifUDvacFbz7roWcxNpBFm6VYMZb536SulAX7nuxLvcW9CW+jIK4GcOcTH2WlEJTb9LvNitU9a2Yb43swBxg9DKlFV0blDCDp2O8RuUc1uuR18T8J1J0eBPajJ1iSaoQPtoZdo3g9zHRgwg/z5GpE1caA9a6fr5hwAPCNT7iYXhGQZVS/jSTTsYPIFSYW/tU0Jh97LFgw9i0fgwYdVvNkyiODRwIRPPv1IlSAfciA1ONav96g== Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) by AS1P250MB0553.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:4af::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Thu, 28 Mar 2024 23:11:10 +0000 Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb]) by AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb%3]) with mapi id 15.20.7409.039; Thu, 28 Mar 2024 23:11:10 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Fri, 29 Mar 2024 00:10:34 +0100 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: X-TMN: [ieXS8ZudJqGtLe4qDuwMELxK2WGTHR5itn1RTE2fntI=] X-ClientProxiedBy: ZR0P278CA0093.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:23::8) To AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) X-Microsoft-Original-Message-ID: <20240328231047.2202386-4-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8P250MB0744:EE_|AS1P250MB0553:EE_ X-MS-Office365-Filtering-Correlation-Id: 31075de3-fdb2-4195-e998-08dc4f7c5b53 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dBEtwGAVJtsHPtKZm9vfnAUQQFK/w4lsb3w+wgoWYdbzxbq8BxS8plsh3Urb3v9WXqAoUo99vpOc+nSosTe9bMtT4lWHYEZ5pwIYkbglDfhy1t1Jnv0u5F5AUmuOgW4Ypm4JFOmoufExoWT1Y75fFU0nvZG+nLqtJTTjO43UK1mJNEfSe+5VoYnUGPFZLqjhjoh6JS/ONdJ8BUvm5TC/kahMqI7FOoVl4vJ0j5PjqtbMaOp42Yyor1IvmZdhXQ0HaaoZg0m6Eb4JkvpTCQ+iwH8hPo5ByyPTWHpnQO5Z9JgfLwRKuc+EA2pLemyaGllxYW3xriyXzFtwBv54G7UA3WPYvChUrw3lcldLzrBRCkWWXoCMJ/OdHRYgpFMvw5KJDeUQ6J76PPW2jQ+XeluNNAFnMvw06ulD1qprXFSU6I2Sm6pz3LG+15xOrYH0TgOoN2v2ctdKf3aPct36AxblFHAWAUrir/+R7hzGzgXhIJM1tpUp94o9wSk23oljhYktIHOt098QtQ25lShCwdJQKjvPNmVAj5AZDDN5XCxG1YdoV4+LTzYvZBWLx/4aB0795m7uYE5vJyN4Irj+CR6WbvYi+xvrV4owX/M5b4snMH+HwMQG0WHKOG5IAqrVhlSe X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ogwLOiWTurFL7I1O7ZAiBnI0jglNvgZxuRaF1sCR2/+rwUOh7zLcN3fmgUTJT1Bzh0sxr/FFkOVnZab9UqxSFHY3+uVjuYgpqyEcMDWlMQAXb2bl0/PEeYUP/VDHz9be1VmoN0Wm+YRaQrYirxGsjeqlEjRcBLQ1GBWG6pXYBhPL+WR80R+OQZ/xufpExmdd2+HQ1egffxAk2ghfAYeDyO+ZsjupCsl7svwsTMKXpGsriMoPWg7/3i+4olWZl9h9LB+EYdc9Bxj+5JU+libWLfWWwNAKzBkQP734SqYNBsoaAt186rBfmt8nfGheXrKeUKla48Ms/Cd8KHfU2cgBdABCVtgjS3BgR31kRv6BjRSncrxxfQY2vajUNqTdNVD2K4+Bjo4Dtn1gOdQ0t59nMg4PkDQ81iVN6vXn/otcG7R3g8syvO3WQexmyaWtOJkJCDkwHb1ktJsVccqP7o0meOv9kBLu+b26TZaeHqBvGZVFAOK6rD6Q5+dj8kfx3gmvFWq5gt3HLRyN2KxevStacFh2e3gf0rHqCePRdIPkFGpNnoyijRPA1TpbFm61phDN3oaDi8ggmoWWg48E5AwpIjGCXsB137oFdOn9T987Ik++ytwSkL+XnZ3JVsGfWMhGXf+6wrKdsWsVOUuhrqaOxVaLS37a+vRCiaTFKH12HH6dCf6s3oW7XwHEm6fwyoawIOrYxf0+euV0XDDeIHbUSt/L0G661F/fq4aeWE1jmh84DBVoKl5jWNv0M0Bi1yNzOMUrbSearkBy26/QWBeTSe3OXSQL4NGQTszCTj4ZydkSiYFKrYOHVdj7P1IJ6N2o+/hqfhVVbfC4Qg84K1xryqWKoJt76CO+dDV6NIxgfe6pXJsBF7cVeAIeC2YnHK5Pk+sffxlK4RITQVCi6svbLcFEHgjUmWr4+bwyQl+yQWvBmK9uCmNfvzL9ZwV5Od6ulwF9mwJmWj+gnx4m7wLNaUs/aMlQL+vPWj0K81wxXHmGU0d5yJJLOqiG+vD3c4kfZ/9z4D0FpYBL5/gEi/ZCorpls8MUmvuuPI7cpAAWr8z9GOdw/FkLU+wypkNKtdcXTjGHcL8eEDD1SXvyp70aJXHWMvoEejquMLLy3kbCXbA2THK937wXODDI4+ymzjBDZjNx+Ixy5D98F/xE23OAXQt+fGLTUetwzvKTBgYdqRRhBfA4NzqSfmHkg/K0XHb+q16ycx2H5w3D5sato/nQQemgYEvj1ZKwT5FMrMGC19wbZh5zGUMoQCq2Ib/aDr+5CrehD56aXTo7V7c4kfSz6Q== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 31075de3-fdb2-4195-e998-08dc4f7c5b53 X-MS-Exchange-CrossTenant-AuthSource: AS8P250MB0744.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2024 23:11:10.8261 (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: AS1P250MB0553 Subject: [FFmpeg-devel] [PATCH 05/18] avcodec, avfilter: Don't use "" for system headers 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: k5XOGwFQaejz Signed-off-by: Andreas Rheinhardt --- libavcodec/qsv.c | 3 +-- libavfilter/avf_aphasemeter.c | 3 ++- libavfilter/f_drawgraph.c | 2 -- libavfilter/f_graphmonitor.c | 2 -- libavfilter/vf_lut3d.c | 4 ++-- 5 files changed, 5 insertions(+), 9 deletions(-) diff --git a/libavcodec/qsv.c b/libavcodec/qsv.c index 7563625627..01ce186dae 100644 --- a/libavcodec/qsv.c +++ b/libavcodec/qsv.c @@ -20,6 +20,7 @@ #include #include +#include #include #include @@ -39,8 +40,6 @@ #define QSV_HAVE_USER_PLUGIN !QSV_ONEVPL #define QSV_HAVE_AUDIO !QSV_ONEVPL -#include "mfxvp8.h" - #if QSV_HAVE_USER_PLUGIN #include #endif diff --git a/libavfilter/avf_aphasemeter.c b/libavfilter/avf_aphasemeter.c index fac8d7c048..6632bae3ec 100644 --- a/libavfilter/avf_aphasemeter.c +++ b/libavfilter/avf_aphasemeter.c @@ -23,6 +23,8 @@ * audio to video multimedia aphasemeter filter */ +#include + #include "libavutil/channel_layout.h" #include "libavutil/intreadwrite.h" #include "libavutil/opt.h" @@ -34,7 +36,6 @@ #include "audio.h" #include "video.h" #include "internal.h" -#include "float.h" typedef struct AudioPhaseMeterContext { const AVClass *class; diff --git a/libavfilter/f_drawgraph.c b/libavfilter/f_drawgraph.c index fd8641ff75..1eca7df975 100644 --- a/libavfilter/f_drawgraph.c +++ b/libavfilter/f_drawgraph.c @@ -20,8 +20,6 @@ #include "config_components.h" -#include "float.h" - #include "libavutil/avstring.h" #include "libavutil/eval.h" #include "libavutil/intreadwrite.h" diff --git a/libavfilter/f_graphmonitor.c b/libavfilter/f_graphmonitor.c index e0b20114e0..3fefa49138 100644 --- a/libavfilter/f_graphmonitor.c +++ b/libavfilter/f_graphmonitor.c @@ -20,8 +20,6 @@ #include "config_components.h" -#include "float.h" - #include "libavutil/pixdesc.h" #include "libavutil/eval.h" #include "libavutil/intreadwrite.h" diff --git a/libavfilter/vf_lut3d.c b/libavfilter/vf_lut3d.c index a312ca76c9..ba2d425198 100644 --- a/libavfilter/vf_lut3d.c +++ b/libavfilter/vf_lut3d.c @@ -24,9 +24,9 @@ * 3D Lookup table filter */ -#include "config_components.h" +#include -#include "float.h" +#include "config_components.h" #include "libavutil/opt.h" #include "libavutil/file_open.h" From patchwork Thu Mar 28 23:10:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 47618 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:9f96:b0:1a3:b6bb:3029 with SMTP id mm22csp1667516pzb; Thu, 28 Mar 2024 16:11:53 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXbPaccNKuGz5YzFbrbjXa32IVDXqh+CS8cQ2UgiB0anZoftVDelAYte/uPKIQYCKek8xhD3XEYl9exi9eIZcWaCAcKmXoh2aVpGQ== X-Google-Smtp-Source: AGHT+IG4HVB3FwA5lUNBlkDhxiOJAw9HvXNc9ImpCv9ZPSrAU5ETHaO3y4gLQNVpSGzs2ffvmkf2 X-Received: by 2002:a2e:86d4:0:b0:2d4:a232:757 with SMTP id n20-20020a2e86d4000000b002d4a2320757mr287795ljj.7.1711667513299; Thu, 28 Mar 2024 16:11:53 -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 19-20020a508753000000b0056c0cc477ecsi1159103edv.146.2024.03.28.16.11.45; Thu, 28 Mar 2024 16:11:53 -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=Sw3zH58f; 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 ED98368D766; Fri, 29 Mar 2024 01:11:23 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05olkn2063.outbound.protection.outlook.com [40.92.90.63]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4902268D750 for ; Fri, 29 Mar 2024 01:11:20 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dLsrtM0PY7o7nQgtwKicxB7d1OCH9bip2q+DaMTRo4SgUCTtUMjiHE1jQuUjobZhyuxle6UY7kZcYqv+hVN/dV/KcAhik98xEtzNVaDnTDE4MCo4bS2W3u9KcUoS7VLSQJDLBc0C3Ds1W0f4Xek7W/LFq7qErB8hL9P1imeNI0wlw+QPv5KuI9R0ucAB09hDiE8vcuVojRYLVhvQFy1/3po7YY0XemZfEjZOk7+PEvei3eFOXbX044GpmdHDJMQX3Z77mlodUizlFkY4eNNa6dwuPfxUUGRFVqe1jvWuX+flEwEHS0TpmnH5GL47871VgQZYcvMvzP6a5OoLw5I+9g== 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=Jyj473iDdNTQndFW5Siaw/KbVzN5SNIR4WqgPQN62Ro=; b=dCliWJ6DkTP/RhQ29844HXxewcTsuwoXrQzX1jGOumcv3HANbOtmQHmRIE4pM2r/HOtXLEQeh/qwuk/HH4FenPWn5KRUUrXnikhzjOz5Adwc8BOvuAqDIz5WlUDQZEpJwiSGOrW/kPRXLK6mAKKJYlPB7/0Xq0YsFkK7ZrsR6drhvq11+GDjWlWklpFswi+DveLwpubkQIqvzEydCdZDnMcTI4NUJVYKIaP1FTfduTqnFDdBtfeYewqKGPdSQ19Gk0sqKQGPjx5CEVqbmv22/D3x/ugRBNMgVKgimAEhX90CIvtMPAPJVaTBBJROS5p5FO4Tca0eQ0d1IDpvSOc2Bw== 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=Jyj473iDdNTQndFW5Siaw/KbVzN5SNIR4WqgPQN62Ro=; b=Sw3zH58fJ9Rj1y0V91f0GTpaYoMBsQkunwM5F0G9istOzvUqo+SHSedTW/UYAhFYWYJuznna+OqjAHj1qr6PAwrmZkxTMnIDeF+vL/DCDMsSQJoEPemcJwBgO3XuFPdXvgGNdBpVdmBxsX8+4PhKhbmTYAR48jyq6DqJ61Y5GxY4D94Z0XV8z78/aOxqMR1EKNo5RUaIQrViJw4nTKrmvbop58gtZUTsS5o0UNEdDtIn0foIUDJsmpOF7jWHgBW1Te1YggA6yTRCa6Y6dqVXY9ixOdQ9FPSKU30T046SRXEwjnTpsa/mEZryk9f9Wz8uikaVxITB1fQNxINCnROShA== Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) by AS1P250MB0553.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:4af::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Thu, 28 Mar 2024 23:11:12 +0000 Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb]) by AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb%3]) with mapi id 15.20.7409.039; Thu, 28 Mar 2024 23:11:12 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Fri, 29 Mar 2024 00:10:35 +0100 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: X-TMN: [5RIOhOs/s/2fiaflHjBpfmQs/ykdQOupFY749MOtlfo=] X-ClientProxiedBy: ZR0P278CA0093.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:23::8) To AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) X-Microsoft-Original-Message-ID: <20240328231047.2202386-5-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8P250MB0744:EE_|AS1P250MB0553:EE_ X-MS-Office365-Filtering-Correlation-Id: deb540a4-c0f3-4971-b588-08dc4f7c5c6c X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1tySaEaPY7C3/JEyBFB+YByJUcW+GXFscwTmtBYaiVWyfYvjOi46tUH8w6EcN5c4s3FReks+Xqj9KIt6l3QWSuAB11BKAlPBJELLmtyCcy2g753dd7pYXk7aBZYix38GnU7VRZRfwpU+kc323M+uWYCp+FliS5g6hFheA5xhRnNbmTFhqlFgEnA9mIhq5kDybCjCoXBveVF4Ibwj9ELLM72CY3mxErarejxkIpfqDLzeWZYXesUUYvkxkmAxpmIE52TbiI+6u2Cb9oOcnPnxACNdAPRMQ7X8KMUc/F7txRZ+cVLwm2zNuZL4ifa/bhb2SK3p1UOt4OoI8yNeJ5zJIRZsaZdCsaYFLzWvzKXmyV1e8uEoSUj3TT3EKW/pMVu5zGE552fHptiUcsbEaYlJeu0cqvSLs1BYpMBzVMYd3vlLW7ztSrFycU40d43n4VlGOW5QwyWCwSjEMJDtbXvp4lQUslvhGq1gFP9u4N9sfMPauWe5OtbzEjxws9Rah+oHRcxn46RX+jIM57Z2pHeqfwd0TDXwRpTBVGuB9mX8/K/j7OQh9uCCVGNQoO9Thtnb0xjQrrlZhOw6s/Qk+QIQCAr/AkVAgFYcA4hiSSEExjRhwGupdsn8lz/NXUP+szR0 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: i3j09nwDlrxDiVEqfJQCVxg13MiDTehHY2dVkOEebumGaIlEitPLjs1XqDhkMLWxNwlBYEgTRq6wFo4t5ur7izECPKpb3PweZViIKAxLJHAaV798CTdlCuMESwAJ1b0Ub9CgFghnNs9gX+tuCoHGSlIYcW8KCbtvT/D5iiyHQJSY9/whe3eeozIb7wi2/hR/3ZHC4xdgC+yJ7C01C2l95DgARi6VAX8CZ0IWoAqRlZKlINgMZRrFC8Um1yJeTzREsYWbCNpC1nvBKgUjtN+lMEMJ4UgqYZl4SVyoCn35OUSwTBQbr6XkZ/KxFXrVO22ZZHHERlI2c/acHBCyOMdpmoaNRNlsPZujK+KFBbS60PynNEHXBNivdNg8wzuzojGhkU4daEHkSDKz7AT7+xxPjoSioMF1jyRT63a69iiZqxPCkCQMydMnCYv3fntENqiM8yQmBvPsiFA8QATgqU0p9t4AdWNSzOitdYIlBvNRdQ4ORnjpYZkTFaM1ITtjzA9H0xEn28gsOpCztNBZT5Bc1GXHIh7Qx/V+CZl7w2H6eMIniKdF7Pe0rOaXdEK+18Ad+io+XBb896jVacwTZhsehuAk0o0IAg/Pl1PWqSN0uhAMbbxH2gmLmFwmjoRTjFOriOaT5vmj8CpopRqwKa/jHxbWEpsayOPDxiG3XXYynEI/DO/2cCF+JUH5bBfr9f7WySHYpmCus41xkej9GdRFtEKe3hvD9J9toWkEROFYM4ImzANVmARf0NC5bZOeGn4WED3UnPIWHcXiEQz8iGbuSDtBCoz0jB7wTU5kQ5glot/Cw1rFIrfv/m5TCdRMvoxZXfPywsWjFfcVDyW4cyKcIyb7qIw0XrCPAdJnBeV/CPYf0gErAii+6kqJ0/5rU6tsvNXOnYA+lYqTCpQkycPCVToj01Krvw8oyGT0vPD1ELiX62LjwsnPg0TJUsNpOcLwBoSTPEc/dyBoLc9cmi9ryiMHAdaYV/Jjq872CtHhXvThhqJtlhSXtCVIOojrsrX6tyOK6eK8QOQvmTu89momZpSgj4ExXnUUBLSRvohJXJumxQpAe1aUCd2oh3jucYBrnB6wL0WrK7gQcfEsIThjnFDYdh9b0o8Ubg/rM1YWuQ4RzdPor+JQRbaFg+Ya1s61P2VP5dC5oSVS92gQq453i4FItntvEioX/pNzp2+yX0uxF0HNskFWbrp/crvIHa/5FY4ByRwYN/xaaZQnL4rQzNAwJ4v3WMExj0YseBddr9MONEfsPLAThc8vqFof26JeWEETcu4dhZ3cxLRukmzpCw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: deb540a4-c0f3-4971-b588-08dc4f7c5c6c X-MS-Exchange-CrossTenant-AuthSource: AS8P250MB0744.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2024 23:11:12.6620 (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: AS1P250MB0553 Subject: [FFmpeg-devel] [PATCH 06/18] postproc/postprocess: Don't generally include arch-specific headers 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: 9be/E+CxLb/K Signed-off-by: Andreas Rheinhardt --- libpostproc/postprocess.c | 3 ++- libpostproc/postprocess_template.c | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c index 0586e458b4..8f4de8b1e1 100644 --- a/libpostproc/postprocess.c +++ b/libpostproc/postprocess.c @@ -88,7 +88,6 @@ try to unroll inner for(x=0 ... loop to avoid these damn if(x ... checks #include "postprocess.h" #include "postprocess_internal.h" #include "libavutil/avstring.h" -#include "libavutil/ppc/util_altivec.h" #define GET_MODE_BUFFER_SIZE 500 #define OPTIONS_ARRAY_SIZE 10 @@ -499,6 +498,8 @@ static av_always_inline void do_a_deblock_C(uint8_t *src, int step, #include "postprocess_template.c" #if HAVE_ALTIVEC +#include "libavutil/ppc/util_altivec.h" + # define TEMPLATE_PP_ALTIVEC 1 # include "postprocess_altivec_template.c" # include "postprocess_template.c" diff --git a/libpostproc/postprocess_template.c b/libpostproc/postprocess_template.c index ade1d6ce2b..d56b45d3b4 100644 --- a/libpostproc/postprocess_template.c +++ b/libpostproc/postprocess_template.c @@ -22,9 +22,12 @@ * @file * mmx/mmx2/sse2 postprocess code. */ +#include "config.h" #include "libavutil/mem_internal.h" +#if ARCH_X86 #include "libavutil/x86/asm.h" +#endif /* A single TEMPLATE_PP_* should be defined (to 1) when this template is * included. The following macros will define its dependencies to 1 as well @@ -830,7 +833,7 @@ static inline void RENAME(doVertDefFilter)(uint8_t src[], int stride, PPContext #if !TEMPLATE_PP_ALTIVEC static inline void RENAME(dering)(uint8_t src[], int stride, PPContext *c) { -#if HAVE_7REGS && TEMPLATE_PP_MMXEXT +#if TEMPLATE_PP_MMXEXT && HAVE_7REGS DECLARE_ALIGNED(8, uint64_t, tmp)[3]; __asm__ volatile( "pxor %%mm6, %%mm6 \n\t" From patchwork Thu Mar 28 23:10:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 47619 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:9f96:b0:1a3:b6bb:3029 with SMTP id mm22csp1667580pzb; Thu, 28 Mar 2024 16:12:02 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWtv+B52+NmWMBgvOSSt2LVLozq00ZQUZRqVUt8x9fhBSDPnqw1keNua27LDLttRZV/V3T6Ilt8+6dx0wklhniIUbQjaQOIyAQYvg== X-Google-Smtp-Source: AGHT+IE4ic8QMW7YGWLtQRpLsaa9E6yfQHlMf4fwThAYTe9MeUtOCkNbp9yEKSn00ExJDMlObJOK X-Received: by 2002:a05:6402:268c:b0:56c:1f33:84d6 with SMTP id w12-20020a056402268c00b0056c1f3384d6mr497658edd.3.1711667522337; Thu, 28 Mar 2024 16:12:02 -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 e19-20020a50a693000000b005666d5f394fsi1220290edc.231.2024.03.28.16.11.54; Thu, 28 Mar 2024 16:12:02 -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=Ce3CVzPx; 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 F183368D76D; Fri, 29 Mar 2024 01:11:24 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05olkn2063.outbound.protection.outlook.com [40.92.90.63]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 6856368D74F for ; Fri, 29 Mar 2024 01:11:20 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dueooYtEvq0KUUaxKRMoilIRhPJgZT/2oAHmAmuyzN/W3/XShQLGOlQXWV2BhhcPJae1/9XYr8ztbv54j3/K8ighYi3wsWctIS9gve3mo0B1c8Vex/JZ0GV4VBmCDoOhM4TM9RPyMr4K1zipSCfXyXXT0ax0GGLHX3jv3jJg3d0bfVNWHXR9FYSK80ZGek54ZAIpUhIqVPzOHdfFNXR2B9HUPjnLyMoG8ktLHmx0kBa0bK66qylPEY5LQKwuOzNUAOHP/ELDS3tAC3m/1tmi25E7P2THuodY7qOBji6oyWcvE8LyEIzyxpKtH7BMNc9axYcuM7ey1crnn0lbgs/vpQ== 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=MSfcR9744Tpe5EJm1uZo1yGAElmhvDEo0FS3DxqMm+o=; b=RCZF+fWD8HOJgyrF9KOdrRXrXcygwT2Bqqr2167n+QU8+CmNUXC05Xi0GO9duy2TH2GLft5J4LfHm5Z5mqCbMK9e3wOttW1kpaWQndi4gjdArzSo8bkmHSoiWsgjJYIsGfASHaRNdZfxVHvOq+jC+Xk3e1htmNL4tOuANBs41mxyW7mVz9fNgrxCl6cntdpqzESzEfxa+MaMlmxHFqAzIRHPC60d5f/TaEnztemT65vcF7eBgTxMiObE59jWl6743KfZfTsMLPioM4I5UTXLH/N0dA418RRXplJHNggtJpxQjjFOvSoXIEXET3KcflBBYvJtElvg3KjNgOI0bfpMqQ== 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=MSfcR9744Tpe5EJm1uZo1yGAElmhvDEo0FS3DxqMm+o=; b=Ce3CVzPx7ok7KT4DCyA/QJkt7XkdaRFsPf7w4Djbrd211Ek7VBTrUnKLXTWzE05s2xwbNGcMXjXTVoPZZE+B9IAAdKMCwcnxgS8CAgfXKmz8SYXYiC0MZsQt54kuT+VIoHieaq19kqsb0dGH2hEFMWmh2k+7k9w6sIIGkmfT8b3bOYWlWRgtzE9IFKQevKVREzWpC2/6TYw3R77EgEwqZSTY26LyJy+G1xdwKAn1pipPdoxy6DIb8+H4FNNy3bQq8Hmg4HuAZ09osLi41Fok+2u8EkHK02A8BW0pMSDPnc4yuKz7c/jb26XxxgsB80C2wDvoc6TdGb4LDZEORBaptg== Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) by AS1P250MB0553.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:4af::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Thu, 28 Mar 2024 23:11:14 +0000 Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb]) by AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb%3]) with mapi id 15.20.7409.039; Thu, 28 Mar 2024 23:11:14 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Fri, 29 Mar 2024 00:10:36 +0100 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: X-TMN: [m1a+q6fbVA4Xbz3g1RAlpFdYl4ASbTbn+LMPfJnxHDA=] X-ClientProxiedBy: ZR0P278CA0093.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:23::8) To AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) X-Microsoft-Original-Message-ID: <20240328231047.2202386-6-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8P250MB0744:EE_|AS1P250MB0553:EE_ X-MS-Office365-Filtering-Correlation-Id: fb25757a-1bd8-483a-c37a-08dc4f7c5d48 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HElnPzJuk1t0sq7rmcdOXLeltCyJm1UD1LLp/HzIiI6M5R401Z19+ZHshpbWyPpIlpA7lRvwEwRBfT5Pahgx37XEAQtscRyJUDxdyQc87D72+7PWgAwbJCiJ4t0+ylvzmIv18q9qpLeoSRCyXBGm9PgYbNHGw41FfeHZimxaxPzC+XlXeuJICr4Jp6u/S80ib+82fCSWDnssC/ItWmAnGBxMIuFxmii94l1LURJoAgyV1iDV1/pU6AKQ1rJ+HESuMXnmF4osvaIeOdyf2lpRHYE1SX1OmBCZAiRifkC/kUMVk1CWONYTafIVEfBb1PNQgchl84I1CVJZCDwxuLs2It4cw0/Kt5r/EJjqdgRSn6z+4Qc+RliCMqzVvvyDUBmn7WTHZ4AidXzxv55anr0+gYir0V2NtP02ACW5dNmlT1YNO2nqJVFCiuJ5KK1I64YHNClrw+zUhCjstceD7IzodSyumLmqizrTBdQmSNYfX+cAf8j40C5+WLkNwNPYU+a41PoiuIVaJSvuiVRvIf37Lqnt2q4EaO5IDuA8Ip9oc8q3n1tG226Z+GrdupzHfkCtVVCrR0xcfqJ6TxyH2Cle9iCsY5oepCJjCEs7MmXUCBwxav2rTVYgb0O1syJfJdlS X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: RO3hOdc5k+vLfiNZMmIh9HOKtAkCp1V6l7IsL7WQQudg2FWD2zYDDZdMNbFoHpCdwaPOiBurkfNuoHk9dFbO05eVP04OmHNWHUWnFpVIutpSam0v5T2ygdQOkTW7wqRL4AEvNK6tD+AShxt2n8+QR4opB6zl/h8U3yqY5pD5uadmJtpHTGu4IwQ29vWFf4qCdU9bmSGA04qNXPWcZFZflKvONdUPYoCTdlaMYihIEwjOq1MtupWH6skhitahuXpOtjNec2Mr23x6n5kp3l/nSznKvHKOGhz8j2MIFEexmCdHFI7Yyqpr72TIP3atGR+wHsqr8rEijZPsgq++w1FK7TvZgAGWQEcKJxdW+QrGAmLSIB6lyvmeOpJ/XF+ZPEDYvCbtD6zKLcgbltVLvvRZZJNdYwuwXNvTJbzr3/e2UIJOqgj3FYh6//bJIXUYXt6iFKtSQwBrdI3cHs9UCjYx+GB2Nn9vZ39uAItdczGX3pMP7AbChuHQgPbuOlAyLiCHR7ioDIFZzqM6CHgL7AksA9F0YVZVfpf3J8zWWXv/MZJTTWtycsTETJjcrzfLWA3dbpLKAzyRguuxIQG0sFARJ/E/dreYZ4oR/Soxzl0Dc1jWFEInzUlOVsp5t3QPnyqtjLnaTEvMbOgdY5lb9dtFqsyiTjw90PMwTv8IV5jrFQCNrdbbwuacBsWItUjDQAkoMCYlUA+vM4fcPc+a2m0nNOHFas272/LyyaJEoa6Nnulq1XvvWUdubuWmhd4qonz+6ySfTq8w40NVgNpjwlwQseOLHnfsdQ7uRELNAiEUnLHIaFQV+Jafd/VNOjLPJhwXSwsG/xYBhvCywRpM+YFFsg+yq91B/G0Wr8haVEQvIu/H4sxJJI0HQpgupftif7SgXaYIGHtAvCzMMksdapjnxR34ojQU9k1M9q5kzFbJrugk94wwq8yMd7Gbfz4w525IQFEGh976Fq09vIC7BOVMWdn6urMTExjNVi740DZLWa75V1N3teXzht+0+tvu8/NbIDRgj2M5/Q2bZYC4ZKeRc3XU1m8gaqlL4zwztUUef8Fjsw2+DWlVRvrZGsAk3oSio9buBz1wmRA0GKvuMhSBWrlMWKOJY6RxmCuMMdtGfeA5ekuDTmOtJXMc7up3smHnrSiomSpDxSCjI9WmEIEx44a88JaOm7CVDdJMxJOWrniob2jccvZk7MJolz/FKztacwDhpoOAJH44jec+w0GyLMbLN1yuowRECIEv49OCuqNI4j+Y4DUPyj0eelK7GE1ZkAbi98mDsx6v+dvQBOLEWQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: fb25757a-1bd8-483a-c37a-08dc4f7c5d48 X-MS-Exchange-CrossTenant-AuthSource: AS8P250MB0744.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2024 23:11:14.1494 (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: AS1P250MB0553 Subject: [FFmpeg-devel] [PATCH 07/18] swscale/swscale_internal: Only include altivec header iff HAVE_ALTIVEC 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: IirUlRPC/W9/ Signed-off-by: Andreas Rheinhardt --- libswscale/swscale_internal.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h index abeebbb002..2f6cc70946 100644 --- a/libswscale/swscale_internal.h +++ b/libswscale/swscale_internal.h @@ -34,7 +34,9 @@ #include "libavutil/pixfmt.h" #include "libavutil/pixdesc.h" #include "libavutil/slicethread.h" +#if HAVE_ALTIVEC #include "libavutil/ppc/util_altivec.h" +#endif #include "libavutil/half2float.h" #define STR(s) AV_TOSTRING(s) // AV_STRINGIFY is too long From patchwork Thu Mar 28 23:10:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 47620 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:9f96:b0:1a3:b6bb:3029 with SMTP id mm22csp1667631pzb; Thu, 28 Mar 2024 16:12:09 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVBhUqnFe4R7xwz+7PPAlgNrlPbjrG6NjlT71svgCJYjJGY3G+RJlS+Lh8f/GpTNZoBZVINgDn0L4j2TDukF3HJxiEHNqvNpT2Llw== X-Google-Smtp-Source: AGHT+IE+d/GL5IGkZPnGbP4zEids7NH9ABHyW+VQ1FcRayStIWjexgupmu/5E6KM4yYiEJoR7y4D X-Received: by 2002:a50:f611:0:b0:56b:9f91:d26b with SMTP id c17-20020a50f611000000b0056b9f91d26bmr416647edn.14.1711667528742; Thu, 28 Mar 2024 16:12:08 -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 i27-20020a50d75b000000b0056bee22bf15si1195160edj.533.2024.03.28.16.12.02; Thu, 28 Mar 2024 16:12:08 -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="Yii7w///"; 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 ECCE168D770; Fri, 29 Mar 2024 01:11:25 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05olkn2063.outbound.protection.outlook.com [40.92.90.63]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 8030D68D750 for ; Fri, 29 Mar 2024 01:11:20 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Lo9mnOAgH4gTkjD3XzFlFRTuluu/sg4zkyIwzQXVg/rvfSgbco/seJF0EnIUAEatzLC3iHeT7n2GDFsFfEOV13Hr01xZmZwvRWHG/bfP9V01lUjbJmZKLFVBMGsLbIgXNXhpDa5hhN+A/glJr+raMfmwQWzAQ2lHFT9O883gS+Dwf+eFzh8gsaRE6JxR43AcvCjtTeQ8JMxy4ASVwVOnvroMRza/hJ2xR7tBMFIdzgHBCt2IV2lBYBVtJjW03NfEJEkvF+cU1EWL157Dl3Q81lUxXJNrL2WHg8B3D87fDSvrQ0vtL3INjoRaV5YexPfX6tZplcoYgmpFm954eOBqIg== 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=yS4QxNSCfiuXBxeBmoNN8Qh03yG6TPNjc/8wsuhFwnQ=; b=Vkbgn/yATZgXiKDWybVvQHvGyRUYD/LIRAem+CqBDK57ojzEpd2lyQAXQt3ufTaBFKIHXRW1X0rWAaikU2kOBIQB1eKQ8UCxTk65R37OCYh0LwTBJABrAf6AWuvqgFDDGj8DsiqObhKLuWKM56KCux5rk2VoqbCT/0DkjFfgdO/IKA3mDHQ3GHiwXi3dS3s4uCBkvWOFXj+02j7SW7QUEFPuKL6tSXmqr0AgBOXW2YY3dnjTouCw5bdJbUbJExaoPp2d7MFlc3T2OTBav68bmywsYPSAMtX7UP6Z8KK8sXbIywoqNFCXHMzlV+4VPwIirs9Rg+M4UscgDwaUapfHbQ== 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=yS4QxNSCfiuXBxeBmoNN8Qh03yG6TPNjc/8wsuhFwnQ=; b=Yii7w///vz+zYZTHEy2GVsDEtqFfVEFF3Y6IR4ex9nloxhijzUBBwG0glf7D3sHVAMaJZ4fJgiQKz8+A1trTqTxH4/CfSp3UsrSSo1zGhPHfGD5gzXNyn/MPKnK/F5gt5UuDslQEAyzkZuPa1j5NQ9D7Kre0LWNxC4+DzZLNmOTgnpLw4H3JpAuuqaF8bnZ76Y7ult/gJ+kHMZYoCXDFEQxCb/aqIfiQp4f1AMyx5TIW7ByNfTekUcEA7eirHpbNq5K8dmbtZOm0Zmw3ZKlMotpfE8+BFdoF7cotO4b7FliExymqaLUnoU0XCpzzHCZ2BFYnhqoGHk1GXc1IIkPGhQ== Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) by AS1P250MB0553.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:4af::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Thu, 28 Mar 2024 23:11:15 +0000 Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb]) by AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb%3]) with mapi id 15.20.7409.039; Thu, 28 Mar 2024 23:11:15 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Fri, 29 Mar 2024 00:10:37 +0100 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: X-TMN: [8FIlBWs7qDQEuP/90Q0/n7lfrHW2wGkTLo7cz6y0zYQ=] X-ClientProxiedBy: ZR0P278CA0093.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:23::8) To AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) X-Microsoft-Original-Message-ID: <20240328231047.2202386-7-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8P250MB0744:EE_|AS1P250MB0553:EE_ X-MS-Office365-Filtering-Correlation-Id: c79a113c-f405-4c42-1a3a-08dc4f7c5e16 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2g6AYuFgKlHPHEwdhVPFyl4SRlWbz+YitZFy88oLB+vWSNCd8itjga+DAwWujvS7VhUIVtdsy06xrRHQWkGUthgJ1w1jIuT14n6ySs+RNgdBYyKPj27R3WDjKPjyqnnVKIbAlnYORd83cylwZWy6+eLbct1j5Q87IHNugn03Cp70Wxk+6yUv9pfbxWLbGlkstjNnDTbg8tspR4OgbAgjvFANn1St1AZ2mKYBacdOBKsvGoxInbb3hC820uASCRxxKmb8gwLLYCs5a7GM82bCfJn1cDJQAJgTSLIO/lrBB4oocvr7B/+tMSO0IiPp9V+SWjJGV78Un5ry7D0++AyACHe4LsIHl7MzdO9UKhf6qCDa2cfqmgPv2RJfvxqNU3Q94d/9HMFemVPDOmDtbDqwOLGE6Eo2mBqHg/PvgCb3r635CbvSCTpJ3DyjKqwDF+/+cPnzoxzYt4LCfqGE7VAFKWsr4bYW92lKgecQv2wl49MlPmXuWKUg9YF93oQNQfpCovKI+JcF9hIapFXBB3qOic3D1y52mT/Tu7m9uPHfonMWcxA+C1BtWLMPRUTOy18f2DOOXncy5w58llXTuqW+oYMRZAz9MBSVvTEq5w0zujWW3uOLs/ged9DGpF48OUz+ X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: yNDcr+Wpmn3actaSR5iBB4R3Mo6auwseG0I9Tua2hZYa/fnbTaVsCBLmzxkeNKVfRtVdQhwnhEAU/vYEDQRySy83Gj1qb2zoMlPBaAsUG2p/d0/1l3oxx9i/JIqUx6xrfWZDRKxV1mYRpjuqV0VMwcmS5AsveZPBsLFfbvoSgmK3/Y+r1brqm2M9PIrZ3Fa/z9uoAe4WxIC6VmQhntvU8wxHFEK83D4S3tQeGYMVk0PqnWuF2c3RCL6Bt4DVEdo84C8latKiy9cUHhZSz6DMSM6Q/INVL5kxB/baRTC2OeKmLGOJ/IY28HIoar95+2jXuwPOsqIu79amBDQW9fJujEaAM1mAYiYtDS86dTf+Za8I6hENQ94OENBVwzvO8r9sQAv3RmxXoO5yP8yPR41IW4fH++o196b0dHReCW+q3rYGMQGMPSh/WV6GKYcBi6U95hPUEm+AZ2L//wO1+gp74uvsii6fqSftNt4K5qzJftW8JPukcnMfEEQIL4bjlW9o/59W6LxCZp62nOOCUv6n2yx+w5GViqFD/2aByOogTm/RD8Z0zH1dRulj8QWNSDV2ecBa2x4RaoXY0I26r7RMndI0rA2dZzzU/hnCdiow8V3IjnKkkHSNYBaHExYzH95vIYRjP7qUnzwkNiIM5VV8Q+uJxyN2aohE2l+G/QuKVbFilhAjOyrKdB/26dw8I2O5gCrn+AA1k8nV7DHTJJyaiqivC9lMs2IBvltCdFjz5/685K1kb/PNdP6XwHrhaU2W77mwK2Cc0RTgk8DhOMbESQook7ebwF9q2+gp1uyYBZLlvnuRkP3cufEaS9DuWS0a9Jr8No1Gy/jEq9HZsstT7YyeJne2691D2qGv+tnd9duckfq2u7XV0xbUAUv+Vnlqa4LcItPw10xO91MYipbq0M19XttrYlglfISff5RWRdWOYyoim1fwfeJpLK3E0qXAFYoXuzA0safubmPq0hDBWR1NVYGQ3uQqMnxulYi/BBsqUUQK0mqB7Z3JCfwXnOtjZUAD81TkFo9GII2EYqBJg/C+zYsVR2hW2RZUhFoPU+Gj83A0OW483/e28+dRr8qkTyVZwSUUGGBS3QsPG58Hz6VMFO/dNCKkP2FORRElv2bnsWtjVDGLp15fflv0vy185l6BgK+eZZdxktkkisYKmfwaYa2WgAYsiMkbzZSmb1fCb7xBs9GPR/vOCZay6fHl22k4+mQtSHHYwAOIfRUMAfgJWQ4UQbSTUftbpWmkrXCUsF+bmVQyPLWlE1q30h3GHad1IkLjQ9kL3CSUei7Ofw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c79a113c-f405-4c42-1a3a-08dc4f7c5e16 X-MS-Exchange-CrossTenant-AuthSource: AS8P250MB0744.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2024 23:11:15.4879 (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: AS1P250MB0553 Subject: [FFmpeg-devel] [PATCH 08/18] avcodec/msmpeg4: Don't include x86-specific header unconditionally 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: gQOq/3PnZo3k Signed-off-by: Andreas Rheinhardt --- libavcodec/msmpeg4.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libavcodec/msmpeg4.c b/libavcodec/msmpeg4.c index a2c4c57728..e327bf36a7 100644 --- a/libavcodec/msmpeg4.c +++ b/libavcodec/msmpeg4.c @@ -27,13 +27,17 @@ * MSMPEG4 backend for encoder and decoder */ +#include "config.h" + #include "libavutil/thread.h" +#if ARCH_X86 +#include "libavutil/x86/asm.h" +#endif #include "avcodec.h" #include "idctdsp.h" #include "mpegvideo.h" #include "msmpeg4.h" -#include "libavutil/x86/asm.h" #include "mpeg4videodata.h" #include "msmpeg4data.h" #include "msmpeg4_vc1_data.h" From patchwork Thu Mar 28 23:10:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 47621 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:9f96:b0:1a3:b6bb:3029 with SMTP id mm22csp1667651pzb; Thu, 28 Mar 2024 16:12:12 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUej0t7RYtY+LtKzAvVuOTIdKJqa2APRn9zrJkNVsGx7nIef7T6N2DYv8AzOg/Esh9kuYShEnv5Ol5x66nciDZPBzMQL5g1j2/CLw== X-Google-Smtp-Source: AGHT+IEXgcSs4FzL/CvpFEXAhN79R0lNJa298yfcDmfHuKfznoH/29d7Su5RQMjq7UOh6ohVDl5t X-Received: by 2002:a05:651c:1032:b0:2d6:87d7:601 with SMTP id w18-20020a05651c103200b002d687d70601mr485542ljm.9.1711667531936; Thu, 28 Mar 2024 16:12:11 -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 cf13-20020a170906b2cd00b00a4e157285a1si1126098ejb.481.2024.03.28.16.12.11; Thu, 28 Mar 2024 16:12:11 -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=Kxpik7NG; 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 1BA7E68D773; Fri, 29 Mar 2024 01:11:27 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05olkn2063.outbound.protection.outlook.com [40.92.90.63]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9815E68D74F for ; Fri, 29 Mar 2024 01:11:20 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TqTyMmrWE2dYCnHCf1uVcHrOFRnbwJJEp/sF7baoSeq4TmhNMeOykN8YHYQPXxofUAOcIvjLRisOMkUDC4Uw/iDYHn6SpjVFlcThtWH2Q8z9LYJlzvV/8y0Oe8E8za0f1KGqYI2tAXJuYCQ3uGxiVHdOitzbR7kGQU9w/e4OcxS6BL2NpbG7A2ZzdKWQzogj3wYo4zHW6enIIRNzQ8LEyA2UKhllfpASzqk54atZdf8rUQwXWQhYwYOZUrkiahSgMs92l6ROsVJ7s2h8wmSvdRirFknPBH2ZCoUqAuuCVq5eY99pOrz7m8ruMKxoc5h68egXK0nbnrjFtELJhkezNQ== 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=vH0ED+5wHy6RRQQ0Maoslz3xJ+NHsUZhe+wwoadeJ9g=; b=XaKiK38gu8LirWQ6EfyziXQpc2qMBjAqrQDujrptjv8E/XaTx/QaWugp+ekIQC1fw//oTe5ct41TarlBmHHY7Vjas/0b6m57B+0HcDyzqdHS+qyTujgeUhwXrmD6QxRt22C3idWWk9Uv9NjaWYRc9d/EYJ7lA9I3IEzU5KV1Zcfe4PZ2gRPdlzBr/Cv8LYkO7arTgYrfS/ZQOmhfkK/E+oksSKJwlc45ROTahD/BZwwl4sZ7WuodQmqYb8MQJsWU68/py8GNQLNdjPRC+w+8qXFWIVJXHKw7fnO4j268fs+M8OAylGTjQndtPACrQZJ4rLtWiO/PAFoZWWRtzDaAmg== 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=vH0ED+5wHy6RRQQ0Maoslz3xJ+NHsUZhe+wwoadeJ9g=; b=Kxpik7NGKpOclqrY7yNx9upxHAtGDK+8fQuMgSWHnYRS9I6NscFgtZfqstC3obvpP60rHZ/DW5NJ6QiS7+Ik9Ev3ZlTYPUhX/+yrMbzzvgRuxuOoOSKwr7G2IHqH0R15UrqtGKPbssu+QCMu0FuYlhG0WtPkARnwLyRec+vN/WZMgYDtc4YMS9hH+GCZWbuUu+2xUoxkHpAhE0bXZPF0CpM6V1sr4VcXhivKZbqAXKzF/tFdnGjpB6FihINEWqNoh0of7lACMlUXF+VvpwvGyEW6QPJBZ2YfYh6l542mYD6WIHv7nRA0lwZCsa/skG1kRz+bob+Y7AYvCLzKK4JWrA== Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) by AS1P250MB0553.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:4af::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Thu, 28 Mar 2024 23:11:16 +0000 Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb]) by AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb%3]) with mapi id 15.20.7409.039; Thu, 28 Mar 2024 23:11:16 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Fri, 29 Mar 2024 00:10:38 +0100 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: X-TMN: [pye1918dCPlHfbVSeVY35nZbNASUlq7MC2mdrLHk+gg=] X-ClientProxiedBy: ZR0P278CA0093.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:23::8) To AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) X-Microsoft-Original-Message-ID: <20240328231047.2202386-8-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8P250MB0744:EE_|AS1P250MB0553:EE_ X-MS-Office365-Filtering-Correlation-Id: 5edcbc0a-ff91-4871-6cee-08dc4f7c5ec4 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oeelsUy8dBXQK1Y5U/zKEANwkRVtT+cKRmPS/yo9+Fi9kt33vBWbGwt1wWb/9zcdrlFSfLfcUD33rNrwIVa22+JrfbCV0mHuKmQXLeZ/0ZGwIWwdTAbIW0tsxonXXVhA/noq16U+AAmofywl1dH716UW3PfGSu7bMlRPZoDb/y6WPeo6A5F/uTdYsZgTCsR261LPAQjv1RH633Wd/6DTOeCK3bfyr0xoNxGP31L9vvLTR/d0EwyuikQRsCpu1Mn4myJIDnJ2hYr5jHJp9JxNoBHrWx9AvHVSxSLTJEA41gxF2Jtko6xvfptSvQ899xbXkhWN639EAhp2LIeiAcPkCoV9oGblGteEXC9iFf1P2IHgY5xVzc087Sqq5TbHBvLs0X7QSwGl3x1X4uWMYS/75EUnoJIrO9lwcNDUzPl92LlyGuPvGZNZVBLwZsQbAj3z/qP2HZZfy7bDZd5BKm402PSBrFeRZ/nh+ZU/2ChOCz+iFeWBVtuaZNodEbKdhJHILjc1F4Fuus/xNTMyVrK/0Q4vJI7IAxMoqeVqYpvyvlK8PoUS9+mCXtaz7NofY6q8B6HtSb/nzX92A+FwntNTF+Eo+7AjvB0//q2ZSMciAfK6Zz8JkCtXyWGMUFqRCdfg X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: iMJdIz8xDvOPbNmKDGL8NEg2103Z3GVYQOtPmOyv5d7M0M5HS/RqYdiEkus5wUqZWeP759RSJd3CAJzWlPrNwzfNRAHvcoyc6qzGU9WyGr9XGEEuC+zcpVhIB0DI8oztWRI/EJj4a3y5EYYfN4jaI+5PgzPDZr0QFkqP8M6/PhxXaFnbihVv/bvg6//yUdeZEt6r63dIDDVs5OFUPre16kUm3fcM54vikEKqhLDeHpaM+0yIn6PhTqj587GZsml14P+NYtaEFGvxRtPhQmxyL0tBCH8GRbfLGsZajcSkSgd9ZHIh1HJz0aIAEOCpDQjRJG5eo0S2CH8HH1UU4iQp/5G9ijKniOcmlUrEG5ClOFZvfyf8q0woub2kERGcrJhCnh4bgJ5/FlFdwyP2xUZfb6xxE909E9PFQgmpKhOtfRRZqPqSGuPt1MpcdKdySB3PeHSrx6cBElQeWYiIGWDYAohP3xgn/FPShUbcd8+PSQQHl+oJi0TVAXwwcf+bnmGQAtHZcYXANRAg2g6rCmmREBQ+lN2rr9SEZUaddeOMn6xn1D0Y+kSZA3Sb3Lx61p9LldKBHgeqvVZGCM6QU3ETQ/zPeeQVNuf/IL1boTLJX87c8s6OvzZtX2HO0LLMIR0sJG3gm9MPZVKdo95CwmWdaHLPuGhmxvwfORoxcA0L5TwZa43qoQn+Rw5EZ3XeRCAaZ60OsnVUhi6HUacfz9tQopr0XYub5Mrj5/+o9USxGSCnL+/K8CmvSvtE5fchiOYg+qgML6sl5xq4QcUOUtTQBvp3q19XBeRCy99SOLInxQJDgmfPnAe0Kpjg47ykb2pSNjOzSMRl9+J+YDEPoE7lW3WSSEgOcj5ey0WxNsElkUeGmyGVvnWViNFrjUdtLQTp0TdmV0yh8RNKi4A2yA9P2Lioa9ofdU/jYPzq+05S+pyduFTciMTSDkPvjqEi5xaPmAVWwZgl6mnLT9SVMH0uQpv5Uzb835uxVzmaT1LXUF/9cjwLiBGPpHQH5of71HI2arYA6xfTq5sUQ3T3MsVaz6AGD5uMWfNBJbnMafzc+B7LlgubsM+R0u8uuTCQqWw500jlufmSqTo3JRQ3KiNPEUiLzMbsVt6Xfhvf+Afk6MMCB9MxQ9tN5JuITE6UtxO/AZGfIE5+QpklwNIVv8+8YXwbCmAXg8Z0nv5sYZoMgS7ixeFaexmr8r7C1/SGLMkoA9ZjxP1MrdxVVBTZ8lx3a7bN3UkzH3D98NNuBEMtu9YoG6UVCWHf+2/PpNBM+bx4HGNvaJzfwSzi7PMTS3zCGQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5edcbc0a-ff91-4871-6cee-08dc4f7c5ec4 X-MS-Exchange-CrossTenant-AuthSource: AS8P250MB0744.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2024 23:11:16.6066 (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: AS1P250MB0553 Subject: [FFmpeg-devel] [PATCH 09/18] swscale/swscale_internal: Hoist branch out of loop 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: 8uz4K+aTJiI1 Signed-off-by: Andreas Rheinhardt --- I wonder whether one can use aligned writes here? libswscale/swscale_internal.h | 34 ++++++++++------------------------ 1 file changed, 10 insertions(+), 24 deletions(-) diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h index 2f6cc70946..d7faa5e165 100644 --- a/libswscale/swscale_internal.h +++ b/libswscale/swscale_internal.h @@ -1021,28 +1021,20 @@ int ff_sws_alphablendaway(SwsContext *c, const uint8_t *src[], static inline void fillPlane16(uint8_t *plane, int stride, int width, int height, int y, int alpha, int bits, const int big_endian) { - int i, j; uint8_t *ptr = plane + stride * y; int v = alpha ? 0xFFFF>>(16-bits) : (1<<(bits-1)); - for (i = 0; i < height; i++) { -#define FILL(wfunc) \ - for (j = 0; j < width; j++) {\ - wfunc(ptr+2*j, v);\ - } - if (big_endian) { - FILL(AV_WB16); - } else { - FILL(AV_WL16); - } + if (big_endian != HAVE_BIGENDIAN) + v = av_bswap16(v); + for (int i = 0; i < height; i++) { + for (int j = 0; j < width; j++) + AV_WN16(ptr + 2 * j, v); ptr += stride; } -#undef FILL } static inline void fillPlane32(uint8_t *plane, int stride, int width, int height, int y, int alpha, int bits, const int big_endian, int is_float) { - int i, j; uint8_t *ptr = plane + stride * y; uint32_t v; uint32_t onef32 = 0x3f800000; @@ -1050,20 +1042,14 @@ static inline void fillPlane32(uint8_t *plane, int stride, int width, int height v = alpha ? onef32 : 0; else v = alpha ? 0xFFFFFFFF>>(32-bits) : (1<<(bits-1)); + if (big_endian != HAVE_BIGENDIAN) + v = av_bswap32(v); - for (i = 0; i < height; i++) { -#define FILL(wfunc) \ - for (j = 0; j < width; j++) {\ - wfunc(ptr+4*j, v);\ - } - if (big_endian) { - FILL(AV_WB32); - } else { - FILL(AV_WL32); - } + for (int i = 0; i < height; i++) { + for (int j = 0; j < width; j++) + AV_WN32(ptr + 4 * j, v); ptr += stride; } -#undef FILL } From patchwork Thu Mar 28 23:10:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 47622 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:9f96:b0:1a3:b6bb:3029 with SMTP id mm22csp1667772pzb; Thu, 28 Mar 2024 16:12:26 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWdnnNPvFTSe+BIg0RXaCZ8TOUh5Qh+pRew4WyLmC8GvXGw3t0MGs8/cH03rteraVthJ1tVyeGeWpDgh+MgagT9Hz8S0ewonMvDZw== X-Google-Smtp-Source: AGHT+IFO3RFp+kltERPtutodfhcleDXfENMjm5jqH3SVX21R3gj65BXd0j1QCNlcv0lozimnJe4I X-Received: by 2002:aa7:cf83:0:b0:568:b42f:31ff with SMTP id z3-20020aa7cf83000000b00568b42f31ffmr430912edx.0.1711667546055; Thu, 28 Mar 2024 16:12:26 -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 f17-20020a056402355100b00568b82f6a19si1224384edd.563.2024.03.28.16.12.20; Thu, 28 Mar 2024 16:12:26 -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=ojdfEme7; 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 33E6168D647; Fri, 29 Mar 2024 01:11:28 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05olkn2063.outbound.protection.outlook.com [40.92.90.63]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B10A868D756 for ; Fri, 29 Mar 2024 01:11:20 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aIT4nNeNIkCrmJGs6citv5KE2ECvMA9mnTeb+wQbeAFu2tQPxJu3BeNvOfqejBAbkfcPWTpQHXzLAzEGNdEZTDMRrOG2Dkngb6ZFbH4zlwAuwyA1Eao9wcr3fsCD9rt/dTH9cM6AcF+n2/zcO07wb97CBU0GbguVXkXqTxUMofFigizvwIDZINPLUo31AuW08gtnNsgjWpGJDSN4j5vusHj1fSmiFpOeSMUdxn+QyS+xdq5bNPkyAS2zzb+9ZfhYLbFKs7iBY4Tz6iQmIWNuPzWzt6KxooEYJJkJJk4Q3X0ZiKx0R8+ry+pwPICKrA6EpuYPYZMNIDiBdySvF7Vj/A== 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=sqTxE2+9CxqehvSDhufsG6kharO4TjmYdQ46aqi9yjA=; b=LGCNIPxmI5LhxdWJz5pl0hPd5g9ThiMAdP3D++gz6pWA5Ip2mZntSsGePXck45zXs7kfAnOcjTpZtAD7uKZGPThcGrSINNRXggK2V+vJlsRjz1G3cXDcHyCcCCZ/M0VYyAA1nG+h8vjFPaQxgpH+O319W5UIcWR7qh+OzmRzOXgIi0xvacno7IMhrY/xC5JO34owsJ4cgtq1kEfgLY0+CFXIguaTE2ssYGVS7OwIyk1OARsPFBYt+DalKnml88AJ19W9MW36QKi6OJhPJiYbAKJsyFkQ4OfbZJYGsOOJJ0VPj1ZDDjvWBSo0CuR64RkWxSWDKD0XZibC8ScJvcaw6A== 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=sqTxE2+9CxqehvSDhufsG6kharO4TjmYdQ46aqi9yjA=; b=ojdfEme7rF/4ktjqiTlAUYiZ/5ZjKmtM+7U8MawLIjdLCYTBEDNbel5/Tnqakz8ovXl+aFxU0/t/8L3BenDMDvNFRSPUdJDbTIRJUrA683C9jX+GLbOAR2fftqHCOULhJFGceMYL/kV1h3Ev+shq1pPkp6e8W5ANYaHUgPm1I5mEZ6bNLUAgyQdN+uJOUAuMeBEXds+6oQyd4OhSHKM7zQUH1mMODz+TffkNtdySYZ+Xc5t2kwERaXYJQ4neiYtnb1Mw4lqijmc+8qQVXyb28ZvGe3FqHDN1vCnp5VMDevJc4cWnT6we8wEzjye70BXpCLDOmup4hLuSbQNy8acyyQ== Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) by AS1P250MB0553.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:4af::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Thu, 28 Mar 2024 23:11:17 +0000 Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb]) by AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb%3]) with mapi id 15.20.7409.039; Thu, 28 Mar 2024 23:11:17 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Fri, 29 Mar 2024 00:10:39 +0100 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: X-TMN: [BIaOGG8s6KefmyTZsvErvNDQgTVemrQ1Iyv5oaBy2Lk=] X-ClientProxiedBy: ZR0P278CA0093.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:23::8) To AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) X-Microsoft-Original-Message-ID: <20240328231047.2202386-9-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8P250MB0744:EE_|AS1P250MB0553:EE_ X-MS-Office365-Filtering-Correlation-Id: e158d76c-f589-4485-9ab0-08dc4f7c5f84 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XQyAJCa0k6j3ujDLn5kb8cF/priiHs2+npBewnUMNK+15LzoDXSTO1S2B3COrwNaMJwMOzZ3aMWq4ogCaCT0uo1VTCWu64V83b927N9ZA8XGUFNic912xsJWsfB2qtbYWWQ87sEN3zZ75U0cLX52M/OpnKEMP1W1s56slOIRSsE8voBn1f9XRyxpt9GdJCjFkU8/D14oufgXLtqpYh8itWezrnHNJhUme+u1hY9kr6MsH6XnqrmZzdginERlIJ3X8GHxGG3cOkrbL9LmJjzL6GA2IYh7UFpeq06Op/mADY/KYq4Fe+bTM7feP2N7asVAsv/f9MpXgr8MIzb+7nQEVS7xvWdpIDeuPnoUirU1b98Kpv0ukx0rPXjLhhbTxkZaueo6U9BUXGpEDykziszBiFe5IgIoxptyjSdvFeTNmQuCX3V3S+PnNtDXKDRStqrCwdgcTOr2bjOA2L6+zz5PmOYYghKxYhZhoDF1jFyY2fnbsc7Ipvj0G09gYvt95cpHR8gr5XPeTmyhrIUCCDI94LlQsR10Rs38VFswEwVonWau6T2PNdOq6dqOvs6Te/gR8xDTVuUHjiNtHuje644TDFG/SIwc3J0FcQgp66z0QfNBQMQQH6oxQtTZ33EaYkJa X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: NrQEfTfauVWLTllsWeCf6Bi7fwpkI+9s/oELhKjXUyRtolMANK/HMc8F6s5m93NvKcN5FbcKeeuoYevILvYiNpaHYXCxMfD6mnUJ3FHfSqIEvyn9nDUL3m3mYUg6GQn6V7e2ppR1G0/TqTrwBb341LyJf/gJBykIVGaK6405v+BTnCvsRavyyNSeCXRQGJfTYrZsG/qpBnF9PDqnGGvfkA2+0sThsoEsoOY4Rma5djbLxyb6+p0FFttq7ILAKEdaDSLAJbDOaqnEUk5FORzDZ3DMIZ5PAIOGUB49LckTbF1D9oYL1ott+yEgkk5V/xLAPqpT3zq8w7xYJXZgU7VdO6PmGnDJ2D1uD9SZWJLee9/gDjf49z0exAoM/vM0hT5L9/xsCnlCsu/Dq0fpKO/L8iMVbMoiyGVfiP7THPzCKefndhwa9dRvdwp7fDQKiU7r2qMzJIxnWfX5lbx7XD52fk5AYEVlP5ibOwkN1lxNxrNZO8xs324ewQh/w5gC6ccD869clXnNP73y67BvK5Yx2AqJte4KR9jw27uTmaC5YDywRn/mKACVTLZpL0bmpwa07aBh2rb0l5zmj6DxpP5v+mxv0VTnJc2eg4CxfcPb2fKOc0ODG2jPoPDPC2GN+/Uz7ecQ6FRupOx/v9+ao+5FjBBRp6mUtgCyNGHOJfFMGg9JNnXPL4gc2Q8G75RWXylVORpFf/Z3iUqNjkQXjm3FO5A0yjRiOkRG8ZuwAnhKqgoilzm+uCxyKAD+SPN68bzEWhu3NrSzR/wi+f9VgkON9XuhS3i+BxbAmsryPCpav5g4Lgaw4V+DukCUrgcfdeIh6HI+L7+ZQGo9Zf+QJxqSSLFKmIoCvnfls/NdCp+JIjejbnE3n+ISRnURlLmRZ7cnwRxdZYuVX7oHyVBiz1RAg1QVzg2EHoyhOf9Bxb0a780xBLIBetIqkxCl20AZrWkpXb+iEPFG2wbj4GD3rcHD4QTOokH+TeFODO0HdoLCVRuBjftzcTaOOL7uyh2iGUbW/+jpMMAl2fT3tgkszWxkHQc52qs/vvDx0lTvwb1sQXDNdXFnRsf02/I55gkbhj03x48Th0hW3qAwG6LThnDk59+xLhddKjnU4BKwn4Qw2nn2afWcZfd+VKlDT2BFhxJYBxlq40hZl3fnv2HXkYlrzqpYRtoqnNmsHBeSv6kqkUBlfgG6vayovPlbR29aOBKno8RBTEkKI/Dv0mJjmlMIYwk/K355uQK7S313JU7P4hBhQGZEsISfjBZvfJtlxm7qjfl4/Xx0Ub8NmTQPTPNH0g== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e158d76c-f589-4485-9ab0-08dc4f7c5f84 X-MS-Exchange-CrossTenant-AuthSource: AS8P250MB0744.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2024 23:11:17.8477 (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: AS1P250MB0553 Subject: [FFmpeg-devel] [PATCH 10/18] swscale/swscale_internal: Don't export internal function 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: Ybx3xYUl93dG sws_alloc_set_opts() can actually be made internal to utils.c. This commit does so. Signed-off-by: Andreas Rheinhardt --- libswscale/swscale_internal.h | 11 ----- libswscale/utils.c | 83 ++++++++++++++++++----------------- 2 files changed, 43 insertions(+), 51 deletions(-) diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h index d7faa5e165..c2cc736dd2 100644 --- a/libswscale/swscale_internal.h +++ b/libswscale/swscale_internal.h @@ -1003,17 +1003,6 @@ void ff_hcscale_fast_mmxext(SwsContext *c, int16_t *dst1, int16_t *dst2, int dstWidth, const uint8_t *src1, const uint8_t *src2, int srcW, int xInc); -/** - * Allocate and return an SwsContext. - * This is like sws_getContext() but does not perform the init step, allowing - * the user to set additional AVOptions. - * - * @see sws_getContext() - */ -struct SwsContext *sws_alloc_set_opts(int srcW, int srcH, enum AVPixelFormat srcFormat, - int dstW, int dstH, enum AVPixelFormat dstFormat, - int flags, const double *param); - int ff_sws_alphablendaway(SwsContext *c, const uint8_t *src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t *dst[], int dstStride[]); diff --git a/libswscale/utils.c b/libswscale/utils.c index ab8a68e241..cb6e91db06 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -269,6 +269,34 @@ static const FormatEntry format_entries[] = { [AV_PIX_FMT_XV36LE] = { 1, 1 }, }; +/** + * Allocate and return an SwsContext without performing initialization. + */ +static SwsContext *alloc_set_opts(int srcW, int srcH, enum AVPixelFormat srcFormat, + int dstW, int dstH, enum AVPixelFormat dstFormat, + int flags, const double *param) +{ + SwsContext *c = sws_alloc_context(); + + if (!c) + return NULL; + + c->flags = flags; + c->srcW = srcW; + c->srcH = srcH; + c->dstW = dstW; + c->dstH = dstH; + c->srcFormat = srcFormat; + c->dstFormat = dstFormat; + + if (param) { + c->param[0] = param[0]; + c->param[1] = param[1]; + } + + return c; +} + int ff_shuffle_filter_coefficients(SwsContext *c, int *filterPos, int filterSize, int16_t *filter, int dstW) @@ -1101,9 +1129,9 @@ int sws_setColorspaceDetails(struct SwsContext *c, const int inv_table[4], if (ret < 0) return ret; - c->cascaded_context[0] = sws_alloc_set_opts(srcW, srcH, c->srcFormat, - tmp_width, tmp_height, tmp_format, - c->flags, c->param); + c->cascaded_context[0] = alloc_set_opts(srcW, srcH, c->srcFormat, + tmp_width, tmp_height, tmp_format, + c->flags, c->param); if (!c->cascaded_context[0]) return -1; @@ -1116,9 +1144,9 @@ int sws_setColorspaceDetails(struct SwsContext *c, const int inv_table[4], srcRange, table, dstRange, brightness, contrast, saturation); - c->cascaded_context[1] = sws_alloc_set_opts(tmp_width, tmp_height, tmp_format, - dstW, dstH, c->dstFormat, - c->flags, c->param); + c->cascaded_context[1] = alloc_set_opts(tmp_width, tmp_height, tmp_format, + dstW, dstH, c->dstFormat, + c->flags, c->param); if (!c->cascaded_context[1]) return -1; c->cascaded_context[1]->srcRange = srcRange; @@ -1682,9 +1710,9 @@ static av_cold int sws_init_single_context(SwsContext *c, SwsFilter *srcFilter, if (ret < 0) return ret; - c->cascaded_context[0] = sws_alloc_set_opts(srcW, srcH, srcFormat, - srcW, srcH, tmpFormat, - flags, c->param); + c->cascaded_context[0] = alloc_set_opts(srcW, srcH, srcFormat, + srcW, srcH, tmpFormat, + flags, c->param); if (!c->cascaded_context[0]) return AVERROR(EINVAL); c->cascaded_context[0]->alphablend = c->alphablend; @@ -1692,9 +1720,9 @@ static av_cold int sws_init_single_context(SwsContext *c, SwsFilter *srcFilter, if (ret < 0) return ret; - c->cascaded_context[1] = sws_alloc_set_opts(srcW, srcH, tmpFormat, - dstW, dstH, dstFormat, - flags, c->param); + c->cascaded_context[1] = alloc_set_opts(srcW, srcH, tmpFormat, + dstW, dstH, dstFormat, + flags, c->param); if (!c->cascaded_context[1]) return AVERROR(EINVAL); @@ -2066,31 +2094,6 @@ av_cold int sws_init_context(SwsContext *c, SwsFilter *srcFilter, return sws_init_single_context(c, srcFilter, dstFilter); } -SwsContext *sws_alloc_set_opts(int srcW, int srcH, enum AVPixelFormat srcFormat, - int dstW, int dstH, enum AVPixelFormat dstFormat, - int flags, const double *param) -{ - SwsContext *c; - - if (!(c = sws_alloc_context())) - return NULL; - - c->flags = flags; - c->srcW = srcW; - c->srcH = srcH; - c->dstW = dstW; - c->dstH = dstH; - c->srcFormat = srcFormat; - c->dstFormat = dstFormat; - - if (param) { - c->param[0] = param[0]; - c->param[1] = param[1]; - } - - return c; -} - SwsContext *sws_getContext(int srcW, int srcH, enum AVPixelFormat srcFormat, int dstW, int dstH, enum AVPixelFormat dstFormat, int flags, SwsFilter *srcFilter, @@ -2098,9 +2101,9 @@ SwsContext *sws_getContext(int srcW, int srcH, enum AVPixelFormat srcFormat, { SwsContext *c; - c = sws_alloc_set_opts(srcW, srcH, srcFormat, - dstW, dstH, dstFormat, - flags, param); + c = alloc_set_opts(srcW, srcH, srcFormat, + dstW, dstH, dstFormat, + flags, param); if (!c) return NULL; From patchwork Thu Mar 28 23:10:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 47623 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:9f96:b0:1a3:b6bb:3029 with SMTP id mm22csp1667794pzb; Thu, 28 Mar 2024 16:12:29 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUV8imXZaBXygYeV9mkuVaz/rzUg/VqSirsj1MFZqWuY4AyBzgjHbDaCA3XIlzj1j4OrZfmlLLac67cvtrJ8ydMFekWcewXuEF6Og== X-Google-Smtp-Source: AGHT+IEhVRdj/6dY3ELEAtO3Fon8UElAd71MX4UAOiDYaPmwPUoFfA80uCuyhkDumgaiRPrnltw/ X-Received: by 2002:a17:907:7883:b0:a46:8daa:436f with SMTP id ku3-20020a170907788300b00a468daa436fmr374139ejc.69.1711667549359; Thu, 28 Mar 2024 16:12:29 -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 s23-20020a170906355700b00a471122a534si1106614eja.811.2024.03.28.16.12.29; Thu, 28 Mar 2024 16:12:29 -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=EjbZMWpR; 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 6FD0968D756; Fri, 29 Mar 2024 01:11:29 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05olkn2063.outbound.protection.outlook.com [40.92.90.63]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C968768D751 for ; Fri, 29 Mar 2024 01:11:20 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R/XZwTYzp7qyGgwfMrWiJMZnG2gJwpZTqHV7vjFW8q3Oj1KrUfUemliiHseR8ZbnilmECW4LVAWocLd/VQkxEESJ6dXs3whNainMdFTNx7jzaJuQHcSx+qX6Tq9sNz34yzvg8i+9vign6Vcavo0UqqviNyIqJNMipErxX/mpB1c5m+yCyRvE/wNMr2Xtrn2LmESf260/9UrBpcnQaVWvXLk5Y0vIisB5bm851iTVkwRGvLWrbiiZDvbHc/j3GRWKuFEGRYdQpKRFLyIahge4mSp0g6ri2ErpaYVL2Gn19GVNoyoi0B0yAi3GFXt+TSeDuoMUJRn6qHjp5MZEaGm6HA== 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=ocuyZ/nGHBX12xr2PQA0FaIqhd8x3GGKX1lfL28LUcQ=; b=YckyAlZSwRbeV7BSXhiOoY+VEZEhpNfYxZdeu22RGAoiO/UbpX813BsyjvCi5bJsooMtSAUyuplSXxieUN/f+ZTAIoyXhOU8LFaPf1u7BGOReuKfhle7w21s5PxAu8DFIDxMpm2JhW/M9+UXgqcIvDttMdVNjM97G1KpxIB99QRgV+GveoNb7dufQx80ZnSXRQMFgIHRLmpt6Si0mHB5pmRPWYKwnIZbXhGV85FgKTtalNF0AAtD5jRUdLTG+2LAoUBQRHn0Ncd186OJDlMNFIttpnvZ9fWa3t9HtHtST0j9xxAIYBBpSU/s4jChsMNNsCX3X7LTTLeMWdZQP3wFwg== 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=ocuyZ/nGHBX12xr2PQA0FaIqhd8x3GGKX1lfL28LUcQ=; b=EjbZMWpRqlrIhFKmH44ypJY20XgAzoY2nVZNsC9FFmbIZJvqVF/UMOXTBE7SSQHT3+GbESefaemApHFERUD+/7mHfrr4tfr/4EM4ALAag50gFIKOEuu6d265OnMSEaru9xHr187IVcwAQHTauEizr7IyTRfciTb+4IKukofBUbG5BlxXQ4DUEgzDNjtg8TxL3sxrFGHAGNC3qx6eh/hXXXS7oUxbuGa69rWZAUkNse7NNGtBrrywKay/jKp4xPPPrFklBdpVMYkgllxIgQf6Akm+RdrVsyFtW9eTe+yjbDQFrv3H5H/PcmmnhW76ded9q6KtDKkZvWvF5DyNwqQFIA== Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) by AS1P250MB0553.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:4af::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Thu, 28 Mar 2024 23:11:19 +0000 Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb]) by AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb%3]) with mapi id 15.20.7409.039; Thu, 28 Mar 2024 23:11:19 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Fri, 29 Mar 2024 00:10:40 +0100 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: X-TMN: [lfDzfxEw5PlA3xs3Tl0O1xnlPstCHBK3GVyWnmeH4XQ=] X-ClientProxiedBy: ZR0P278CA0093.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:23::8) To AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) X-Microsoft-Original-Message-ID: <20240328231047.2202386-10-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8P250MB0744:EE_|AS1P250MB0553:EE_ X-MS-Office365-Filtering-Correlation-Id: af40e4af-1fdd-41ea-31e7-08dc4f7c6039 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5pBwpiASsC6GSWan/JCJa9x7g82DU+bsab5U9hyZoF4/LFIiU2nGd2IcbIExNW9OIWM0ksFmi9h7c/158fGKIqZYRbc5qCIpY81w3D/947cDiebJ8sy1Fqr6/eMVW0RKKY0GE7lrQNJdmB5UpnvFW+ljZHyhqZJJU7wm7jF2bbovPyXfkQPKX/uQiIDoyZbqulpjaZYZv6afJoU2/Yu1+SEhu6NMc1ZDb4dmqRumVNd6BgdTYAtgR58zFvoq2Ao0fVR4pM6vHHeFFn55q5JUv8o+peymQHg1QpX21O4/Q6iIemRXQyuimdr+YfNRCjpBrLFXCOZKXjJx6+ayIGaPsuHKKDv8AWvI0ID9LgO0JJ6wYSXUSxJwqQYHM8eafCIjCspBRA4kgjgP9HYC0U6DQRojN3NKj82ipzghxJEt6f2BaRK6ZorTRRnc8lo/aRZN74/wXF8w4MMMRDoz6+NTq1TxFctXgr3lglOUWOIwsSAOF2fPG114NkHVJzWG3892tOGVQgNBiXcmsotBCCwnY6rPfcgUeE5LrEQW6nXyuF9GnxyBPOydaM6C0HYG8bq7woCFj9tx0Rm7PAlenwuDr2iLNSHCYkp0i+m6AacvyVaUqC8/NQKTacvGyVdGUsJj X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: IX4q4ubnBNRgBuP1xtZURx2JY0nFvst9tFeumNr70Gbn93z7I2MxgWK2mp8YXIJf8qip4G0Cl+SobC3AHtAg+MU5RTZgGdU97tDDlP4SoGQwzeRCzAhCh5bPkQ8VDzG1v6ZFIon07Lcfw6Z6ZIcXbmgHcmS4KuliaesBjLVNAfO2EOHQNUJ9bTz5oMWF74YSlB6bXYKb7dz/CS6HZxGHkrhGHpyEPeOXlKTlYk6ML2lv+FNJN2Yz4SHFv/+KFqDRC8zKQ32b6xQBefmVWZpJ1w5OWZpjiodsaLEpNLdmhZtSoQA4DeoV4mmJSJs0rTSh80jJgA/8KCbWymU+GOukibLKg7JDmiDfVEbqIbLNJOqeJ3X72uj/VJ1FC39LD3uOGBwao+SCSF1mAV937Mo6ol75AzDi+IXdpsyKsEsNS4SpG/BFySGXaJtkeUh76ErHffmsT3PrFMGq+WbiqxAanAb6Ytn5PMQGra9CVQkRNxn2Tzg2RsZuh0K2A61yOf6N6F4BYa0t2QRHZNXR9OPclU9ZqFcPa8iMW1cbHXw50lNVuoBTJbgVFXlqrK29maCK6l9b4O5mkpgckEfhHzeyQX9FNgi/4V1cjPUHSN+Yh9BXEfpm5EVOar9GKzuw6hFNeSF6Gg83Zd84tklXuvPKE5v/LkQU9VjdkXXtlQU7ei0hWQWaoum0kuHd89KR5udDLwdCrYHdMORgAZFTl3SbIPL5gT2AzIf6seinWB5RsN3Wn+CSdQP/dtG3FGmE8uCo4YtWAEEu1FhzBdN2CDodLVvRtnW5LSA/xAlulzjv09FI+bZBpC57SWzMGU5QiQjcezZ6JMwCR+1Xx2mMlUr0hsuzzZXIQgfMXslkRVQhHdl0JfVAH6OcHlhZQ6WHICTy4D1QY9Xo1GNQHsn3cRyDF3Sh1k3qfGmptYGc/JOzNwplY8WBEy+OB3mFHrRDVPstyzl7MrnggCrtqTXAzmvvy9rdSj0yruSSTgaIKyTzD1n6fRDlKx0qfvSBjik4Hq8EDyhyYhCO8AKpCzfiQwaLbcvXVEeDAP3CvMTnqzr0YRXtqvRzyJ+NUZWSsdncvJHfWfvpkDTgvinKB11cp1UT1Nn1FR9QMSmbxwzyeaXDrmXjo65UujpGEw4+rv4HEfAV57yoSuoa+SVXGBD5xdJSv0Oh7DTNAVe8E7sfucar9vkhHfbg4Af6vql4RN7NDhCcehOBGvGkjMyTAnHWw0MpoUWdI3TwFNhdseq+Z8pCPmjIKY1PKFakMGUfNZ0nADkG8IxG2GmOMvp+gvSH3LBEMw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: af40e4af-1fdd-41ea-31e7-08dc4f7c6039 X-MS-Exchange-CrossTenant-AuthSource: AS8P250MB0744.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2024 23:11:19.0259 (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: AS1P250MB0553 Subject: [FFmpeg-devel] [PATCH 11/18] lib*/version: Use static_assert for static asserts 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: Xu37pU0rAXIB Also update the checks that guard against inserting a new enum entry in the middle of a range. Signed-off-by: Andreas Rheinhardt --- libavcodec/version.c | 16 +++++++++++----- libavdevice/version.c | 5 +++-- libavfilter/version.c | 5 +++-- libavformat/version.c | 5 +++-- libavutil/version.c | 12 +++++++----- libpostproc/version.c | 5 +++-- libswresample/version.c | 5 +++-- libswscale/version.c | 5 +++-- 8 files changed, 36 insertions(+), 22 deletions(-) diff --git a/libavcodec/version.c b/libavcodec/version.c index d7966b2015..27f94323b8 100644 --- a/libavcodec/version.c +++ b/libavcodec/version.c @@ -18,9 +18,10 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include + #include "config.h" -#include "libavutil/avassert.h" #include "avcodec.h" #include "codec_id.h" #include "version.h" @@ -30,10 +31,15 @@ const char av_codec_ffversion[] = "FFmpeg version " FFMPEG_VERSION; unsigned avcodec_version(void) { - av_assert0(AV_CODEC_ID_PCM_S8_PLANAR==65563); - av_assert0(AV_CODEC_ID_ADPCM_G722==69660); - av_assert0(AV_CODEC_ID_SRT==94216); - av_assert0(LIBAVCODEC_VERSION_MICRO >= 100); + static_assert(AV_CODEC_ID_LEAD == 269 && + AV_CODEC_ID_PCM_SGA == 65572 && + AV_CODEC_ID_ADPCM_XMD == 69683 && + AV_CODEC_ID_CBD2_DPCM == 81928 && + AV_CODEC_ID_QOA == 86121 && + AV_CODEC_ID_ARIB_CAPTION == 94233 && + AV_CODEC_ID_SMPTE_2038 == 98315, + "Don't insert new codec ids in the middle of a list"); + static_assert(LIBAVCODEC_VERSION_MICRO >= 100, "micro version starts at 100"); return LIBAVCODEC_VERSION_INT; } diff --git a/libavdevice/version.c b/libavdevice/version.c index 92d7f2d159..a058efe46e 100644 --- a/libavdevice/version.c +++ b/libavdevice/version.c @@ -18,9 +18,10 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include + #include "config.h" -#include "libavutil/avassert.h" #include "avdevice.h" #include "version.h" @@ -29,7 +30,7 @@ const char av_device_ffversion[] = "FFmpeg version " FFMPEG_VERSION; unsigned avdevice_version(void) { - av_assert0(LIBAVDEVICE_VERSION_MICRO >= 100); + static_assert(LIBAVDEVICE_VERSION_MICRO >= 100, "micro version starts at 100"); return LIBAVDEVICE_VERSION_INT; } diff --git a/libavfilter/version.c b/libavfilter/version.c index db1a2511e7..54c286460e 100644 --- a/libavfilter/version.c +++ b/libavfilter/version.c @@ -18,8 +18,9 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include + #include "config.h" -#include "libavutil/avassert.h" #include "avfilter.h" #include "version.h" @@ -28,7 +29,7 @@ const char av_filter_ffversion[] = "FFmpeg version " FFMPEG_VERSION; unsigned avfilter_version(void) { - av_assert0(LIBAVFILTER_VERSION_MICRO >= 100); + static_assert(LIBAVFILTER_VERSION_MICRO >= 100, "micro version starts at 100"); return LIBAVFILTER_VERSION_INT; } diff --git a/libavformat/version.c b/libavformat/version.c index 5f321d847e..c0781d3f47 100644 --- a/libavformat/version.c +++ b/libavformat/version.c @@ -18,9 +18,10 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include + #include "config.h" -#include "libavutil/avassert.h" #include "avformat.h" #include "version.h" @@ -29,7 +30,7 @@ const char av_format_ffversion[] = "FFmpeg version " FFMPEG_VERSION; unsigned avformat_version(void) { - av_assert0(LIBAVFORMAT_VERSION_MICRO >= 100); + static_assert(LIBAVFORMAT_VERSION_MICRO >= 100, "micro version starts at 100"); return LIBAVFORMAT_VERSION_INT; } diff --git a/libavutil/version.c b/libavutil/version.c index baead7c4a0..afab190336 100644 --- a/libavutil/version.c +++ b/libavutil/version.c @@ -18,8 +18,9 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include + #include "config.h" -#include "avassert.h" #include "avutil.h" #include "samplefmt.h" #include "version.h" @@ -34,10 +35,11 @@ const char *av_version_info(void) unsigned avutil_version(void) { - av_assert0(AV_SAMPLE_FMT_DBLP == 9); - av_assert0(AVMEDIA_TYPE_ATTACHMENT == 4); - av_assert0(AV_PICTURE_TYPE_BI == 7); - av_assert0(LIBAVUTIL_VERSION_MICRO >= 100); + static_assert(AV_SAMPLE_FMT_S64P == 11 && + AVMEDIA_TYPE_ATTACHMENT == 4 && + AV_PICTURE_TYPE_BI == 7, + "Don't insert new sample/media/picture types in the middle of the list"); + static_assert(LIBAVUTIL_VERSION_MICRO >= 100, "micro version starts at 100"); return LIBAVUTIL_VERSION_INT; } diff --git a/libpostproc/version.c b/libpostproc/version.c index 494575ae67..304abe08e6 100644 --- a/libpostproc/version.c +++ b/libpostproc/version.c @@ -18,8 +18,9 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include + #include "config.h" -#include "libavutil/avassert.h" #include "postprocess.h" #include "version.h" @@ -28,7 +29,7 @@ const char postproc_ffversion[] = "FFmpeg version " FFMPEG_VERSION; unsigned postproc_version(void) { - av_assert0(LIBPOSTPROC_VERSION_MICRO >= 100); + static_assert(LIBPOSTPROC_VERSION_MICRO >= 100, "micro version starts at 100"); return LIBPOSTPROC_VERSION_INT; } diff --git a/libswresample/version.c b/libswresample/version.c index 00f71e3393..40fbbabf96 100644 --- a/libswresample/version.c +++ b/libswresample/version.c @@ -18,8 +18,9 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include + #include "config.h" -#include "libavutil/avassert.h" #include "swresample.h" #include "version.h" @@ -28,7 +29,7 @@ const char swr_ffversion[] = "FFmpeg version " FFMPEG_VERSION; unsigned swresample_version(void) { - av_assert0(LIBSWRESAMPLE_VERSION_MICRO >= 100); + static_assert(LIBSWRESAMPLE_VERSION_MICRO >= 100, "micro version starts at 100"); return LIBSWRESAMPLE_VERSION_INT; } diff --git a/libswscale/version.c b/libswscale/version.c index b165e2563e..31135f9cb1 100644 --- a/libswscale/version.c +++ b/libswscale/version.c @@ -18,14 +18,15 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include + #include "config.h" -#include "libavutil/avassert.h" #include "swscale.h" #include "version.h" unsigned swscale_version(void) { - av_assert0(LIBSWSCALE_VERSION_MICRO >= 100); + static_assert(LIBSWSCALE_VERSION_MICRO >= 100, "micro version starts at 100"); return LIBSWSCALE_VERSION_INT; } From patchwork Thu Mar 28 23:10:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 47613 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:9f96:b0:1a3:b6bb:3029 with SMTP id mm22csp1667888pzb; Thu, 28 Mar 2024 16:12:44 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVlcP4ndgFVs7ApO0uebZfl0e/7lYnu60YvTmb6f0CETwSnpp0nc/Xj61g+xxiqzNxB+nW1F1hejqG+mh2Dbzs2M5SO/GK79YmvGg== X-Google-Smtp-Source: AGHT+IF8Zb6SIXUT/XmPFDrebgxzSa70iNXC6Lu68Klp569V7++JEgCabGmMcD9k1A6+5ZK8TkU1 X-Received: by 2002:a05:6402:40c:b0:56b:b570:4379 with SMTP id q12-20020a056402040c00b0056bb5704379mr369396edv.4.1711667563985; Thu, 28 Mar 2024 16:12:43 -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 b19-20020a056402279300b00568bd8d7d7dsi1234629ede.247.2024.03.28.16.12.38; Thu, 28 Mar 2024 16:12:43 -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=ZOZhcY+z; 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 B32C168D746; Fri, 29 Mar 2024 01:11:33 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04olkn2084.outbound.protection.outlook.com [40.92.75.84]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4A35F68D74A for ; Fri, 29 Mar 2024 01:11:32 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SDThJaXUfRmxmvRc/fr9/jHEHxUd7F5UhFPs4pQYjrNhstejqAf//EbbLabKyAUsXHQwKPW0CP3kq6Pe7fTrdpRJRUwXIMKa84xp82cdEDWKBTFrVNq8iCqSAebWFLFOjrP8W1MdJCx8vVYXQjtY70XckZb0/eJjbUX0YCbC6qyvW7lghPNorovaU9N1ZqW6hLbvNSJJdzVqG1hdSypVLeDFk0kJZUYTWuCDUHLt/zmP9f6gXTr7vMQkRp5Bq2h9T3FCTiroj7mmpKXgxO8kORFJv65ibMX+V3RMm0HJJQCh6BswmcvKeoG/qw15/bIsi8Bae9ZIVM5jMxa68661LQ== 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=Qot+VqZx8MRs0U3C9bmdydaYnxzSglrVsa0Vjn6moKc=; b=JyAUNNeLCGXdOZL88tWw6gV36EC4q8wWUybIsPtdcNilLcKZaGAYckbd9+uOpcaS2Ma/kTnWtfFFsBafrg4YfgsH7y/MA9p2eeaNAzB9Y8Ef0KhfhAckTJX1HGUpUuxDpIPLAZJjBCAf0MXrzg3fm6peIfcpWVhbjrFJKBIUAdkTpxBUsVSmvpTXcAKcFdqnUtzSgz7P1LV3XW8UGImgI4Mzk0YoT5aEOXLK0hmdkb4Dfv1cOe8oxHFyNPDbW6av3Dj+KiW0p02SCw4AH4J2NTYJPHEylqC9F0vH62DyR5dIT5lTvJH5/KrAT00PtHu2FuZcKtvTRA06ZGXpE4aYRA== 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=Qot+VqZx8MRs0U3C9bmdydaYnxzSglrVsa0Vjn6moKc=; b=ZOZhcY+zBISZGU8QWuBL5LXDZExI/vfNDZFQ0veckWwAooK7kN+6NCM4Ox8xK375aAFbqQH0x73Cdt3YWt1SJTmFosyt+sbX7FVnUiNDqOR0Pse9VIISPmAAe9whI6WL+NKpeP2a6AR+zaQwJ7xf87K1b1Im83DEwRqXzt2TzTTGGaw6prj2ujzbfHVwIUAOd1l7eyL5JfN7bH2oYnhjZlsGKVS6Ya1z+3hhAWGTwGASSCpxhXF0jjaKUgf8hlu4Xeg5Dfp2e5ylHpsqhA8NIi78zEEDiU8kmMaqRJbf2SGN4m9YI4RplIoQjWO6/flc68tgti+SXHcU+auACTXNeQ== Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) by AS1P250MB0553.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:4af::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Thu, 28 Mar 2024 23:11:21 +0000 Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb]) by AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb%3]) with mapi id 15.20.7409.039; Thu, 28 Mar 2024 23:11:21 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Fri, 29 Mar 2024 00:10:41 +0100 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: X-TMN: [6Rza8gqn38T/8ZSs9knZCpSy76S/GEDgnIkq8OVBV5M=] X-ClientProxiedBy: ZR0P278CA0093.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:23::8) To AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) X-Microsoft-Original-Message-ID: <20240328231047.2202386-11-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8P250MB0744:EE_|AS1P250MB0553:EE_ X-MS-Office365-Filtering-Correlation-Id: b35f39c5-b0c1-44c1-83ba-08dc4f7c616a X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: IjzbI1MnsjfPqYa/VlZvxe8vzY/jM3dIzyNzQCUcPMw+H502ZV8SJ5yfZ71qcw/ZgezG6MzfEu4dBJeeVA7qs0YH0wTuLZD7yjYRtN9pVyUu3UPZmYzcQ7oy9NJNNzB+lOkYX1+CNSbD68Szrtk+wIyvJtb9XGNaPdcFMBi6msStafODxCRged9LqkMLDM01HxTuX2z+BMH2OcBJDQBO3fu+AOO96Lb8DLXky8YIxY6a7puZj71v9jD/b/9pj8mG+8cxEi0qQ8/z7mPhetHoxKVFJE6IhaChmJlvkXMyE39WjKXgjrhyCB7MJLxwTxWnk9Yr2RXgSxDoj55Ll82VvJX+dhUOUZSe665t8WWYPa55M2QNjUk/Ih8CedyXGPnkOCIgHrDGPRqfgaByV4mwryfPi0beTzIlTZG92to6CjL5sTAmZW04Ylrrc1kuINx2n/eqqwWR8gBwL9fkgafIz36nQ/jg5EbMMHa2B67Io8Vyu1XLbCgtcur/0VN/m1nsuCZtTHSEMxIm+xXtabbTiEmVYgA0MRkP9yTRX0dwaAcrOd1om4/h3abS5sWV1XONtIvTAFVBhK6R2Vgpk04HiyBCL0YsqdXTgL87k3bEcvipDtxLmWOEApUNcj8lB67SaqKOo+b+AuY1ljHaZmdX/rnG1FvqAyvRwhI+nlfI5jp5w9VzDoeqkyCmgm+i8kTFRUGVWzeW601ydwKflkjDDw== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: hSfbkHHk1N391lz2fr87tSR+tOvT8LiB029lQVMYjyR9KVT/TmDLkkc1h9QXNe7JihxiA7TIbcroHtt3oViTIbe2H701VsZzEZu+1sXxw/yuGp1t8XZXG9qDLMAg+WxqF47pDSNjDv9NMirCWLnEqAKqTAM93Y4IVmFJNv2vU6x8istH+fpkto5/31/vjWCjFdRWg3HWqvb5ssQQ5l56h54ZIZgzeYJZVV/rbJYPQypRsI53HMyJ2f5bfcHIY9sQHmYZ3oDLjdmZ6IfqI06lxGHppNQt2pi9wLt+nRWaxL9F/Kn1DGAbmk5YpNdF4r08fwc3+e6HKOASxeHGtvF2uIrnEC3YqkO2O9nvYTnVtV/WgPck1kXXvNpId+yg35cG7UgDe3xYWrfN1gXHwaXXCQVQalhJM+RedwSOKOaqpUoXcqG9tqXxa5zm1ocYVCGoFu8/mnIsi0OKRi/JtGxXPWxJHwW7g1fn1h6yCR2gfyPZ7gIVHojBF5xKJf1kVLCWZaeG2iDgFg3XLHjLEAVZixsvqb79DjojSJDTuT7Yv3uUBpqaBi/6o9Pljcpxi/p3QSSnnEpYlA8RtZVAqXTLNowt62lGYnVTmvLkie9ozzPgcv3QhSt6nHScNMErIJ2BO0OUMuyUYEqC9svZ3XN1by1PQvOT5ws1nwStO3PglPRNBv63c3uQY8SbuMuCJWKwOevtHM/lqk2nMrZmmo7xeRM0cLRwLUc6N3VbBOnP0vsz3W+C0UxikI+jX5kcE8oRCJq1GVXaZrnsqjR53vl3wLak1ToburtOilN43ZJSErOCRaq6NnqRp4RcXRAZgui7FaN2FTZXY3DvDigbhJ+adauplJJZ8oZnjDjU9hSxKPfJv1bccJWVeJTck9UhILJHSCTm7zt6eh2p6HmDLd/1/VO/Y356fNWo7/8eATmpa3Dn89W3FCC80OADyTMJW/GXvpaPK4XROoYeB4EKZwcx7nM7mBIAPuey0tQ7BXuJCEbV8yV3BidbEYVXu7A1kPeYtWuu50hhZz7/E2Im8XWrfGB3p08iqLwstO/hqMZ4NEQhyyb+xr05pcveR74Ozu1mr7tJvSXa+AAFPp4uPPh05LKuO5jxcVQ22V5wkCHbZCgwtNFD6/fWp20bNz67o1uaL203hpLwa8gpfsurGs37Mv1wGrWSidZOMc01sNuReY5eRu0w7Rl+5BQ1th64QJQwSuHHSLHnhji6S6/Px+zthqFJ8Mjl1wJWzcaTM/5FQitRd66XHzfjZoChS96LWdaGj9kB7kdKHCEnm4kSNnGBXg== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b35f39c5-b0c1-44c1-83ba-08dc4f7c616a X-MS-Exchange-CrossTenant-AuthSource: AS8P250MB0744.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2024 23:11:21.3249 (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: AS1P250MB0553 Subject: [FFmpeg-devel] [PATCH 12/18] avutil/common: Don't auto-include mem.h 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: dLZYeGriGKBN There are lots of files that don't need it: The number of object files that actually need it went down from 2011 to 884 here. Keep it for external users in order to not cause breakages. Also improve the other headers a bit while just at it. Signed-off-by: Andreas Rheinhardt --- compat/w32dlfcn.h | 1 + doc/examples/avio_read_callback.c | 1 + doc/examples/decode_filter_audio.c | 1 + doc/examples/decode_filter_video.c | 1 + doc/examples/hw_decode.c | 1 + doc/examples/qsv_transcode.c | 1 + doc/examples/remux.c | 1 + doc/examples/transcode.c | 1 + doc/examples/transcode_aac.c | 1 + fftools/cmdutils.c | 5 +---- fftools/ffmpeg.c | 23 +---------------------- fftools/ffmpeg_dec.c | 5 +---- fftools/ffmpeg_demux.c | 1 + fftools/ffmpeg_enc.c | 5 +---- fftools/ffmpeg_filter.c | 3 +-- fftools/ffmpeg_hw.c | 4 +--- fftools/ffmpeg_opt.c | 9 +-------- fftools/ffplay.c | 5 +---- fftools/ffplay_renderer.c | 1 + fftools/ffprobe.c | 1 + fftools/fopen_utf8.h | 1 + libavcodec/4xm.c | 1 + libavcodec/8svx.c | 1 + libavcodec/a64multienc.c | 2 +- libavcodec/aacdec.c | 1 + libavcodec/aacdec_template.c | 1 + libavcodec/aacenc.c | 1 + libavcodec/aacpsy.c | 1 + libavcodec/ac3_parser.c | 2 +- libavcodec/ac3dec.c | 1 + libavcodec/ac3enc.c | 1 + libavcodec/ac3enc_fixed.c | 1 + libavcodec/ac3enc_float.c | 1 + libavcodec/ac3enc_template.c | 1 + libavcodec/adpcmenc.c | 1 + libavcodec/adts_parser.c | 1 + libavcodec/agm.c | 1 + libavcodec/aic.c | 1 + libavcodec/alac.c | 1 + libavcodec/alacenc.c | 1 + libavcodec/alsdec.c | 2 +- libavcodec/amfenc_av1.c | 2 +- libavcodec/amfenc_h264.c | 2 +- libavcodec/amfenc_hevc.c | 2 +- libavcodec/apac.c | 3 +-- libavcodec/apedec.c | 1 + libavcodec/ass.c | 2 +- libavcodec/atrac1.c | 1 + libavcodec/atrac3.c | 1 + libavcodec/atrac3plusdec.c | 1 + libavcodec/atrac9dec.c | 1 + libavcodec/atsc_a53.c | 1 + libavcodec/audio_frame_queue.c | 2 +- libavcodec/audiotoolboxdec.c | 1 + libavcodec/audiotoolboxenc.c | 1 + libavcodec/av1dec.c | 1 + libavcodec/avdct.c | 1 + libavcodec/avuienc.c | 1 + libavcodec/bfi.c | 2 +- libavcodec/bgmc.c | 1 + libavcodec/bink.c | 2 +- libavcodec/bonk.c | 3 +-- libavcodec/bsf/dts2pts.c | 1 + libavcodec/bsf/evc_frame_merge.c | 1 + libavcodec/bsf/extract_extradata.c | 1 + libavcodec/bsf/filter_units.c | 2 +- libavcodec/bsf/h264_metadata.c | 1 + libavcodec/bsf/noise.c | 1 + libavcodec/cavs.c | 1 + libavcodec/cavsdec.c | 1 + libavcodec/cbs.c | 1 + libavcodec/cbs_h2645.c | 1 + libavcodec/cbs_jpeg.c | 1 + libavcodec/cbs_sei.c | 1 + libavcodec/cdtoons.c | 1 + libavcodec/cdxl.c | 1 + libavcodec/cfhd.c | 2 +- libavcodec/cfhdenc.c | 7 +++---- libavcodec/cinepakenc.c | 3 +-- libavcodec/clearvideo.c | 1 + libavcodec/cllc.c | 1 + libavcodec/cngdec.c | 2 +- libavcodec/cngenc.c | 1 + libavcodec/cook.c | 1 + libavcodec/cscd.c | 2 +- libavcodec/cuviddec.c | 1 + libavcodec/d3d12va_av1.c | 1 + libavcodec/d3d12va_decode.c | 1 + libavcodec/dca_core.c | 1 + libavcodec/dca_lbr.c | 1 + libavcodec/dca_xll.c | 1 + libavcodec/dcaadpcm.c | 1 + libavcodec/dcadec.c | 1 + libavcodec/dcaenc.c | 2 +- libavcodec/decode.c | 1 + libavcodec/dirac.c | 1 + libavcodec/diracdec.c | 1 + libavcodec/dnxhddec.c | 1 + libavcodec/dnxhdenc.c | 1 + libavcodec/dovi_rpu.c | 1 + libavcodec/dsddec.c | 3 ++- libavcodec/dsicinvideo.c | 1 + libavcodec/dvbsubdec.c | 1 + libavcodec/dvdsubdec.c | 1 + libavcodec/dvdsubenc.c | 1 + libavcodec/dxa.c | 2 +- libavcodec/dxv.c | 2 +- libavcodec/dxva2.c | 1 + libavcodec/dxva2_av1.c | 1 + libavcodec/dxvenc.c | 1 + libavcodec/eamad.c | 1 + libavcodec/eatqi.c | 1 + libavcodec/elbg.c | 1 + libavcodec/encode.c | 1 + libavcodec/error_resilience.c | 3 +-- libavcodec/escape124.c | 1 + libavcodec/evc_ps.c | 1 + libavcodec/exr.c | 1 + libavcodec/exrenc.c | 3 +-- libavcodec/fastaudio.c | 1 + libavcodec/faxcompr.c | 1 + libavcodec/ffv1.c | 3 +-- libavcodec/ffv1dec.c | 2 +- libavcodec/ffv1enc.c | 3 +-- libavcodec/ffwavesynth.c | 1 + libavcodec/fic.c | 1 + libavcodec/flac_parser.c | 3 +-- libavcodec/flacdec.c | 3 +-- libavcodec/flacenc.c | 1 + libavcodec/flashsv.c | 1 + libavcodec/flashsv2enc.c | 2 +- libavcodec/fmvc.c | 1 + libavcodec/frame_thread_encoder.c | 1 + libavcodec/fraps.c | 1 + libavcodec/g2meet.c | 1 + libavcodec/g722enc.c | 1 + libavcodec/g729dec.c | 1 + libavcodec/gdv.c | 1 + libavcodec/gemdec.c | 1 + libavcodec/gif.c | 1 + libavcodec/gifdec.c | 1 + libavcodec/h2645_sei.c | 2 +- libavcodec/h264_parse.c | 1 + libavcodec/h264_slice.c | 1 + libavcodec/h264dec.c | 1 + libavcodec/hap.c | 1 + libavcodec/hapdec.c | 1 + libavcodec/hapenc.c | 2 +- libavcodec/hcadec.c | 1 + libavcodec/hcom.c | 1 + libavcodec/hdrenc.c | 2 +- libavcodec/hevc_parser.c | 1 + libavcodec/hevc_ps.c | 1 + libavcodec/hevc_refs.c | 3 +-- libavcodec/hevcdec.c | 1 + libavcodec/huffyuvdec.c | 1 + libavcodec/huffyuvenc.c | 1 + libavcodec/iff.c | 1 + libavcodec/imc.c | 1 + libavcodec/imm4.c | 1 + libavcodec/indeo3.c | 1 + libavcodec/interplayacm.c | 1 + libavcodec/intrax8.c | 1 + libavcodec/ivi.c | 1 + libavcodec/j2kenc.c | 1 + libavcodec/jpeg2000dec.c | 1 + libavcodec/jpeg2000htdec.c | 1 + libavcodec/jpeglsdec.c | 1 + libavcodec/jpeglsenc.c | 1 + libavcodec/kgv1dec.c | 1 + libavcodec/leaddec.c | 1 + libavcodec/libaomenc.c | 1 + libavcodec/libaribb24.c | 1 + libavcodec/libaribcaption.c | 1 + libavcodec/libcodec2.c | 1 + libavcodec/libfdk-aacdec.c | 1 + libavcodec/libfdk-aacenc.c | 1 + libavcodec/libjxlenc.c | 1 + libavcodec/libmp3lame.c | 1 + libavcodec/libopencore-amr.c | 1 + libavcodec/libopenh264enc.c | 2 +- libavcodec/libopusenc.c | 1 + libavcodec/librav1e.c | 1 + libavcodec/libspeexenc.c | 1 + libavcodec/libsvtav1.c | 2 +- libavcodec/libtheoraenc.c | 1 + libavcodec/libvorbisenc.c | 1 + libavcodec/libvpxenc.c | 2 +- libavcodec/libwebpenc.c | 1 + libavcodec/libwebpenc_animencoder.c | 2 +- libavcodec/libwebpenc_common.c | 1 + libavcodec/libx265.c | 1 + libavcodec/libxeve.c | 1 + libavcodec/libzvbi-teletextdec.c | 2 +- libavcodec/lpc.c | 1 + libavcodec/lscrdec.c | 1 + libavcodec/magicyuv.c | 1 + libavcodec/magicyuvenc.c | 2 +- libavcodec/mdec.c | 1 + libavcodec/mediacodecdec.c | 1 + libavcodec/mediacodecenc.c | 1 + libavcodec/mfenc.c | 1 + libavcodec/mimic.c | 1 + libavcodec/mjpegdec.c | 1 + libavcodec/mjpegenc.c | 2 ++ libavcodec/mlz.c | 1 + libavcodec/mmaldec.c | 1 + libavcodec/mobiclip.c | 1 + libavcodec/motionpixels.c | 1 + libavcodec/mpc7.c | 1 + libavcodec/mpeg4videoenc.c | 1 + libavcodec/mpeg_er.c | 1 + libavcodec/mpegaudiodec_template.c | 1 + libavcodec/mpegpicture.c | 1 + libavcodec/mpegutils.c | 1 + libavcodec/mpegvideo.c | 1 + libavcodec/mpegvideo_enc.c | 1 + libavcodec/mscc.c | 1 + libavcodec/mss12.c | 1 + libavcodec/mss2.c | 2 +- libavcodec/mss3.c | 1 + libavcodec/mss4.c | 1 + libavcodec/msvideo1enc.c | 1 + libavcodec/mv30.c | 1 + libavcodec/mwsc.c | 1 + libavcodec/mxpegdec.c | 1 + libavcodec/nellymoserdec.c | 1 + libavcodec/nellymoserenc.c | 1 + libavcodec/notchlc.c | 1 + libavcodec/nuv.c | 1 + libavcodec/nvdec.c | 1 + libavcodec/nvdec_av1.c | 1 + libavcodec/nvdec_h264.c | 1 + libavcodec/nvdec_hevc.c | 1 + libavcodec/omx.c | 1 + libavcodec/on2avc.c | 1 + libavcodec/opus_parser.c | 1 + libavcodec/opus_pvq.c | 1 + libavcodec/opus_silk.c | 1 + libavcodec/opusdec.c | 1 + libavcodec/opusdec_celt.c | 1 + libavcodec/opusenc.c | 1 + libavcodec/opusenc_psy.c | 1 + libavcodec/osq.c | 1 + libavcodec/pafvideo.c | 1 + libavcodec/pcm.c | 1 + libavcodec/pcx.c | 1 + libavcodec/pgssubdec.c | 1 + libavcodec/pictordec.c | 1 + libavcodec/pixlet.c | 1 + libavcodec/pngdec.c | 1 + libavcodec/pngenc.c | 1 + libavcodec/proresdec2.c | 1 + libavcodec/proresenc_anatoliy.c | 1 + libavcodec/proresenc_kostya.c | 1 + libavcodec/psd.c | 1 + libavcodec/qsv.c | 2 +- libavcodec/qsvenc_hevc.c | 1 + libavcodec/qtrleenc.c | 1 + libavcodec/ra288.c | 1 + libavcodec/rasc.c | 1 + libavcodec/ratecontrol.c | 1 + libavcodec/rawdec.c | 3 +-- libavcodec/rka.c | 1 + libavcodec/rkmppdec.c | 1 + libavcodec/roqaudioenc.c | 1 + libavcodec/roqvideoenc.c | 1 + libavcodec/rscc.c | 1 + libavcodec/rv34.c | 1 + libavcodec/samidec.c | 1 + libavcodec/sanm.c | 1 + libavcodec/scpr.c | 1 + libavcodec/sga.c | 1 + libavcodec/sgienc.c | 1 + libavcodec/shorten.c | 1 + libavcodec/siren.c | 1 + libavcodec/smacker.c | 1 + libavcodec/snow.c | 1 + libavcodec/snow_dwt.c | 1 + libavcodec/snowdec.c | 2 +- libavcodec/snowenc.c | 1 + libavcodec/sonic.c | 1 + libavcodec/sp5xdec.c | 2 +- libavcodec/speexdec.c | 1 + libavcodec/sunrast.c | 1 + libavcodec/svq1dec.c | 1 + libavcodec/svq1enc.c | 1 + libavcodec/svq3.c | 1 + libavcodec/takdec.c | 1 + libavcodec/tdsc.c | 1 + libavcodec/tests/avpacket.c | 1 + libavcodec/tests/snowenc.c | 1 + libavcodec/tiff.c | 1 + libavcodec/tiff_common.c | 1 + libavcodec/tiffenc.c | 1 + libavcodec/truemotion2.c | 1 + libavcodec/tscc.c | 1 + libavcodec/tscc2.c | 1 + libavcodec/tta.c | 1 + libavcodec/ttaenc.c | 1 + libavcodec/ttmlenc.c | 1 + libavcodec/twinvq.c | 1 + libavcodec/utvideodec.c | 1 + libavcodec/utvideoenc.c | 2 +- libavcodec/v210dec.c | 1 + libavcodec/v4l2_context.c | 1 + libavcodec/v4l2_m2m.c | 1 + libavcodec/vaapi_decode.c | 1 + libavcodec/vaapi_encode.c | 1 + libavcodec/vaapi_encode_h264.c | 3 +-- libavcodec/vaapi_encode_h265.c | 3 +-- libavcodec/vaapi_vc1.c | 1 + libavcodec/vb.c | 1 + libavcodec/vble.c | 2 +- libavcodec/vbndec.c | 1 + libavcodec/vc1dec.c | 2 +- libavcodec/vc2enc.c | 1 + libavcodec/vdpau.c | 4 +--- libavcodec/videotoolbox.c | 1 + libavcodec/videotoolbox_vp9.c | 1 + libavcodec/videotoolboxenc.c | 1 + libavcodec/vmdvideo.c | 1 + libavcodec/vmixdec.c | 2 +- libavcodec/vmnc.c | 1 + libavcodec/vorbis_parser.c | 2 +- libavcodec/vorbisdec.c | 1 + libavcodec/vorbisenc.c | 1 + libavcodec/vp3.c | 1 + libavcodec/vp56.c | 1 + libavcodec/vp8.c | 1 + libavcodec/vp9.c | 1 + libavcodec/vqavideo.c | 1 + libavcodec/vqcdec.c | 1 + libavcodec/vulkan_decode.c | 1 + libavcodec/vulkan_hevc.c | 1 + libavcodec/vulkan_video.c | 1 + libavcodec/vvc/vvc_ps.c | 4 +++- libavcodec/vvc/vvc_refs.c | 1 + libavcodec/vvc/vvc_thread.c | 1 + libavcodec/vvc/vvcdec.c | 1 + libavcodec/vvc_parser.c | 1 + libavcodec/wavarc.c | 3 +-- libavcodec/wavpack.c | 2 +- libavcodec/wavpackenc.c | 1 + libavcodec/webp.c | 1 + libavcodec/wma.c | 1 + libavcodec/wmaenc.c | 1 + libavcodec/wmalosslessdec.c | 1 + libavcodec/wmaprodec.c | 1 + libavcodec/wmavoice.c | 1 + libavcodec/wmv2enc.c | 1 + libavcodec/wrapped_avframe.c | 3 +-- libavcodec/xpmdec.c | 1 + libavcodec/xsubdec.c | 1 + libavcodec/zmbv.c | 1 + libavcodec/zmbvenc.c | 5 ++--- libavdevice/alsa.c | 1 + libavdevice/android_camera.c | 1 + libavdevice/audiotoolbox.m | 1 + libavdevice/avdevice.c | 1 + libavdevice/avfoundation.m | 1 + libavdevice/bktr.c | 1 + libavdevice/caca.c | 1 + libavdevice/decklink_common.h | 1 + libavdevice/dshow_enummediatypes.c | 1 + libavdevice/dshow_pin.c | 1 + libavdevice/fbdev_common.c | 1 + libavdevice/gdigrab.c | 1 + libavdevice/iec61883.c | 1 + libavdevice/jack.c | 1 + libavdevice/kmsgrab.c | 1 + libavdevice/opengl_enc.c | 1 + libavdevice/sdl2.c | 5 +---- libavdevice/sndio.c | 2 +- libavdevice/utils.c | 1 + libavdevice/v4l2.c | 1 + libavdevice/vfwcap.c | 1 + libavdevice/xcbgrab.c | 1 + libavdevice/xv.c | 1 + libavfilter/aeval.c | 2 +- libavfilter/af_aap.c | 1 + libavfilter/af_acrossover.c | 2 +- libavfilter/af_acrusher.c | 1 + libavfilter/af_adeclick.c | 1 + libavfilter/af_adecorrelate.c | 1 + libavfilter/af_adelay.c | 2 +- libavfilter/af_adrc.c | 1 + libavfilter/af_adynamicequalizer.c | 1 + libavfilter/af_aecho.c | 1 + libavfilter/af_aexciter.c | 1 + libavfilter/af_afftdn.c | 1 + libavfilter/af_afftfilt.c | 1 + libavfilter/af_afir.c | 5 +---- libavfilter/af_afwtdn.c | 1 + libavfilter/af_aiir.c | 1 + libavfilter/af_alimiter.c | 1 + libavfilter/af_amerge.c | 1 + libavfilter/af_amix.c | 1 + libavfilter/af_amultiply.c | 1 + libavfilter/af_anequalizer.c | 1 + libavfilter/af_anlms.c | 1 + libavfilter/af_aphaser.c | 1 + libavfilter/af_apsyclip.c | 1 + libavfilter/af_arls.c | 1 + libavfilter/af_arnndn.c | 1 + libavfilter/af_asdr.c | 1 + libavfilter/af_ashowinfo.c | 3 --- libavfilter/af_aspectralstats.c | 1 + libavfilter/af_asr.c | 1 + libavfilter/af_astats.c | 1 + libavfilter/af_asubboost.c | 1 + libavfilter/af_atempo.c | 3 +-- libavfilter/af_biquads.c | 1 + libavfilter/af_channelmap.c | 1 + libavfilter/af_channelsplit.c | 1 + libavfilter/af_chorus.c | 1 + libavfilter/af_compand.c | 1 + libavfilter/af_crossfeed.c | 1 + libavfilter/af_deesser.c | 1 + libavfilter/af_dialoguenhance.c | 1 + libavfilter/af_drmeter.c | 1 + libavfilter/af_dynaudnorm.c | 1 + libavfilter/af_firequalizer.c | 1 + libavfilter/af_flanger.c | 2 +- libavfilter/af_haas.c | 1 + libavfilter/af_headphone.c | 1 + libavfilter/af_join.c | 1 + libavfilter/af_ladspa.c | 1 + libavfilter/af_loudnorm.c | 1 + libavfilter/af_lv2.c | 1 + libavfilter/af_mcompand.c | 1 + libavfilter/af_pan.c | 1 + libavfilter/af_silencedetect.c | 1 + libavfilter/af_silenceremove.c | 1 + libavfilter/af_sofalizer.c | 1 + libavfilter/af_speechnorm.c | 1 + libavfilter/af_stereotools.c | 1 + libavfilter/af_stereowiden.c | 1 + libavfilter/af_superequalizer.c | 1 + libavfilter/af_surround.c | 1 + libavfilter/af_tremolo.c | 1 + libavfilter/af_vibrato.c | 1 + libavfilter/af_volume.c | 2 +- libavfilter/asrc_afdelaysrc.c | 1 - libavfilter/asrc_afirsrc.c | 1 + libavfilter/asrc_flite.c | 1 + libavfilter/asrc_hilbert.c | 1 + libavfilter/asrc_sinc.c | 1 + libavfilter/asrc_sine.c | 1 + libavfilter/avf_abitscope.c | 1 + libavfilter/avf_ahistogram.c | 3 +-- libavfilter/avf_concat.c | 1 + libavfilter/avf_showcqt.c | 1 + libavfilter/avf_showcwt.c | 3 +-- libavfilter/avf_showfreqs.c | 1 + libavfilter/avf_showspatial.c | 3 +-- libavfilter/avf_showspectrum.c | 1 + libavfilter/avf_showvolume.c | 4 +--- libavfilter/avf_showwaves.c | 1 + libavfilter/avfilter.c | 1 + libavfilter/avfiltergraph.c | 2 +- libavfilter/boxblur.c | 1 + libavfilter/buffersrc.c | 6 ++---- libavfilter/cuda/load_helper.c | 1 + libavfilter/dialoguenhance_template.c | 1 + libavfilter/dnn/dnn_backend_common.c | 1 + libavfilter/dnn/dnn_backend_openvino.c | 1 + libavfilter/dnn/dnn_backend_tf.c | 1 + libavfilter/dnn/dnn_io_proc.c | 1 + libavfilter/dnn_filter_common.c | 1 + libavfilter/f_drawgraph.c | 1 + libavfilter/f_ebur128.c | 3 +-- libavfilter/f_graphmonitor.c | 2 +- libavfilter/f_loop.c | 1 + libavfilter/f_reverse.c | 1 + libavfilter/f_segment.c | 5 +---- libavfilter/f_sendcmd.c | 1 + libavfilter/f_streamselect.c | 1 + libavfilter/f_zmq.c | 2 +- libavfilter/formats.c | 1 + libavfilter/framequeue.c | 1 + libavfilter/framesync.c | 2 +- libavfilter/graphdump.c | 1 + libavfilter/qrencode.c | 1 + libavfilter/qsvvpp.c | 1 + libavfilter/signature_lookup.c | 1 + libavfilter/src_movie.c | 4 +--- libavfilter/tests/integral.c | 1 + libavfilter/textutils.c | 1 + libavfilter/vaapi_vpp.c | 1 + libavfilter/vaf_spectrumsynth.c | 4 +--- libavfilter/vf_amplify.c | 1 + libavfilter/vf_avgblur.c | 1 + libavfilter/vf_backgroundkey.c | 1 + libavfilter/vf_bilateral.c | 1 + libavfilter/vf_blackdetect.c | 1 + libavfilter/vf_blend.c | 1 + libavfilter/vf_blockdetect.c | 3 ++- libavfilter/vf_blurdetect.c | 3 ++- libavfilter/vf_bm3d.c | 1 + libavfilter/vf_boxblur.c | 2 +- libavfilter/vf_codecview.c | 3 ++- libavfilter/vf_colorchannelmixer.c | 1 + libavfilter/vf_colorconstancy.c | 3 ++- libavfilter/vf_colorcorrect.c | 1 + libavfilter/vf_colorspace.c | 1 + libavfilter/vf_convolution.c | 1 + libavfilter/vf_convolve.c | 1 + libavfilter/vf_coreimage.m | 1 + libavfilter/vf_corr.c | 1 + libavfilter/vf_cover_rect.c | 2 +- libavfilter/vf_cropdetect.c | 1 + libavfilter/vf_curves.c | 1 + libavfilter/vf_datascope.c | 2 +- libavfilter/vf_dblur.c | 1 + libavfilter/vf_dctdnoiz.c | 1 + libavfilter/vf_deband.c | 1 + libavfilter/vf_decimate.c | 2 +- libavfilter/vf_deflicker.c | 1 + libavfilter/vf_dejudder.c | 3 +-- libavfilter/vf_dnn_classify.c | 1 + libavfilter/vf_dnn_detect.c | 1 + libavfilter/vf_drawtext.c | 1 + libavfilter/vf_edgedetect.c | 1 + libavfilter/vf_elbg.c | 1 + libavfilter/vf_entropy.c | 1 + libavfilter/vf_fftdnoiz.c | 1 + libavfilter/vf_fftfilt.c | 2 +- libavfilter/vf_fieldmatch.c | 1 + libavfilter/vf_find_rect.c | 2 +- libavfilter/vf_floodfill.c | 1 + libavfilter/vf_fspp.c | 1 + libavfilter/vf_fsync.c | 1 + libavfilter/vf_gblur.c | 1 + libavfilter/vf_gblur_vulkan.c | 1 + libavfilter/vf_geq.c | 1 + libavfilter/vf_gradfun.c | 1 + libavfilter/vf_grayworld.c | 1 + libavfilter/vf_guided.c | 1 + libavfilter/vf_hqdn3d.c | 1 + libavfilter/vf_hue.c | 1 + libavfilter/vf_hysteresis.c | 1 + libavfilter/vf_identity.c | 1 + libavfilter/vf_kerndeint.c | 1 + libavfilter/vf_lagfun.c | 1 + libavfilter/vf_lenscorrection.c | 2 +- libavfilter/vf_lensfun.c | 1 + libavfilter/vf_libopencv.c | 1 + libavfilter/vf_libplacebo.c | 1 + libavfilter/vf_libvmaf.c | 1 + libavfilter/vf_lut.c | 1 + libavfilter/vf_lut2.c | 2 +- libavfilter/vf_lut3d.c | 1 + libavfilter/vf_median.c | 1 + libavfilter/vf_mestimate.c | 1 + libavfilter/vf_midequalizer.c | 1 + libavfilter/vf_minterpolate.c | 1 + libavfilter/vf_mix.c | 2 +- libavfilter/vf_morpho.c | 1 + libavfilter/vf_nlmeans.c | 1 + libavfilter/vf_nlmeans_vulkan.c | 1 + libavfilter/vf_nnedi.c | 1 + libavfilter/vf_noise.c | 2 +- libavfilter/vf_normalize.c | 1 + libavfilter/vf_overlay_qsv.c | 4 +--- libavfilter/vf_owdenoise.c | 1 + libavfilter/vf_palettegen.c | 1 + libavfilter/vf_paletteuse.c | 1 + libavfilter/vf_perspective.c | 1 + libavfilter/vf_pixdesctest.c | 1 + libavfilter/vf_pp.c | 1 + libavfilter/vf_pp7.c | 1 + libavfilter/vf_psnr.c | 1 + libavfilter/vf_pullup.c | 1 + libavfilter/vf_readeia608.c | 1 + libavfilter/vf_removelogo.c | 1 + libavfilter/vf_sab.c | 1 + libavfilter/vf_scale.c | 4 +--- libavfilter/vf_scale_npp.c | 1 + libavfilter/vf_shuffleframes.c | 1 + libavfilter/vf_shufflepixels.c | 2 +- libavfilter/vf_signalstats.c | 1 + libavfilter/vf_signature.c | 1 + libavfilter/vf_siti.c | 1 + libavfilter/vf_spp.c | 1 + libavfilter/vf_ssim.c | 1 + libavfilter/vf_ssim360.c | 1 + libavfilter/vf_stack.c | 1 + libavfilter/vf_stack_qsv.c | 1 + libavfilter/vf_subtitles.c | 4 +--- libavfilter/vf_swaprect.c | 2 +- libavfilter/vf_thumbnail.c | 1 + libavfilter/vf_thumbnail_cuda.c | 1 + libavfilter/vf_tiltandshift.c | 4 +--- libavfilter/vf_tinterlace.c | 1 + libavfilter/vf_tmidequalizer.c | 1 + libavfilter/vf_uspp.c | 1 + libavfilter/vf_v360.c | 2 +- libavfilter/vf_vaguedenoiser.c | 1 + libavfilter/vf_varblur.c | 1 + libavfilter/vf_vectorscope.c | 2 +- libavfilter/vf_vif.c | 1 + libavfilter/vf_vignette.c | 1 + libavfilter/vf_vmafmotion.c | 1 + libavfilter/vf_w3fdif.c | 1 + libavfilter/vf_waveform.c | 2 +- libavfilter/vf_xmedian.c | 1 + libavfilter/vf_yaepblur.c | 1 + libavfilter/vf_zscale.c | 3 +-- libavfilter/video.c | 2 +- libavfilter/vidstabutils.c | 1 + libavfilter/vsrc_cellauto.c | 1 + libavfilter/vsrc_ddagrab.c | 1 + libavfilter/vsrc_life.c | 2 +- libavfilter/vsrc_mandelbrot.c | 1 + libavfilter/vsrc_testsrc.c | 4 +--- libavfilter/x86/vf_gblur_init.c | 1 + libavformat/4xm.c | 1 + libavformat/aadec.c | 1 + libavformat/aaxdec.c | 1 + libavformat/aiffdec.c | 1 + libavformat/ape.c | 1 + libavformat/apetag.c | 1 + libavformat/apngdec.c | 1 + libavformat/apngenc.c | 1 + libavformat/asf.c | 1 + libavformat/asfdec_f.c | 1 + libavformat/asfdec_o.c | 1 + libavformat/asfenc.c | 1 + libavformat/assenc.c | 1 + libavformat/au.c | 1 + libavformat/avc.c | 2 +- libavformat/avidec.c | 1 + libavformat/avienc.c | 2 +- libavformat/avio.c | 1 + libavformat/aviobuf.c | 1 + libavformat/avisynth.c | 3 +-- libavformat/bethsoftvid.c | 1 + libavformat/bmv.c | 1 + libavformat/brstm.c | 1 + libavformat/cache.c | 1 + libavformat/cafdec.c | 1 + libavformat/cafenc.c | 1 + libavformat/cinedec.c | 1 + libavformat/concatdec.c | 1 + libavformat/crypto.c | 1 + libavformat/dashdec.c | 1 + libavformat/dashenc.c | 1 + libavformat/data_uri.c | 1 + libavformat/demux.c | 1 + libavformat/demux_utils.c | 2 +- libavformat/dhav.c | 1 + libavformat/dovi_isom.c | 1 + libavformat/dss.c | 1 + libavformat/dtshddec.c | 1 + libavformat/dump.c | 1 + libavformat/dv.c | 1 + libavformat/evc.c | 4 +--- libavformat/ffmetadec.c | 1 + libavformat/file.c | 1 + libavformat/fitsenc.c | 2 +- libavformat/flacdec.c | 1 + libavformat/flvdec.c | 2 +- libavformat/flvenc.c | 1 + libavformat/format.c | 3 +-- libavformat/ftp.c | 1 + libavformat/gxfenc.c | 1 + libavformat/hashenc.c | 1 + libavformat/hdsenc.c | 1 + libavformat/hevc.c | 1 + libavformat/hls.c | 1 + libavformat/hls_sample_encryption.c | 1 + libavformat/hlsenc.c | 1 + libavformat/hlsproto.c | 1 + libavformat/http.c | 1 + libavformat/httpauth.c | 1 + libavformat/iamf_parse.c | 2 +- libavformat/iamf_reader.c | 1 + libavformat/icecast.c | 2 +- libavformat/icodec.c | 1 + libavformat/icoenc.c | 2 +- libavformat/id3v2.c | 1 + libavformat/iff.c | 1 + libavformat/imf_cpl.c | 2 +- libavformat/imfdec.c | 2 +- libavformat/img2dec.c | 2 +- libavformat/ipfsgateway.c | 1 + libavformat/jvdec.c | 1 + libavformat/lafdec.c | 1 + libavformat/libamqp.c | 3 +-- libavformat/libgme.c | 3 +-- libavformat/libmodplug.c | 1 + libavformat/libopenmpt.c | 2 +- libavformat/libsmbclient.c | 1 + libavformat/libsrt.c | 1 + libavformat/libssh.c | 1 + libavformat/matroskadec.c | 1 + libavformat/matroskaenc.c | 1 + libavformat/mlvdec.c | 1 + libavformat/mms.c | 1 + libavformat/mmsh.c | 3 ++- libavformat/mmst.c | 2 +- libavformat/mov.c | 1 + libavformat/mov_chan.c | 1 + libavformat/movenc.c | 3 +-- libavformat/movenc_ttml.c | 1 + libavformat/movenccenc.c | 1 + libavformat/movenchint.c | 1 + libavformat/mp3enc.c | 1 + libavformat/mpc.c | 1 + libavformat/mpc8.c | 1 + libavformat/mpeg.c | 1 + libavformat/mpegenc.c | 1 + libavformat/mpegts.c | 4 +--- libavformat/mpegtsenc.c | 1 + libavformat/mpjpegdec.c | 1 + libavformat/mtv.c | 2 +- libavformat/mux.c | 1 + libavformat/mvdec.c | 1 + libavformat/mxfdec.c | 1 + libavformat/mxfenc.c | 1 + libavformat/mxg.c | 1 + libavformat/nsvdec.c | 1 + libavformat/nut.c | 1 + libavformat/nutdec.c | 1 + libavformat/nutenc.c | 1 + libavformat/oggdec.c | 1 + libavformat/oggenc.c | 1 + libavformat/oggparsecelt.c | 1 + libavformat/oggparsedirac.c | 1 + libavformat/oggparseopus.c | 1 + libavformat/oggparsespeex.c | 1 + libavformat/oggparsetheora.c | 2 +- libavformat/oggparsevorbis.c | 1 + libavformat/omadec.c | 1 + libavformat/options.c | 1 + libavformat/os_support.c | 1 + libavformat/os_support.h | 1 + libavformat/paf.c | 1 + libavformat/pcmdec.c | 1 + libavformat/pdvdec.c | 1 + libavformat/pmpdec.c | 1 + libavformat/pp_bnk.c | 1 + libavformat/prompeg.c | 3 +-- libavformat/rdt.c | 1 + libavformat/realtextdec.c | 2 +- libavformat/riffdec.c | 1 + libavformat/rl2.c | 1 + libavformat/rmdec.c | 1 + libavformat/rtmphttp.c | 3 +-- libavformat/rtmppkt.c | 3 +-- libavformat/rtmpproto.c | 1 + libavformat/rtpdec.c | 1 + libavformat/rtpdec_asf.c | 1 + libavformat/rtpdec_h264.c | 1 + libavformat/rtpdec_hevc.c | 1 + libavformat/rtpdec_latm.c | 1 + libavformat/rtpdec_mpa_robust.c | 1 + libavformat/rtpdec_mpeg4.c | 1 + libavformat/rtpdec_qt.c | 1 + libavformat/rtpdec_rfc4175.c | 1 + libavformat/rtpdec_xiph.c | 1 + libavformat/rtpenc.c | 1 + libavformat/rtpenc_mpegts.c | 1 + libavformat/rtpproto.c | 2 +- libavformat/rtsp.c | 1 + libavformat/rtspdec.c | 1 + libavformat/rtspenc.c | 1 + libavformat/sapdec.c | 1 + libavformat/sapenc.c | 1 + libavformat/sauce.c | 2 +- libavformat/sbgdec.c | 1 + libavformat/scd.c | 6 ++++-- libavformat/sdp.c | 1 + libavformat/seek.c | 1 + libavformat/segafilm.c | 2 +- libavformat/segment.c | 1 + libavformat/sierravmd.c | 1 + libavformat/smacker.c | 1 + libavformat/smjpegdec.c | 2 +- libavformat/smoothstreamingenc.c | 1 + libavformat/soxdec.c | 1 + libavformat/spdifenc.c | 1 + libavformat/srtp.c | 1 + libavformat/subtitles.c | 1 + libavformat/swfdec.c | 1 + libavformat/takdec.c | 1 + libavformat/tcp.c | 2 +- libavformat/tee.c | 1 + libavformat/tests/movenc.c | 1 + libavformat/tiertexseq.c | 1 + libavformat/tls.c | 3 +-- libavformat/tls_mbedtls.c | 1 + libavformat/tls_openssl.c | 1 + libavformat/tls_schannel.c | 1 + libavformat/tls_securetransport.c | 1 + libavformat/ty.c | 1 + libavformat/udp.c | 2 +- libavformat/usmdec.c | 1 + libavformat/utils.c | 1 + libavformat/vapoursynth.c | 1 + libavformat/vividas.c | 1 + libavformat/vqf.c | 3 ++- libavformat/vvc.c | 1 + libavformat/wavdec.c | 1 + libavformat/wavenc.c | 1 + libavformat/wc3movie.c | 1 + libavformat/webm_chunk.c | 1 + libavformat/webmdashenc.c | 1 + libavformat/wsddec.c | 2 +- libavformat/wtvdec.c | 1 + libavformat/wtvenc.c | 1 + libavformat/xmv.c | 1 + libavformat/xwma.c | 1 + libavutil/channel_layout.c | 1 + libavutil/common.h | 3 ++- libavutil/detection_bbox.c | 1 + libavutil/eval.c | 3 +-- libavutil/executor.c | 4 +++- libavutil/film_grain_params.c | 1 + libavutil/fixed_dsp.c | 1 + libavutil/hwcontext_d3d11va.c | 1 + libavutil/hwcontext_d3d12va.c | 1 + libavutil/hwcontext_drm.c | 1 + libavutil/hwcontext_dxva2.c | 1 + libavutil/hwcontext_vulkan.c | 2 +- libavutil/imgutils.c | 1 + libavutil/opt.c | 2 +- libavutil/pca.c | 1 + libavutil/tests/dict.c | 2 ++ libavutil/tests/imgutils.c | 1 + libavutil/tests/lfg.c | 1 + libavutil/tests/tea.c | 1 + libavutil/tests/tree.c | 1 + libavutil/tx.c | 1 + libavutil/tx_template.c | 2 ++ libavutil/vulkan.c | 1 + libavutil/x86/tx_float_init.c | 1 + libpostproc/postprocess.c | 12 ++++++------ libswresample/audioconvert.c | 2 +- libswresample/dither.c | 1 + libswresample/options.c | 1 + libswresample/rematrix.c | 1 + libswresample/resample.c | 2 +- libswresample/swresample.c | 1 + libswresample/x86/rematrix_init.c | 1 + libswscale/gamma.c | 1 + libswscale/hscale.c | 1 + libswscale/slice.c | 1 + libswscale/swscale.c | 1 + libswscale/utils.c | 1 + libswscale/vscale.c | 1 + libswscale/yuv2rgb.c | 7 +++---- tests/api/api-band-test.c | 1 + tests/api/api-flac-test.c | 1 + tests/api/api-h264-slice-test.c | 1 + tests/api/api-h264-test.c | 1 + tests/api/api-seek-test.c | 1 + tests/api/api-threadmessage-test.c | 1 + tests/checkasm/av_tx.c | 1 + tests/checkasm/float_dsp.c | 1 + tests/checkasm/sw_scale.c | 1 + tests/checkasm/vc1dsp.c | 1 + tests/checkasm/vf_blend.c | 1 + tests/checkasm/vf_gblur.c | 1 + tests/checkasm/vf_nlmeans.c | 1 + tools/crypto_bench.c | 1 + tools/enc_recon_frame_test.c | 1 + tools/ismindex.c | 1 + tools/probetest.c | 1 + tools/sidxindex.c | 1 + tools/target_bsf_fuzzer.c | 1 + tools/target_dec_fuzzer.c | 1 + tools/target_dem_fuzzer.c | 1 + tools/target_sws_fuzzer.c | 1 + tools/uncoded_frame.c | 1 + 876 files changed, 903 insertions(+), 289 deletions(-) diff --git a/compat/w32dlfcn.h b/compat/w32dlfcn.h index fb1aa1b72e..ac20e83a7a 100644 --- a/compat/w32dlfcn.h +++ b/compat/w32dlfcn.h @@ -26,6 +26,7 @@ #include "config.h" #include "libavutil/macros.h" +#include "libavutil/mem.h" #include "libavutil/wchar_filename.h" static inline wchar_t *get_module_filename(HMODULE module) diff --git a/doc/examples/avio_read_callback.c b/doc/examples/avio_read_callback.c index 4cf81ad72e..dffc061d9f 100644 --- a/doc/examples/avio_read_callback.c +++ b/doc/examples/avio_read_callback.c @@ -32,6 +32,7 @@ #include #include #include +#include struct buffer_data { uint8_t *ptr; diff --git a/doc/examples/decode_filter_audio.c b/doc/examples/decode_filter_audio.c index 196f0801c4..d637ca1724 100644 --- a/doc/examples/decode_filter_audio.c +++ b/doc/examples/decode_filter_audio.c @@ -37,6 +37,7 @@ #include #include #include +#include #include static const char *filter_descr = "aresample=8000,aformat=sample_fmts=s16:channel_layouts=mono"; diff --git a/doc/examples/decode_filter_video.c b/doc/examples/decode_filter_video.c index a57e6dfd20..b91ca56d4e 100644 --- a/doc/examples/decode_filter_video.c +++ b/doc/examples/decode_filter_video.c @@ -36,6 +36,7 @@ #include #include #include +#include #include const char *filter_descr = "scale=78:24,transpose=cclock"; diff --git a/doc/examples/hw_decode.c b/doc/examples/hw_decode.c index 6a4a4fb83d..ac4e445505 100644 --- a/doc/examples/hw_decode.c +++ b/doc/examples/hw_decode.c @@ -35,6 +35,7 @@ #include #include +#include #include #include #include diff --git a/doc/examples/qsv_transcode.c b/doc/examples/qsv_transcode.c index 972126800b..8e7d2899f1 100644 --- a/doc/examples/qsv_transcode.c +++ b/doc/examples/qsv_transcode.c @@ -38,6 +38,7 @@ #include #include +#include #include #include #include diff --git a/doc/examples/remux.c b/doc/examples/remux.c index ecf30489f1..1f002987c5 100644 --- a/doc/examples/remux.c +++ b/doc/examples/remux.c @@ -28,6 +28,7 @@ * input to the output without transcoding. */ +#include #include #include diff --git a/doc/examples/transcode.c b/doc/examples/transcode.c index a544ec0340..cbe5088ef6 100644 --- a/doc/examples/transcode.c +++ b/doc/examples/transcode.c @@ -35,6 +35,7 @@ #include #include #include +#include #include #include diff --git a/doc/examples/transcode_aac.c b/doc/examples/transcode_aac.c index 84caf612ac..20de08d93b 100644 --- a/doc/examples/transcode_aac.c +++ b/doc/examples/transcode_aac.c @@ -29,6 +29,7 @@ #include +#include #include #include diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c index 1bb26f44f4..2120fc7935 100644 --- a/fftools/cmdutils.c +++ b/fftools/cmdutils.c @@ -33,17 +33,14 @@ #include "compat/va_copy.h" #include "libavformat/avformat.h" #include "libswscale/swscale.h" -#include "libswscale/version.h" #include "libswresample/swresample.h" #include "libavutil/avassert.h" #include "libavutil/avstring.h" #include "libavutil/bprint.h" -#include "libavutil/channel_layout.h" #include "libavutil/display.h" #include "libavutil/getenv_utf8.h" -#include "libavutil/mathematics.h" -#include "libavutil/imgutils.h" #include "libavutil/libm.h" +#include "libavutil/mem.h" #include "libavutil/parseutils.h" #include "libavutil/eval.h" #include "libavutil/dict.h" diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 5e00d5b645..0ee76d69b5 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -68,40 +68,19 @@ #include #endif -#include "libavutil/avassert.h" -#include "libavutil/avstring.h" #include "libavutil/bprint.h" -#include "libavutil/channel_layout.h" #include "libavutil/dict.h" -#include "libavutil/display.h" -#include "libavutil/fifo.h" -#include "libavutil/hwcontext.h" -#include "libavutil/imgutils.h" -#include "libavutil/intreadwrite.h" -#include "libavutil/libm.h" -#include "libavutil/mathematics.h" -#include "libavutil/opt.h" -#include "libavutil/parseutils.h" -#include "libavutil/pixdesc.h" -#include "libavutil/samplefmt.h" -#include "libavutil/thread.h" -#include "libavutil/threadmessage.h" +#include "libavutil/mem.h" #include "libavutil/time.h" -#include "libavutil/timestamp.h" - -#include "libavcodec/version.h" #include "libavformat/avformat.h" #include "libavdevice/avdevice.h" -#include "libswresample/swresample.h" - #include "cmdutils.h" #include "ffmpeg.h" #include "ffmpeg_sched.h" #include "ffmpeg_utils.h" -#include "sync_queue.h" const char program_name[] = "ffmpeg"; const int program_birth_year = 2000; diff --git a/fftools/ffmpeg_dec.c b/fftools/ffmpeg_dec.c index e3ed0b3978..70de151301 100644 --- a/fftools/ffmpeg_dec.c +++ b/fftools/ffmpeg_dec.c @@ -21,6 +21,7 @@ #include "libavutil/dict.h" #include "libavutil/error.h" #include "libavutil/log.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "libavutil/pixfmt.h" @@ -30,11 +31,7 @@ #include "libavcodec/avcodec.h" #include "libavcodec/codec.h" -#include "libavfilter/buffersrc.h" - #include "ffmpeg.h" -#include "ffmpeg_utils.h" -#include "thread_queue.h" typedef struct DecoderPriv { Decoder dec; diff --git a/fftools/ffmpeg_demux.c b/fftools/ffmpeg_demux.c index d815dd3696..cba63dab5f 100644 --- a/fftools/ffmpeg_demux.c +++ b/fftools/ffmpeg_demux.c @@ -28,6 +28,7 @@ #include "libavutil/display.h" #include "libavutil/error.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/parseutils.h" #include "libavutil/pixdesc.h" diff --git a/fftools/ffmpeg_enc.c b/fftools/ffmpeg_enc.c index 6161e8e3d5..d1d1526830 100644 --- a/fftools/ffmpeg_enc.c +++ b/fftools/ffmpeg_enc.c @@ -20,8 +20,6 @@ #include #include "ffmpeg.h" -#include "ffmpeg_utils.h" -#include "thread_queue.h" #include "libavutil/avassert.h" #include "libavutil/avstring.h" @@ -32,6 +30,7 @@ #include "libavutil/frame.h" #include "libavutil/intreadwrite.h" #include "libavutil/log.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "libavutil/rational.h" #include "libavutil/time.h" @@ -39,8 +38,6 @@ #include "libavcodec/avcodec.h" -#include "libavformat/avformat.h" - struct Encoder { // combined size of all the packets received from the encoder uint64_t data_size; diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c index ee49a45c33..2308abf82a 100644 --- a/fftools/ffmpeg_filter.c +++ b/fftools/ffmpeg_filter.c @@ -30,11 +30,10 @@ #include "libavutil/avstring.h" #include "libavutil/bprint.h" #include "libavutil/channel_layout.h" -#include "libavutil/display.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "libavutil/pixfmt.h" -#include "libavutil/imgutils.h" #include "libavutil/samplefmt.h" #include "libavutil/time.h" #include "libavutil/timestamp.h" diff --git a/fftools/ffmpeg_hw.c b/fftools/ffmpeg_hw.c index 8608d24517..5d4c06c28e 100644 --- a/fftools/ffmpeg_hw.c +++ b/fftools/ffmpeg_hw.c @@ -18,9 +18,7 @@ #include -#include "libavutil/avstring.h" -#include "libavutil/pixdesc.h" -#include "libavfilter/buffersink.h" +#include "libavutil/mem.h" #include "ffmpeg.h" diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c index 4b3f9789ba..f764da1ed4 100644 --- a/fftools/ffmpeg_opt.c +++ b/fftools/ffmpeg_opt.c @@ -31,7 +31,6 @@ #include "ffmpeg_sched.h" #include "cmdutils.h" #include "opt_common.h" -#include "sync_queue.h" #include "libavformat/avformat.h" @@ -43,16 +42,10 @@ #include "libavutil/avassert.h" #include "libavutil/avstring.h" #include "libavutil/avutil.h" -#include "libavutil/bprint.h" -#include "libavutil/channel_layout.h" -#include "libavutil/display.h" -#include "libavutil/intreadwrite.h" -#include "libavutil/fifo.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/parseutils.h" -#include "libavutil/pixdesc.h" -#include "libavutil/pixfmt.h" HWDevice *filter_hw_device; diff --git a/fftools/ffplay.c b/fftools/ffplay.c index fcd1319ce7..d4300d5d46 100644 --- a/fftools/ffplay.c +++ b/fftools/ffplay.c @@ -25,7 +25,6 @@ #include "config.h" #include "config_components.h" -#include #include #include #include @@ -33,13 +32,11 @@ #include "libavutil/avstring.h" #include "libavutil/channel_layout.h" -#include "libavutil/eval.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" -#include "libavutil/imgutils.h" #include "libavutil/dict.h" #include "libavutil/fifo.h" -#include "libavutil/parseutils.h" #include "libavutil/samplefmt.h" #include "libavutil/time.h" #include "libavutil/bprint.h" diff --git a/fftools/ffplay_renderer.c b/fftools/ffplay_renderer.c index 73072a2851..80b700b3c5 100644 --- a/fftools/ffplay_renderer.c +++ b/fftools/ffplay_renderer.c @@ -42,6 +42,7 @@ #include #include "libavutil/bprint.h" +#include "libavutil/mem.h" #endif diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index 7d9998b428..0d4cd0b048 100644 --- a/fftools/ffprobe.c +++ b/fftools/ffprobe.c @@ -46,6 +46,7 @@ #include "libavutil/mastering_display_metadata.h" #include "libavutil/hdr_dynamic_vivid_metadata.h" #include "libavutil/dovi_meta.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "libavutil/spherical.h" diff --git a/fftools/fopen_utf8.h b/fftools/fopen_utf8.h index e5be84179a..1cfd158185 100644 --- a/fftools/fopen_utf8.h +++ b/fftools/fopen_utf8.h @@ -27,6 +27,7 @@ * CRT, and FILE* handles can't be shared across them.) */ #ifdef _WIN32 +#include "libavutil/mem.h" #include "libavutil/wchar_filename.h" static inline FILE *fopen_utf8(const char *path_utf8, const char *mode) diff --git a/libavcodec/4xm.c b/libavcodec/4xm.c index cfe65c178a..fd3a45f093 100644 --- a/libavcodec/4xm.c +++ b/libavcodec/4xm.c @@ -30,6 +30,7 @@ #include "libavutil/frame.h" #include "libavutil/imgutils.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/thread.h" #include "avcodec.h" diff --git a/libavcodec/8svx.c b/libavcodec/8svx.c index 0a6d311cf1..43567df3d7 100644 --- a/libavcodec/8svx.c +++ b/libavcodec/8svx.c @@ -40,6 +40,7 @@ #include "config_components.h" #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "codec_internal.h" #include "decode.h" diff --git a/libavcodec/a64multienc.c b/libavcodec/a64multienc.c index 26a9debc22..38edbe3a77 100644 --- a/libavcodec/a64multienc.c +++ b/libavcodec/a64multienc.c @@ -32,8 +32,8 @@ #include "elbg.h" #include "encode.h" #include "libavutil/avassert.h" -#include "libavutil/common.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #define DITHERSTEPS 8 #define CHARSET_CHARS 256 diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c index 97e51dd72a..b4870a6b1f 100644 --- a/libavcodec/aacdec.c +++ b/libavcodec/aacdec.c @@ -36,6 +36,7 @@ #define TX_TYPE AV_TX_FLOAT_MDCT #include "libavutil/float_dsp.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avcodec.h" #include "codec_internal.h" diff --git a/libavcodec/aacdec_template.c b/libavcodec/aacdec_template.c index aa856d7fe1..b2f069f83a 100644 --- a/libavcodec/aacdec_template.c +++ b/libavcodec/aacdec_template.c @@ -90,6 +90,7 @@ */ #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "libavutil/thread.h" #include "decode.h" #include "internal.h" diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c index 55fa307809..7feb723289 100644 --- a/libavcodec/aacenc.c +++ b/libavcodec/aacenc.c @@ -33,6 +33,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/libm.h" #include "libavutil/float_dsp.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avcodec.h" #include "codec_internal.h" diff --git a/libavcodec/aacpsy.c b/libavcodec/aacpsy.c index 1fbd259e51..84c8375d3f 100644 --- a/libavcodec/aacpsy.c +++ b/libavcodec/aacpsy.c @@ -26,6 +26,7 @@ #include "libavutil/attributes.h" #include "libavutil/ffmath.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "aac.h" diff --git a/libavcodec/ac3_parser.c b/libavcodec/ac3_parser.c index 13b8d3b7d8..4152fd4e01 100644 --- a/libavcodec/ac3_parser.c +++ b/libavcodec/ac3_parser.c @@ -20,10 +20,10 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "config.h" #include "config_components.h" #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "parser.h" #include "ac3defs.h" #include "ac3tab.h" diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c index 504c75cdd4..2d7e11c5b8 100644 --- a/libavcodec/ac3dec.c +++ b/libavcodec/ac3dec.c @@ -35,6 +35,7 @@ #include "libavutil/crc.h" #include "libavutil/downmix_info.h" #include "libavutil/intmath.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/thread.h" #include "bswapdsp.h" diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c index ff43088df5..7a6bcf7900 100644 --- a/libavcodec/ac3enc.c +++ b/libavcodec/ac3enc.c @@ -35,6 +35,7 @@ #include "libavutil/crc.h" #include "libavutil/emms.h" #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/opt.h" #include "libavutil/thread.h" diff --git a/libavcodec/ac3enc_fixed.c b/libavcodec/ac3enc_fixed.c index a9bbb0a04e..c399d6cd09 100644 --- a/libavcodec/ac3enc_fixed.c +++ b/libavcodec/ac3enc_fixed.c @@ -27,6 +27,7 @@ */ #define AC3ENC_FLOAT 0 +#include "libavutil/mem.h" #include "audiodsp.h" #include "ac3enc.h" #include "codec_internal.h" diff --git a/libavcodec/ac3enc_float.c b/libavcodec/ac3enc_float.c index 3462c5f474..24960f318b 100644 --- a/libavcodec/ac3enc_float.c +++ b/libavcodec/ac3enc_float.c @@ -27,6 +27,7 @@ */ #define AC3ENC_FLOAT 1 +#include "libavutil/mem.h" #include "audiodsp.h" #include "ac3enc.h" #include "codec_internal.h" diff --git a/libavcodec/ac3enc_template.c b/libavcodec/ac3enc_template.c index 34d07cc9e5..45dbc98804 100644 --- a/libavcodec/ac3enc_template.c +++ b/libavcodec/ac3enc_template.c @@ -32,6 +32,7 @@ #include "libavutil/attributes.h" #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "audiodsp.h" diff --git a/libavcodec/adpcmenc.c b/libavcodec/adpcmenc.c index 63afffc58f..4d7534e47f 100644 --- a/libavcodec/adpcmenc.c +++ b/libavcodec/adpcmenc.c @@ -24,6 +24,7 @@ #include "config_components.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avcodec.h" diff --git a/libavcodec/adts_parser.c b/libavcodec/adts_parser.c index f2e155fc99..6c22c86ef2 100644 --- a/libavcodec/adts_parser.c +++ b/libavcodec/adts_parser.c @@ -21,6 +21,7 @@ #include #include +#include "libavutil/mem.h" #include "adts_header.h" #include "adts_parser.h" diff --git a/libavcodec/agm.c b/libavcodec/agm.c index 88272cc3aa..fdf896d61a 100644 --- a/libavcodec/agm.c +++ b/libavcodec/agm.c @@ -24,6 +24,7 @@ #define BITSTREAM_READER_LE +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "avcodec.h" diff --git a/libavcodec/aic.c b/libavcodec/aic.c index f8b0f60354..440c399049 100644 --- a/libavcodec/aic.c +++ b/libavcodec/aic.c @@ -22,6 +22,7 @@ #include +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "avcodec.h" diff --git a/libavcodec/alac.c b/libavcodec/alac.c index 538d1e5984..f91288e97c 100644 --- a/libavcodec/alac.c +++ b/libavcodec/alac.c @@ -48,6 +48,7 @@ #include #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avcodec.h" #include "get_bits.h" diff --git a/libavcodec/alacenc.c b/libavcodec/alacenc.c index f43adb57f9..caac624217 100644 --- a/libavcodec/alacenc.c +++ b/libavcodec/alacenc.c @@ -19,6 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avcodec.h" diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c index c64d1032a4..be72994432 100644 --- a/libavcodec/alsdec.c +++ b/libavcodec/alsdec.c @@ -37,10 +37,10 @@ #include "decode.h" #include "internal.h" #include "mlz.h" +#include "libavutil/mem.h" #include "libavutil/samplefmt.h" #include "libavutil/crc.h" #include "libavutil/softfloat_ieee754.h" -#include "libavutil/intfloat.h" #include "libavutil/intreadwrite.h" #include diff --git a/libavcodec/amfenc_av1.c b/libavcodec/amfenc_av1.c index 3878f0d461..9f18aac648 100644 --- a/libavcodec/amfenc_av1.c +++ b/libavcodec/amfenc_av1.c @@ -17,10 +17,10 @@ */ #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "amfenc.h" #include "codec_internal.h" -#include "internal.h" #define OFFSET(x) offsetof(AmfContext, x) #define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM diff --git a/libavcodec/amfenc_h264.c b/libavcodec/amfenc_h264.c index c1d5f4054e..abfac2a90f 100644 --- a/libavcodec/amfenc_h264.c +++ b/libavcodec/amfenc_h264.c @@ -18,10 +18,10 @@ #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "amfenc.h" #include "codec_internal.h" -#include "internal.h" #include #define OFFSET(x) offsetof(AmfContext, x) diff --git a/libavcodec/amfenc_hevc.c b/libavcodec/amfenc_hevc.c index 33a167aa52..0a74ccd6c4 100644 --- a/libavcodec/amfenc_hevc.c +++ b/libavcodec/amfenc_hevc.c @@ -17,10 +17,10 @@ */ #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "amfenc.h" #include "codec_internal.h" -#include "internal.h" #include #define OFFSET(x) offsetof(AmfContext, x) diff --git a/libavcodec/apac.c b/libavcodec/apac.c index b6cb6c669e..f740fb5553 100644 --- a/libavcodec/apac.c +++ b/libavcodec/apac.c @@ -19,8 +19,7 @@ */ #include "libavutil/audio_fifo.h" -#include "libavutil/internal.h" -#include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "codec_internal.h" #include "decode.h" diff --git a/libavcodec/apedec.c b/libavcodec/apedec.c index 0f48bdff77..86b79182a7 100644 --- a/libavcodec/apedec.c +++ b/libavcodec/apedec.c @@ -25,6 +25,7 @@ #include "libavutil/avassert.h" #include "libavutil/channel_layout.h" #include "libavutil/crc.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "lossless_audiodsp.h" #include "avcodec.h" diff --git a/libavcodec/ass.c b/libavcodec/ass.c index 5058dc8337..5ff4ac8e07 100644 --- a/libavcodec/ass.c +++ b/libavcodec/ass.c @@ -23,7 +23,7 @@ #include "ass.h" #include "libavutil/avstring.h" #include "libavutil/bprint.h" -#include "libavutil/common.h" +#include "libavutil/mem.h" #include "version.h" int ff_ass_subtitle_header_full(AVCodecContext *avctx, diff --git a/libavcodec/atrac1.c b/libavcodec/atrac1.c index 1309bb95a2..cdcc7a669e 100644 --- a/libavcodec/atrac1.c +++ b/libavcodec/atrac1.c @@ -31,6 +31,7 @@ #include #include "libavutil/float_dsp.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/tx.h" diff --git a/libavcodec/atrac3.c b/libavcodec/atrac3.c index fad2299aaf..39ddfd9e45 100644 --- a/libavcodec/atrac3.c +++ b/libavcodec/atrac3.c @@ -38,6 +38,7 @@ #include "libavutil/attributes.h" #include "libavutil/float_dsp.h" #include "libavutil/libm.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/thread.h" #include "libavutil/tx.h" diff --git a/libavcodec/atrac3plusdec.c b/libavcodec/atrac3plusdec.c index aa4d42f44a..9696a523be 100644 --- a/libavcodec/atrac3plusdec.c +++ b/libavcodec/atrac3plusdec.c @@ -39,6 +39,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/float_dsp.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/thread.h" #include "avcodec.h" diff --git a/libavcodec/atrac9dec.c b/libavcodec/atrac9dec.c index 5b84f0c6d6..df68407af9 100644 --- a/libavcodec/atrac9dec.c +++ b/libavcodec/atrac9dec.c @@ -20,6 +20,7 @@ */ #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "libavutil/thread.h" #include "codec_internal.h" diff --git a/libavcodec/atsc_a53.c b/libavcodec/atsc_a53.c index 29ec71bc5f..1e9ea15ae0 100644 --- a/libavcodec/atsc_a53.c +++ b/libavcodec/atsc_a53.c @@ -19,6 +19,7 @@ #include #include +#include "libavutil/mem.h" #include "atsc_a53.h" #include "get_bits.h" diff --git a/libavcodec/audio_frame_queue.c b/libavcodec/audio_frame_queue.c index 08b4b368c7..10b5d21392 100644 --- a/libavcodec/audio_frame_queue.c +++ b/libavcodec/audio_frame_queue.c @@ -20,7 +20,7 @@ */ #include "libavutil/attributes.h" -#include "libavutil/common.h" +#include "libavutil/mem.h" #include "audio_frame_queue.h" #include "encode.h" #include "libavutil/avassert.h" diff --git a/libavcodec/audiotoolboxdec.c b/libavcodec/audiotoolboxdec.c index 5456f916cf..0f7ce8e4eb 100644 --- a/libavcodec/audiotoolboxdec.c +++ b/libavcodec/audiotoolboxdec.c @@ -32,6 +32,7 @@ #include "mpegaudiodecheader.h" #include "libavutil/avassert.h" #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/log.h" diff --git a/libavcodec/audiotoolboxenc.c b/libavcodec/audiotoolboxenc.c index 2c65101fdc..ad2b863bb9 100644 --- a/libavcodec/audiotoolboxenc.c +++ b/libavcodec/audiotoolboxenc.c @@ -35,6 +35,7 @@ #include "libavformat/isom.h" #include "libavutil/avassert.h" #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/log.h" diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c index 32a795e758..e5088fc7b5 100644 --- a/libavcodec/av1dec.c +++ b/libavcodec/av1dec.c @@ -23,6 +23,7 @@ #include "libavutil/hdr_dynamic_metadata.h" #include "libavutil/film_grain_params.h" #include "libavutil/mastering_display_metadata.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "libavutil/opt.h" #include "avcodec.h" diff --git a/libavcodec/avdct.c b/libavcodec/avdct.c index 37266f4b4e..f995e73eab 100644 --- a/libavcodec/avdct.c +++ b/libavcodec/avdct.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "avcodec.h" #include "idctdsp.h" #include "fdctdsp.h" diff --git a/libavcodec/avuienc.c b/libavcodec/avuienc.c index 8a093d3d19..495f6d36fb 100644 --- a/libavcodec/avuienc.c +++ b/libavcodec/avuienc.c @@ -24,6 +24,7 @@ #include "codec_internal.h" #include "encode.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" static av_cold int avui_encode_init(AVCodecContext *avctx) { diff --git a/libavcodec/bfi.c b/libavcodec/bfi.c index c925efd562..58158f6eee 100644 --- a/libavcodec/bfi.c +++ b/libavcodec/bfi.c @@ -26,7 +26,7 @@ * @see http://wiki.multimedia.cx/index.php?title=BFI */ -#include "libavutil/common.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "bytestream.h" #include "codec_internal.h" diff --git a/libavcodec/bgmc.c b/libavcodec/bgmc.c index 0e41a39e00..97c53a49ce 100644 --- a/libavcodec/bgmc.c +++ b/libavcodec/bgmc.c @@ -26,6 +26,7 @@ */ #include "libavutil/attributes.h" +#include "libavutil/mem.h" #include "bgmc.h" #define FREQ_BITS 14 // bits used by frequency counters diff --git a/libavcodec/bink.c b/libavcodec/bink.c index 804c141981..04fd90aa11 100644 --- a/libavcodec/bink.c +++ b/libavcodec/bink.c @@ -23,7 +23,7 @@ #include "libavutil/attributes.h" #include "libavutil/emms.h" #include "libavutil/imgutils.h" -#include "libavutil/internal.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/thread.h" diff --git a/libavcodec/bonk.c b/libavcodec/bonk.c index 65679e5fb6..14b7457a1a 100644 --- a/libavcodec/bonk.c +++ b/libavcodec/bonk.c @@ -18,14 +18,13 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "libavutil/internal.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "codec_internal.h" #include "decode.h" #define BITSTREAM_READER_LE #include "get_bits.h" -#include "bytestream.h" typedef struct BitCount { uint8_t bit; diff --git a/libavcodec/bsf/dts2pts.c b/libavcodec/bsf/dts2pts.c index 263514faad..53a54fb1cc 100644 --- a/libavcodec/bsf/dts2pts.c +++ b/libavcodec/bsf/dts2pts.c @@ -25,6 +25,7 @@ #include "libavutil/avassert.h" #include "libavutil/fifo.h" +#include "libavutil/mem.h" #include "libavutil/tree.h" #include "bsf.h" diff --git a/libavcodec/bsf/evc_frame_merge.c b/libavcodec/bsf/evc_frame_merge.c index 7b8e6b1c9e..1b52ba2900 100644 --- a/libavcodec/bsf/evc_frame_merge.c +++ b/libavcodec/bsf/evc_frame_merge.c @@ -17,6 +17,7 @@ * License along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "get_bits.h" #include "bsf.h" #include "bsf_internal.h" diff --git a/libavcodec/bsf/extract_extradata.c b/libavcodec/bsf/extract_extradata.c index 5d5d80c90f..c3c98c7d77 100644 --- a/libavcodec/bsf/extract_extradata.c +++ b/libavcodec/bsf/extract_extradata.c @@ -19,6 +19,7 @@ #include #include "libavutil/log.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "av1.h" diff --git a/libavcodec/bsf/filter_units.c b/libavcodec/bsf/filter_units.c index 9aead542cc..029c86048b 100644 --- a/libavcodec/bsf/filter_units.c +++ b/libavcodec/bsf/filter_units.c @@ -18,7 +18,7 @@ #include -#include "libavutil/common.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "bsf.h" diff --git a/libavcodec/bsf/h264_metadata.c b/libavcodec/bsf/h264_metadata.c index 239e82aa3a..477f1b18b6 100644 --- a/libavcodec/bsf/h264_metadata.c +++ b/libavcodec/bsf/h264_metadata.c @@ -19,6 +19,7 @@ #include "libavutil/avstring.h" #include "libavutil/display.h" #include "libavutil/common.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "bsf.h" diff --git a/libavcodec/bsf/noise.c b/libavcodec/bsf/noise.c index 3a0f388dd6..a622855717 100644 --- a/libavcodec/bsf/noise.c +++ b/libavcodec/bsf/noise.c @@ -24,6 +24,7 @@ #include "bsf_internal.h" #include "libavutil/log.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/eval.h" diff --git a/libavcodec/cavs.c b/libavcodec/cavs.c index fdd577f7fb..172cc5cc7a 100644 --- a/libavcodec/cavs.c +++ b/libavcodec/cavs.c @@ -25,6 +25,7 @@ * @author Stefan Gehrer */ +#include "libavutil/mem.h" #include "avcodec.h" #include "golomb.h" #include "h264chroma.h" diff --git a/libavcodec/cavsdec.c b/libavcodec/cavsdec.c index b356da0b04..3cf8c9fb3a 100644 --- a/libavcodec/cavsdec.c +++ b/libavcodec/cavsdec.c @@ -27,6 +27,7 @@ #include "libavutil/avassert.h" #include "libavutil/emms.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "get_bits.h" #include "golomb.h" diff --git a/libavcodec/cbs.c b/libavcodec/cbs.c index de7b1361aa..b26e39eab4 100644 --- a/libavcodec/cbs.c +++ b/libavcodec/cbs.c @@ -23,6 +23,7 @@ #include "libavutil/avassert.h" #include "libavutil/buffer.h" #include "libavutil/common.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avcodec.h" diff --git a/libavcodec/cbs_h2645.c b/libavcodec/cbs_h2645.c index 8e4af7b2cc..fe2e383ff3 100644 --- a/libavcodec/cbs_h2645.c +++ b/libavcodec/cbs_h2645.c @@ -18,6 +18,7 @@ #include "libavutil/attributes.h" #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "bytestream.h" #include "cbs.h" diff --git a/libavcodec/cbs_jpeg.c b/libavcodec/cbs_jpeg.c index 5921d624a1..b1b58dcd65 100644 --- a/libavcodec/cbs_jpeg.c +++ b/libavcodec/cbs_jpeg.c @@ -16,6 +16,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "cbs.h" #include "cbs_internal.h" #include "cbs_jpeg.h" diff --git a/libavcodec/cbs_sei.c b/libavcodec/cbs_sei.c index e28c2f9093..eefa07cf00 100644 --- a/libavcodec/cbs_sei.c +++ b/libavcodec/cbs_sei.c @@ -16,6 +16,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "cbs.h" #include "cbs_internal.h" #include "cbs_h264.h" diff --git a/libavcodec/cdtoons.c b/libavcodec/cdtoons.c index 94c49f0c81..89b6d76d84 100644 --- a/libavcodec/cdtoons.c +++ b/libavcodec/cdtoons.c @@ -29,6 +29,7 @@ #include "libavutil/attributes.h" #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "bytestream.h" #include "codec_internal.h" diff --git a/libavcodec/cdxl.c b/libavcodec/cdxl.c index 6843fceb2f..26f05e6280 100644 --- a/libavcodec/cdxl.c +++ b/libavcodec/cdxl.c @@ -28,6 +28,7 @@ #define UNCHECKED_BITSTREAM_READER 1 #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "bytestream.h" #include "codec_internal.h" diff --git a/libavcodec/cfhd.c b/libavcodec/cfhd.c index 42d7dcc3f6..6f1d960058 100644 --- a/libavcodec/cfhd.c +++ b/libavcodec/cfhd.c @@ -24,9 +24,9 @@ */ #include "libavutil/attributes.h" -#include "libavutil/buffer.h" #include "libavutil/common.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "avcodec.h" diff --git a/libavcodec/cfhdenc.c b/libavcodec/cfhdenc.c index 7169d20a8c..5657d0f96c 100644 --- a/libavcodec/cfhdenc.c +++ b/libavcodec/cfhdenc.c @@ -23,11 +23,11 @@ * Cineform HD video encoder */ -#include -#include +#include -#include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" +#include "libavutil/pixdesc.h" #include "avcodec.h" #include "bytestream.h" @@ -36,7 +36,6 @@ #include "codec_internal.h" #include "encode.h" #include "put_bits.h" -#include "thread.h" /* Derived from existing tables from decoder */ static const unsigned codebook[256][2] = { diff --git a/libavcodec/cinepakenc.c b/libavcodec/cinepakenc.c index f15325ad0d..f6145131a2 100644 --- a/libavcodec/cinepakenc.c +++ b/libavcodec/cinepakenc.c @@ -37,10 +37,9 @@ #include #include "libavutil/avassert.h" -#include "libavutil/common.h" -#include "libavutil/internal.h" #include "libavutil/intreadwrite.h" #include "libavutil/lfg.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avcodec.h" diff --git a/libavcodec/clearvideo.c b/libavcodec/clearvideo.c index 0b59d44cd6..bb1e818c94 100644 --- a/libavcodec/clearvideo.c +++ b/libavcodec/clearvideo.c @@ -24,6 +24,7 @@ * ClearVideo decoder */ +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/thread.h" diff --git a/libavcodec/cllc.c b/libavcodec/cllc.c index 0c6ae13d08..9b07f7c78e 100644 --- a/libavcodec/cllc.c +++ b/libavcodec/cllc.c @@ -23,6 +23,7 @@ #include #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "bswapdsp.h" #include "canopus.h" #include "get_bits.h" diff --git a/libavcodec/cngdec.c b/libavcodec/cngdec.c index 5cf5dc9bcf..bacbd54fab 100644 --- a/libavcodec/cngdec.c +++ b/libavcodec/cngdec.c @@ -23,7 +23,7 @@ #include "libavutil/common.h" #include "libavutil/ffmath.h" -#include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "celp_filters.h" #include "codec_internal.h" diff --git a/libavcodec/cngenc.c b/libavcodec/cngenc.c index 15a410ea50..c430136809 100644 --- a/libavcodec/cngenc.c +++ b/libavcodec/cngenc.c @@ -23,6 +23,7 @@ #include "libavutil/avassert.h" #include "libavutil/common.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "codec_internal.h" #include "encode.h" diff --git a/libavcodec/cook.c b/libavcodec/cook.c index 705213de49..dbe6b5b96c 100644 --- a/libavcodec/cook.c +++ b/libavcodec/cook.c @@ -44,6 +44,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/lfg.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/thread.h" #include "libavutil/tx.h" diff --git a/libavcodec/cscd.c b/libavcodec/cscd.c index 685cf18cec..e552b0a14f 100644 --- a/libavcodec/cscd.c +++ b/libavcodec/cscd.c @@ -22,7 +22,7 @@ #include "avcodec.h" #include "codec_internal.h" #include "decode.h" -#include "libavutil/common.h" +#include "libavutil/mem.h" #if CONFIG_ZLIB #include diff --git a/libavcodec/cuviddec.c b/libavcodec/cuviddec.c index acc405f78a..f88ad75e88 100644 --- a/libavcodec/cuviddec.c +++ b/libavcodec/cuviddec.c @@ -30,6 +30,7 @@ #include "libavutil/cuda_check.h" #include "libavutil/fifo.h" #include "libavutil/log.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" diff --git a/libavcodec/d3d12va_av1.c b/libavcodec/d3d12va_av1.c index 76d9729900..4a4d207b4f 100644 --- a/libavcodec/d3d12va_av1.c +++ b/libavcodec/d3d12va_av1.c @@ -23,6 +23,7 @@ #include "config_components.h" #include "libavutil/avassert.h" #include "libavutil/hwcontext_d3d12va_internal.h" +#include "libavutil/mem.h" #include "av1dec.h" #include "dxva2_internal.h" #include "d3d12va_decode.h" diff --git a/libavcodec/d3d12va_decode.c b/libavcodec/d3d12va_decode.c index af7cf11640..94a3794807 100644 --- a/libavcodec/d3d12va_decode.c +++ b/libavcodec/d3d12va_decode.c @@ -25,6 +25,7 @@ #include "libavutil/common.h" #include "libavutil/log.h" +#include "libavutil/mem.h" #include "libavutil/time.h" #include "libavutil/imgutils.h" #include "libavutil/hwcontext_d3d12va_internal.h" diff --git a/libavcodec/dca_core.c b/libavcodec/dca_core.c index 697fc74295..cb1f7b7bbf 100644 --- a/libavcodec/dca_core.c +++ b/libavcodec/dca_core.c @@ -19,6 +19,7 @@ */ #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "dcaadpcm.h" #include "dcadec.h" #include "dcadata.h" diff --git a/libavcodec/dca_lbr.c b/libavcodec/dca_lbr.c index c9c5c0f856..4996c204e6 100644 --- a/libavcodec/dca_lbr.c +++ b/libavcodec/dca_lbr.c @@ -21,6 +21,7 @@ #define BITSTREAM_READER_LE #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "dcadec.h" diff --git a/libavcodec/dca_xll.c b/libavcodec/dca_xll.c index 15f9bd9196..005a51ed69 100644 --- a/libavcodec/dca_xll.c +++ b/libavcodec/dca_xll.c @@ -20,6 +20,7 @@ #include "avcodec.h" #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "dcadec.h" #include "dcadata.h" #include "dcamath.h" diff --git a/libavcodec/dcaadpcm.c b/libavcodec/dcaadpcm.c index 9f615e3793..1d39da9ffc 100644 --- a/libavcodec/dcaadpcm.c +++ b/libavcodec/dcaadpcm.c @@ -20,6 +20,7 @@ */ +#include "libavutil/mem.h" #include "dcaadpcm.h" #include "dcaenc.h" #include "dca_core.h" diff --git a/libavcodec/dcadec.c b/libavcodec/dcadec.c index 8a62d3b870..86d86ea458 100644 --- a/libavcodec/dcadec.c +++ b/libavcodec/dcadec.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/channel_layout.h" #include "libavutil/thread.h" diff --git a/libavcodec/dcaenc.c b/libavcodec/dcaenc.c index 192121524b..83f13472d3 100644 --- a/libavcodec/dcaenc.c +++ b/libavcodec/dcaenc.c @@ -25,13 +25,13 @@ #include "libavutil/channel_layout.h" #include "libavutil/common.h" #include "libavutil/ffmath.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/opt.h" #include "libavutil/thread.h" #include "libavutil/tx.h" #include "avcodec.h" #include "codec_internal.h" -#include "dca.h" #include "dcaadpcm.h" #include "dcamath.h" #include "dca_core.h" diff --git a/libavcodec/decode.c b/libavcodec/decode.c index ddb73b6934..255347766a 100644 --- a/libavcodec/decode.c +++ b/libavcodec/decode.c @@ -36,6 +36,7 @@ #include "libavutil/imgutils.h" #include "libavutil/internal.h" #include "libavutil/mastering_display_metadata.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "avcodec_internal.h" diff --git a/libavcodec/dirac.c b/libavcodec/dirac.c index 4736304977..7fac7409a5 100644 --- a/libavcodec/dirac.c +++ b/libavcodec/dirac.c @@ -28,6 +28,7 @@ #include "config.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "dirac.h" diff --git a/libavcodec/diracdec.c b/libavcodec/diracdec.c index 24c7df0001..f1fde0b339 100644 --- a/libavcodec/diracdec.c +++ b/libavcodec/diracdec.c @@ -26,6 +26,7 @@ * @author Marco Gerards , David Conrad, Jordi Ortiz */ +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/pixdesc.h" #include "libavutil/thread.h" diff --git a/libavcodec/dnxhddec.c b/libavcodec/dnxhddec.c index 703d0e341c..e549b38720 100644 --- a/libavcodec/dnxhddec.c +++ b/libavcodec/dnxhddec.c @@ -24,6 +24,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/pixdesc.h" diff --git a/libavcodec/dnxhdenc.c b/libavcodec/dnxhdenc.c index 2316083b54..0cb25d7714 100644 --- a/libavcodec/dnxhdenc.c +++ b/libavcodec/dnxhdenc.c @@ -25,6 +25,7 @@ #include "libavutil/attributes.h" #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/opt.h" diff --git a/libavcodec/dovi_rpu.c b/libavcodec/dovi_rpu.c index 31c64fb060..ccd5216500 100644 --- a/libavcodec/dovi_rpu.c +++ b/libavcodec/dovi_rpu.c @@ -22,6 +22,7 @@ */ #include "libavutil/buffer.h" +#include "libavutil/mem.h" #include "dovi_rpu.h" #include "golomb.h" diff --git a/libavcodec/dsddec.c b/libavcodec/dsddec.c index 3962075773..22009c70ef 100644 --- a/libavcodec/dsddec.c +++ b/libavcodec/dsddec.c @@ -26,7 +26,8 @@ * Direct Stream Digital (DSD) decoder */ -#include "libavcodec/internal.h" +#include "libavutil/mem.h" + #include "avcodec.h" #include "codec_internal.h" #include "decode.h" diff --git a/libavcodec/dsicinvideo.c b/libavcodec/dsicinvideo.c index 000d79e169..10b536d405 100644 --- a/libavcodec/dsicinvideo.c +++ b/libavcodec/dsicinvideo.c @@ -24,6 +24,7 @@ * Delphine Software International CIN video decoder */ +#include "libavutil/mem.h" #include "avcodec.h" #include "bytestream.h" #include "codec_internal.h" diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c index bcc607d1d7..4553c45b3d 100644 --- a/libavcodec/dvbsubdec.c +++ b/libavcodec/dvbsubdec.c @@ -26,6 +26,7 @@ #include "decode.h" #include "libavutil/colorspace.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/thread.h" diff --git a/libavcodec/dvdsubdec.c b/libavcodec/dvdsubdec.c index a5da0d7b08..f8769353a0 100644 --- a/libavcodec/dvdsubdec.c +++ b/libavcodec/dvdsubdec.c @@ -28,6 +28,7 @@ #include "libavutil/attributes.h" #include "libavutil/colorspace.h" #include "libavutil/file_open.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/bswap.h" diff --git a/libavcodec/dvdsubenc.c b/libavcodec/dvdsubenc.c index 06c2cf5e5a..c6110c29ff 100644 --- a/libavcodec/dvdsubenc.c +++ b/libavcodec/dvdsubenc.c @@ -25,6 +25,7 @@ #include "libavutil/avassert.h" #include "libavutil/bprint.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" typedef struct { diff --git a/libavcodec/dxa.c b/libavcodec/dxa.c index d33ac3c8b0..59e2411d8e 100644 --- a/libavcodec/dxa.c +++ b/libavcodec/dxa.c @@ -24,8 +24,8 @@ * DXA Video decoder */ -#include "libavutil/common.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "bytestream.h" #include "avcodec.h" #include "codec_internal.h" diff --git a/libavcodec/dxv.c b/libavcodec/dxv.c index b5553a0c86..f130db3a4e 100644 --- a/libavcodec/dxv.c +++ b/libavcodec/dxv.c @@ -23,8 +23,8 @@ #include #include "libavutil/imgutils.h" +#include "libavutil/mem.h" -#include "mathops.h" #include "avcodec.h" #include "bytestream.h" #include "codec_internal.h" diff --git a/libavcodec/dxva2.c b/libavcodec/dxva2.c index 59025633f7..6eb66c02e4 100644 --- a/libavcodec/dxva2.c +++ b/libavcodec/dxva2.c @@ -26,6 +26,7 @@ #include "libavutil/avassert.h" #include "libavutil/common.h" #include "libavutil/log.h" +#include "libavutil/mem.h" #include "libavutil/time.h" #include "avcodec.h" diff --git a/libavcodec/dxva2_av1.c b/libavcodec/dxva2_av1.c index 85d747bca8..184a922fd8 100644 --- a/libavcodec/dxva2_av1.c +++ b/libavcodec/dxva2_av1.c @@ -23,6 +23,7 @@ #include "config_components.h" #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "dxva2_internal.h" diff --git a/libavcodec/dxvenc.c b/libavcodec/dxvenc.c index 91f4ba7619..8229438373 100644 --- a/libavcodec/dxvenc.c +++ b/libavcodec/dxvenc.c @@ -23,6 +23,7 @@ #include "libavutil/crc.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "bytestream.h" diff --git a/libavcodec/eamad.c b/libavcodec/eamad.c index 287575e073..1c3f97653c 100644 --- a/libavcodec/eamad.c +++ b/libavcodec/eamad.c @@ -28,6 +28,7 @@ * http://wiki.multimedia.cx/index.php?title=Electronic_Arts_MAD */ +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "avcodec.h" diff --git a/libavcodec/eatqi.c b/libavcodec/eatqi.c index e4f12b3db2..421ed51009 100644 --- a/libavcodec/eatqi.c +++ b/libavcodec/eatqi.c @@ -26,6 +26,7 @@ * @see http://wiki.multimedia.cx/index.php?title=Electronic_Arts_TQI */ +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "avcodec.h" diff --git a/libavcodec/elbg.c b/libavcodec/elbg.c index a52ee1e3d8..84043af4fd 100644 --- a/libavcodec/elbg.c +++ b/libavcodec/elbg.c @@ -28,6 +28,7 @@ #include "libavutil/avassert.h" #include "libavutil/common.h" #include "libavutil/lfg.h" +#include "libavutil/mem.h" #include "elbg.h" #define DELTA_ERR_MAX 0.1 ///< Precision of the ELBG algorithm (as percentage error) diff --git a/libavcodec/encode.c b/libavcodec/encode.c index 46e46a055e..34658d13d0 100644 --- a/libavcodec/encode.c +++ b/libavcodec/encode.c @@ -25,6 +25,7 @@ #include "libavutil/frame.h" #include "libavutil/imgutils.h" #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "libavutil/samplefmt.h" diff --git a/libavcodec/error_resilience.c b/libavcodec/error_resilience.c index 9d03e53237..efbacb8760 100644 --- a/libavcodec/error_resilience.c +++ b/libavcodec/error_resilience.c @@ -27,13 +27,12 @@ #include -#include "libavutil/internal.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "error_resilience.h" #include "me_cmp.h" #include "mpegutils.h" #include "mpegvideo.h" -#include "rectangle.h" #include "threadframe.h" /** diff --git a/libavcodec/escape124.c b/libavcodec/escape124.c index 357320ef94..b7e26e1326 100644 --- a/libavcodec/escape124.c +++ b/libavcodec/escape124.c @@ -20,6 +20,7 @@ */ #define BITSTREAM_READER_LE +#include "libavutil/mem.h" #include "avcodec.h" #include "codec_internal.h" #include "decode.h" diff --git a/libavcodec/evc_ps.c b/libavcodec/evc_ps.c index 19895d404d..637572d324 100644 --- a/libavcodec/evc_ps.c +++ b/libavcodec/evc_ps.c @@ -16,6 +16,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "get_bits.h" #include "golomb.h" #include "evc.h" diff --git a/libavcodec/exr.c b/libavcodec/exr.c index 5711fbbdcd..0f1f683e7e 100644 --- a/libavcodec/exr.c +++ b/libavcodec/exr.c @@ -40,6 +40,7 @@ #include "libavutil/imgutils.h" #include "libavutil/intfloat.h" #include "libavutil/avstring.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/half2float.h" diff --git a/libavcodec/exrenc.c b/libavcodec/exrenc.c index 1b710fc088..71ec07054e 100644 --- a/libavcodec/exrenc.c +++ b/libavcodec/exrenc.c @@ -27,10 +27,9 @@ #include #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" -#include "libavutil/intreadwrite.h" #include "libavutil/imgutils.h" -#include "libavutil/pixdesc.h" #include "libavutil/float2half.h" #include "avcodec.h" #include "bytestream.h" diff --git a/libavcodec/fastaudio.c b/libavcodec/fastaudio.c index f5569f5206..33ad26f8a1 100644 --- a/libavcodec/fastaudio.c +++ b/libavcodec/fastaudio.c @@ -21,6 +21,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "avcodec.h" #include "bytestream.h" #include "codec_internal.h" diff --git a/libavcodec/faxcompr.c b/libavcodec/faxcompr.c index 41a1eec081..cf744df31c 100644 --- a/libavcodec/faxcompr.c +++ b/libavcodec/faxcompr.c @@ -24,6 +24,7 @@ * CCITT Fax Group 3 and 4 decompression * @author Konstantin Shishkov */ +#include "libavutil/mem.h" #include "libavutil/thread.h" #include "avcodec.h" #include "get_bits.h" diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c index b6204740ed..6ec24fed4a 100644 --- a/libavcodec/ffv1.c +++ b/libavcodec/ffv1.c @@ -27,11 +27,10 @@ #include "libavutil/attributes.h" #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "avcodec.h" -#include "rangecoder.h" #include "ffv1.h" -#include "threadframe.h" av_cold int ff_ffv1_common_init(AVCodecContext *avctx) { diff --git a/libavcodec/ffv1dec.c b/libavcodec/ffv1dec.c index 97877b9106..ba535e800d 100644 --- a/libavcodec/ffv1dec.c +++ b/libavcodec/ffv1dec.c @@ -27,7 +27,7 @@ #include "libavutil/avassert.h" #include "libavutil/crc.h" -#include "libavutil/opt.h" +#include "libavutil/mem.h" #include "libavutil/imgutils.h" #include "libavutil/pixdesc.h" #include "avcodec.h" diff --git a/libavcodec/ffv1enc.c b/libavcodec/ffv1enc.c index e510abf6ff..94d9215acd 100644 --- a/libavcodec/ffv1enc.c +++ b/libavcodec/ffv1enc.c @@ -28,8 +28,8 @@ #include "libavutil/attributes.h" #include "libavutil/avassert.h" #include "libavutil/crc.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" -#include "libavutil/imgutils.h" #include "libavutil/pixdesc.h" #include "avcodec.h" @@ -38,7 +38,6 @@ #include "put_bits.h" #include "put_golomb.h" #include "rangecoder.h" -#include "mathops.h" #include "ffv1.h" static const int8_t quant5_10bit[256] = { diff --git a/libavcodec/ffwavesynth.c b/libavcodec/ffwavesynth.c index b932326fd0..022cb50cd8 100644 --- a/libavcodec/ffwavesynth.c +++ b/libavcodec/ffwavesynth.c @@ -21,6 +21,7 @@ #include "libavutil/intreadwrite.h" #include "libavutil/log.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "codec_internal.h" #include "decode.h" diff --git a/libavcodec/fic.c b/libavcodec/fic.c index fb99802137..ec26e3154d 100644 --- a/libavcodec/fic.c +++ b/libavcodec/fic.c @@ -22,6 +22,7 @@ */ #include "libavutil/common.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/opt.h" #include "avcodec.h" diff --git a/libavcodec/flac_parser.c b/libavcodec/flac_parser.c index bd91cc1a05..47904d515a 100644 --- a/libavcodec/flac_parser.c +++ b/libavcodec/flac_parser.c @@ -34,8 +34,7 @@ #include "libavutil/attributes.h" #include "libavutil/crc.h" -#include "bytestream.h" -#include "parser.h" +#include "libavutil/mem.h" #include "flac_parse.h" /** maximum number of adjacent headers that compare CRCs against each other */ diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c index ed2de14d0a..91bbdc657d 100644 --- a/libavcodec/flacdec.c +++ b/libavcodec/flacdec.c @@ -35,14 +35,13 @@ #include "libavutil/avassert.h" #include "libavutil/crc.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avcodec.h" #include "codec_internal.h" #include "get_bits.h" -#include "bytestream.h" #include "golomb.h" #include "flac.h" -#include "flacdata.h" #include "flacdsp.h" #include "flac_parse.h" #include "thread.h" diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c index 3dc4dc2e4f..e29be5822b 100644 --- a/libavcodec/flacenc.c +++ b/libavcodec/flacenc.c @@ -24,6 +24,7 @@ #include "libavutil/crc.h" #include "libavutil/intmath.h" #include "libavutil/md5.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avcodec.h" diff --git a/libavcodec/flashsv.c b/libavcodec/flashsv.c index fe00e529a5..d27918c923 100644 --- a/libavcodec/flashsv.c +++ b/libavcodec/flashsv.c @@ -39,6 +39,7 @@ #include #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "bytestream.h" #include "codec_internal.h" diff --git a/libavcodec/flashsv2enc.c b/libavcodec/flashsv2enc.c index 6dcb9102a8..6156d00d0d 100644 --- a/libavcodec/flashsv2enc.c +++ b/libavcodec/flashsv2enc.c @@ -47,11 +47,11 @@ #include #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "codec_internal.h" #include "encode.h" #include "put_bits.h" -#include "bytestream.h" #include "zlib_wrapper.h" #define HAS_IFRAME_IMAGE 0x02 diff --git a/libavcodec/fmvc.c b/libavcodec/fmvc.c index 5e26a541ca..30f7aaf6bc 100644 --- a/libavcodec/fmvc.c +++ b/libavcodec/fmvc.c @@ -23,6 +23,7 @@ #include #include +#include "libavutil/mem.h" #include "avcodec.h" #include "bytestream.h" #include "codec_internal.h" diff --git a/libavcodec/frame_thread_encoder.c b/libavcodec/frame_thread_encoder.c index 17712e68ee..6af3db722e 100644 --- a/libavcodec/frame_thread_encoder.c +++ b/libavcodec/frame_thread_encoder.c @@ -24,6 +24,7 @@ #include "libavutil/avassert.h" #include "libavutil/cpu.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/thread.h" #include "avcodec.h" diff --git a/libavcodec/fraps.c b/libavcodec/fraps.c index bed244e4e9..4e45efeba8 100644 --- a/libavcodec/fraps.c +++ b/libavcodec/fraps.c @@ -35,6 +35,7 @@ #define CACHED_BITSTREAM_READER HAVE_FAST_64BIT #define UNCHECKED_BITSTREAM_READER 1 +#include "libavutil/mem.h" #include "avcodec.h" #include "get_bits.h" #include "huffman.h" diff --git a/libavcodec/g2meet.c b/libavcodec/g2meet.c index 34ff60a3cf..7ae987ec40 100644 --- a/libavcodec/g2meet.c +++ b/libavcodec/g2meet.c @@ -29,6 +29,7 @@ #include #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "avcodec.h" diff --git a/libavcodec/g722enc.c b/libavcodec/g722enc.c index 2f19a1b29a..19ab0f8b55 100644 --- a/libavcodec/g722enc.c +++ b/libavcodec/g722enc.c @@ -29,6 +29,7 @@ #include "libavutil/avassert.h" #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "codec_internal.h" #include "encode.h" diff --git a/libavcodec/g729dec.c b/libavcodec/g729dec.c index 33e1fb9c29..3e1be326d0 100644 --- a/libavcodec/g729dec.c +++ b/libavcodec/g729dec.c @@ -24,6 +24,7 @@ #include "avcodec.h" #include "libavutil/avutil.h" +#include "libavutil/mem.h" #include "get_bits.h" #include "audiodsp.h" #include "codec_internal.h" diff --git a/libavcodec/gdv.c b/libavcodec/gdv.c index e114f3e80f..670597448b 100644 --- a/libavcodec/gdv.c +++ b/libavcodec/gdv.c @@ -21,6 +21,7 @@ */ #include "libavutil/common.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "bytestream.h" #include "codec_internal.h" diff --git a/libavcodec/gemdec.c b/libavcodec/gemdec.c index 9e2a50c766..5ece2e2ee3 100644 --- a/libavcodec/gemdec.c +++ b/libavcodec/gemdec.c @@ -24,6 +24,7 @@ * GEM Raster image decoder */ +#include "libavutil/mem.h" #include "avcodec.h" #include "bytestream.h" #include "codec_internal.h" diff --git a/libavcodec/gif.c b/libavcodec/gif.c index 49356236e7..56042d36a7 100644 --- a/libavcodec/gif.c +++ b/libavcodec/gif.c @@ -30,6 +30,7 @@ * @see http://www.w3.org/Graphics/GIF/spec-gif89a.txt */ +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avcodec.h" #include "bytestream.h" diff --git a/libavcodec/gifdec.c b/libavcodec/gifdec.c index a97a6d15fc..ae45eb0f6d 100644 --- a/libavcodec/gifdec.c +++ b/libavcodec/gifdec.c @@ -21,6 +21,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avcodec.h" #include "bytestream.h" diff --git a/libavcodec/h2645_sei.c b/libavcodec/h2645_sei.c index afc103b69c..f0f107f73b 100644 --- a/libavcodec/h2645_sei.c +++ b/libavcodec/h2645_sei.c @@ -30,7 +30,7 @@ #include "libavutil/hdr_dynamic_metadata.h" #include "libavutil/film_grain_params.h" #include "libavutil/mastering_display_metadata.h" -#include "libavutil/pixdesc.h" +#include "libavutil/mem.h" #include "libavutil/stereo3d.h" #include "atsc_a53.h" diff --git a/libavcodec/h264_parse.c b/libavcodec/h264_parse.c index 3378650fd5..c58d0c0fa9 100644 --- a/libavcodec/h264_parse.c +++ b/libavcodec/h264_parse.c @@ -16,6 +16,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "bytestream.h" #include "get_bits.h" #include "golomb.h" diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c index e9a404e41b..4b01c54147 100644 --- a/libavcodec/h264_slice.c +++ b/libavcodec/h264_slice.c @@ -28,6 +28,7 @@ #include "config_components.h" #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "libavutil/timecode.h" #include "decode.h" diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c index b4973fce29..727dc1a662 100644 --- a/libavcodec/h264dec.c +++ b/libavcodec/h264dec.c @@ -32,6 +32,7 @@ #include "libavutil/avassert.h" #include "libavutil/emms.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/thread.h" #include "libavutil/video_enc_params.h" diff --git a/libavcodec/hap.c b/libavcodec/hap.c index 1a330c9c9b..ac4032ce11 100644 --- a/libavcodec/hap.c +++ b/libavcodec/hap.c @@ -23,6 +23,7 @@ * @file * Hap utilities */ +#include "libavutil/mem.h" #include "hap.h" int ff_hap_set_chunk_count(HapContext *ctx, int count, int first_in_frame) diff --git a/libavcodec/hapdec.c b/libavcodec/hapdec.c index 6066cb814c..22b7c281d1 100644 --- a/libavcodec/hapdec.c +++ b/libavcodec/hapdec.c @@ -34,6 +34,7 @@ #include #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "bytestream.h" diff --git a/libavcodec/hapenc.c b/libavcodec/hapenc.c index 3f74098d13..8dc12a851c 100644 --- a/libavcodec/hapenc.c +++ b/libavcodec/hapenc.c @@ -34,7 +34,7 @@ #include "libavutil/frame.h" #include "libavutil/imgutils.h" -#include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avcodec.h" diff --git a/libavcodec/hcadec.c b/libavcodec/hcadec.c index 88146c7cdd..e8f877c3cf 100644 --- a/libavcodec/hcadec.c +++ b/libavcodec/hcadec.c @@ -18,6 +18,7 @@ #include "libavutil/crc.h" #include "libavutil/float_dsp.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/tx.h" diff --git a/libavcodec/hcom.c b/libavcodec/hcom.c index 9284cd11c9..d080330992 100644 --- a/libavcodec/hcom.c +++ b/libavcodec/hcom.c @@ -19,6 +19,7 @@ */ #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "codec_internal.h" diff --git a/libavcodec/hdrenc.c b/libavcodec/hdrenc.c index 40d283ee61..20e42134bc 100644 --- a/libavcodec/hdrenc.c +++ b/libavcodec/hdrenc.c @@ -18,7 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "bytestream.h" #include "codec_internal.h" diff --git a/libavcodec/hevc_parser.c b/libavcodec/hevc_parser.c index 99a4272fad..f174d419e4 100644 --- a/libavcodec/hevc_parser.c +++ b/libavcodec/hevc_parser.c @@ -21,6 +21,7 @@ */ #include "libavutil/common.h" +#include "libavutil/mem.h" #include "golomb.h" #include "hevc.h" diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c index cbef3ef4cd..86c8ceb128 100644 --- a/libavcodec/hevc_ps.c +++ b/libavcodec/hevc_ps.c @@ -24,6 +24,7 @@ */ #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "golomb.h" #include "h2645_vui.h" #include "hevc_data.h" diff --git a/libavcodec/hevc_refs.c b/libavcodec/hevc_refs.c index 54e3d40e1c..aed649933d 100644 --- a/libavcodec/hevc_refs.c +++ b/libavcodec/hevc_refs.c @@ -21,10 +21,9 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "decode.h" -#include "thread.h" #include "hevc.h" #include "hevcdec.h" #include "refstruct.h" diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c index 575836e340..752459af2d 100644 --- a/libavcodec/hevcdec.c +++ b/libavcodec/hevcdec.c @@ -31,6 +31,7 @@ #include "libavutil/film_grain_params.h" #include "libavutil/internal.h" #include "libavutil/md5.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "libavutil/timecode.h" diff --git a/libavcodec/huffyuvdec.c b/libavcodec/huffyuvdec.c index ce6d4d4c59..3bed27be21 100644 --- a/libavcodec/huffyuvdec.c +++ b/libavcodec/huffyuvdec.c @@ -44,6 +44,7 @@ #include "thread.h" #include "libavutil/emms.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #define VLC_BITS 12 diff --git a/libavcodec/huffyuvenc.c b/libavcodec/huffyuvenc.c index 494ca7e603..0222565245 100644 --- a/libavcodec/huffyuvenc.c +++ b/libavcodec/huffyuvenc.c @@ -40,6 +40,7 @@ #include "lossless_videoencdsp.h" #include "put_bits.h" #include "libavutil/emms.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" diff --git a/libavcodec/iff.c b/libavcodec/iff.c index faf4e21c42..133f69350f 100644 --- a/libavcodec/iff.c +++ b/libavcodec/iff.c @@ -29,6 +29,7 @@ #include #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "bytestream.h" #include "avcodec.h" diff --git a/libavcodec/imc.c b/libavcodec/imc.c index 99eb089236..5891e3621a 100644 --- a/libavcodec/imc.c +++ b/libavcodec/imc.c @@ -38,6 +38,7 @@ #include "libavutil/ffmath.h" #include "libavutil/float_dsp.h" #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/thread.h" #include "libavutil/tx.h" diff --git a/libavcodec/imm4.c b/libavcodec/imm4.c index 656fc9c05f..3a4ad8616f 100644 --- a/libavcodec/imm4.c +++ b/libavcodec/imm4.c @@ -23,6 +23,7 @@ #include #include +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/thread.h" diff --git a/libavcodec/indeo3.c b/libavcodec/indeo3.c index 7bb0235bdb..fbabd4b6ad 100644 --- a/libavcodec/indeo3.c +++ b/libavcodec/indeo3.c @@ -31,6 +31,7 @@ #include "libavutil/imgutils.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/thread.h" #include "avcodec.h" #include "codec_internal.h" diff --git a/libavcodec/interplayacm.c b/libavcodec/interplayacm.c index 057ab16e85..2ae992a71d 100644 --- a/libavcodec/interplayacm.c +++ b/libavcodec/interplayacm.c @@ -19,6 +19,7 @@ */ #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/thread.h" #define BITSTREAM_READER_LE diff --git a/libavcodec/intrax8.c b/libavcodec/intrax8.c index 948391599f..40085c69ce 100644 --- a/libavcodec/intrax8.c +++ b/libavcodec/intrax8.c @@ -22,6 +22,7 @@ */ #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "libavutil/thread.h" #include "avcodec.h" #include "get_bits.h" diff --git a/libavcodec/ivi.c b/libavcodec/ivi.c index 60769664a1..e7d8d10c3e 100644 --- a/libavcodec/ivi.c +++ b/libavcodec/ivi.c @@ -30,6 +30,7 @@ #include "libavutil/attributes.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/thread.h" #define BITSTREAM_READER_LE diff --git a/libavcodec/j2kenc.c b/libavcodec/j2kenc.c index a80e74d4ec..8cf82f7216 100644 --- a/libavcodec/j2kenc.c +++ b/libavcodec/j2kenc.c @@ -72,6 +72,7 @@ #include "jpeg2000.h" #include "version.h" #include "libavutil/common.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "libavutil/opt.h" #include "libavutil/intreadwrite.h" diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index 1afc6b1e2d..857379da2d 100644 --- a/libavcodec/jpeg2000dec.c +++ b/libavcodec/jpeg2000dec.c @@ -32,6 +32,7 @@ #include "libavutil/avassert.h" #include "libavutil/common.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "avcodec.h" diff --git a/libavcodec/jpeg2000htdec.c b/libavcodec/jpeg2000htdec.c index 6b9898d3ff..b2f29a4372 100644 --- a/libavcodec/jpeg2000htdec.c +++ b/libavcodec/jpeg2000htdec.c @@ -51,6 +51,7 @@ #include "libavutil/attributes.h" #include "libavutil/common.h" #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "jpeg2000htdec.h" #include "jpeg2000.h" #include "jpeg2000dec.h" diff --git a/libavcodec/jpeglsdec.c b/libavcodec/jpeglsdec.c index c245cf0279..5f463c9660 100644 --- a/libavcodec/jpeglsdec.c +++ b/libavcodec/jpeglsdec.c @@ -25,6 +25,7 @@ * JPEG-LS decoder. */ +#include "libavutil/mem.h" #include "avcodec.h" #include "codec_internal.h" #include "get_bits.h" diff --git a/libavcodec/jpeglsenc.c b/libavcodec/jpeglsenc.c index 3481c61ee3..d2f4a52f24 100644 --- a/libavcodec/jpeglsenc.c +++ b/libavcodec/jpeglsenc.c @@ -26,6 +26,7 @@ */ #define UNCHECKED_BITSTREAM_READER 1 +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avcodec.h" #include "bytestream.h" diff --git a/libavcodec/kgv1dec.c b/libavcodec/kgv1dec.c index 139ec9b05e..bdc5a16259 100644 --- a/libavcodec/kgv1dec.c +++ b/libavcodec/kgv1dec.c @@ -27,6 +27,7 @@ #include "libavutil/common.h" #include "libavutil/intreadwrite.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "codec_internal.h" #include "decode.h" diff --git a/libavcodec/leaddec.c b/libavcodec/leaddec.c index f7d31681b8..1406cb0014 100644 --- a/libavcodec/leaddec.c +++ b/libavcodec/leaddec.c @@ -30,6 +30,7 @@ #include "jpegquanttables.h" #include "jpegtables.h" #include "leaddata.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/thread.h" diff --git a/libavcodec/libaomenc.c b/libavcodec/libaomenc.c index 8c1f84cc9f..d660afab4e 100644 --- a/libavcodec/libaomenc.c +++ b/libavcodec/libaomenc.c @@ -35,6 +35,7 @@ #include "libavutil/cpu.h" #include "libavutil/imgutils.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" diff --git a/libavcodec/libaribb24.c b/libavcodec/libaribb24.c index 507a11511f..009c995ded 100644 --- a/libavcodec/libaribb24.c +++ b/libavcodec/libaribb24.c @@ -23,6 +23,7 @@ #include "libavcodec/ass.h" #include "codec_internal.h" #include "libavutil/log.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include diff --git a/libavcodec/libaribcaption.c b/libavcodec/libaribcaption.c index fba6827375..0b67d41772 100644 --- a/libavcodec/libaribcaption.c +++ b/libavcodec/libaribcaption.c @@ -25,6 +25,7 @@ #include "libavcodec/ass.h" #include "libavutil/avstring.h" #include "libavutil/avutil.h" +#include "libavutil/mem.h" #include "libavutil/thread.h" #include "libavutil/log.h" #include "libavutil/opt.h" diff --git a/libavcodec/libcodec2.c b/libavcodec/libcodec2.c index b8fa396fac..ebcd20c447 100644 --- a/libavcodec/libcodec2.c +++ b/libavcodec/libcodec2.c @@ -21,6 +21,7 @@ #include #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "libavutil/opt.h" #include "codec_internal.h" diff --git a/libavcodec/libfdk-aacdec.c b/libavcodec/libfdk-aacdec.c index fa9d771c4e..1324377fb4 100644 --- a/libavcodec/libfdk-aacdec.c +++ b/libavcodec/libfdk-aacdec.c @@ -21,6 +21,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/common.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avcodec.h" #include "codec_internal.h" diff --git a/libavcodec/libfdk-aacenc.c b/libavcodec/libfdk-aacenc.c index fe3ba14ee8..0f33cdb8c9 100644 --- a/libavcodec/libfdk-aacenc.c +++ b/libavcodec/libfdk-aacenc.c @@ -22,6 +22,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/common.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avcodec.h" #include "audio_frame_queue.h" diff --git a/libavcodec/libjxlenc.c b/libavcodec/libjxlenc.c index 3f2c74097d..8b0e60df6f 100644 --- a/libavcodec/libjxlenc.c +++ b/libavcodec/libjxlenc.c @@ -31,6 +31,7 @@ #include "libavutil/error.h" #include "libavutil/frame.h" #include "libavutil/libm.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "libavutil/pixfmt.h" diff --git a/libavcodec/libmp3lame.c b/libavcodec/libmp3lame.c index d3810eb2ab..42558178e8 100644 --- a/libavcodec/libmp3lame.c +++ b/libavcodec/libmp3lame.c @@ -31,6 +31,7 @@ #include "libavutil/float_dsp.h" #include "libavutil/intreadwrite.h" #include "libavutil/log.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avcodec.h" #include "audio_frame_queue.h" diff --git a/libavcodec/libopencore-amr.c b/libavcodec/libopencore-amr.c index 641a156129..b127b33101 100644 --- a/libavcodec/libopencore-amr.c +++ b/libavcodec/libopencore-amr.c @@ -26,6 +26,7 @@ #include "libavutil/avstring.h" #include "libavutil/channel_layout.h" #include "libavutil/common.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avcodec.h" #include "audio_frame_queue.h" diff --git a/libavcodec/libopenh264enc.c b/libavcodec/libopenh264enc.c index eef769eed0..0aa2a54e68 100644 --- a/libavcodec/libopenh264enc.c +++ b/libavcodec/libopenh264enc.c @@ -24,6 +24,7 @@ #include "libavutil/attributes.h" #include "libavutil/common.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/internal.h" #include "libavutil/intreadwrite.h" @@ -32,7 +33,6 @@ #include "avcodec.h" #include "codec_internal.h" #include "encode.h" -#include "internal.h" #include "libopenh264.h" #if !OPENH264_VER_AT_LEAST(1, 6) diff --git a/libavcodec/libopusenc.c b/libavcodec/libopusenc.c index af25f27f74..6b8b2cda0e 100644 --- a/libavcodec/libopusenc.c +++ b/libavcodec/libopusenc.c @@ -23,6 +23,7 @@ #include #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avcodec.h" #include "bytestream.h" diff --git a/libavcodec/librav1e.c b/libavcodec/librav1e.c index 2a6d8bfbed..b83e2118ed 100644 --- a/libavcodec/librav1e.c +++ b/libavcodec/librav1e.c @@ -28,6 +28,7 @@ #include "libavutil/base64.h" #include "libavutil/common.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "avcodec.h" diff --git a/libavcodec/libspeexenc.c b/libavcodec/libspeexenc.c index 4c12cef255..7b19db5a2a 100644 --- a/libavcodec/libspeexenc.c +++ b/libavcodec/libspeexenc.c @@ -87,6 +87,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/common.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avcodec.h" #include "codec_internal.h" diff --git a/libavcodec/libsvtav1.c b/libavcodec/libsvtav1.c index 8fa42d590b..105c3369c0 100644 --- a/libavcodec/libsvtav1.c +++ b/libavcodec/libsvtav1.c @@ -29,12 +29,12 @@ #include "libavutil/imgutils.h" #include "libavutil/intreadwrite.h" #include "libavutil/mastering_display_metadata.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "libavutil/avassert.h" #include "codec_internal.h" -#include "internal.h" #include "encode.h" #include "packet_internal.h" #include "avcodec.h" diff --git a/libavcodec/libtheoraenc.c b/libavcodec/libtheoraenc.c index 06eeaae006..58da008a82 100644 --- a/libavcodec/libtheoraenc.c +++ b/libavcodec/libtheoraenc.c @@ -33,6 +33,7 @@ /* FFmpeg includes */ #include "libavutil/common.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "libavutil/log.h" #include "libavutil/base64.h" diff --git a/libavcodec/libvorbisenc.c b/libavcodec/libvorbisenc.c index 6331cf0d79..e4f8cb67ef 100644 --- a/libavcodec/libvorbisenc.c +++ b/libavcodec/libvorbisenc.c @@ -23,6 +23,7 @@ #include "libavutil/avassert.h" #include "libavutil/channel_layout.h" #include "libavutil/fifo.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avcodec.h" #include "audio_frame_queue.h" diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c index 4b89e47e83..554a3b55ef 100644 --- a/libavcodec/libvpxenc.c +++ b/libavcodec/libvpxenc.c @@ -33,8 +33,8 @@ #include "avcodec.h" #include "codec_internal.h" #include "encode.h" -#include "internal.h" #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "libvpx.h" #include "packet_internal.h" #include "profiles.h" diff --git a/libavcodec/libwebpenc.c b/libavcodec/libwebpenc.c index d6edd86603..f40dd01345 100644 --- a/libavcodec/libwebpenc.c +++ b/libavcodec/libwebpenc.c @@ -24,6 +24,7 @@ * WebP encoder using libwebp (WebPEncode API) */ +#include "libavutil/mem.h" #include "codec_internal.h" #include "encode.h" #include "libwebpenc_common.h" diff --git a/libavcodec/libwebpenc_animencoder.c b/libavcodec/libwebpenc_animencoder.c index 02f0b6f64d..6f52fa7cf1 100644 --- a/libavcodec/libwebpenc_animencoder.c +++ b/libavcodec/libwebpenc_animencoder.c @@ -25,8 +25,8 @@ */ #include "libavutil/buffer.h" +#include "libavutil/mem.h" -#include "config.h" #include "codec_internal.h" #include "encode.h" #include "libwebpenc_common.h" diff --git a/libavcodec/libwebpenc_common.c b/libavcodec/libwebpenc_common.c index 5645d11727..80040ea9e3 100644 --- a/libavcodec/libwebpenc_common.c +++ b/libavcodec/libwebpenc_common.c @@ -24,6 +24,7 @@ * WebP encoder using libwebp: common structs and methods. */ +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libwebpenc_common.h" diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c index d3e74eaacf..40ddce6030 100644 --- a/libavcodec/libx265.c +++ b/libavcodec/libx265.c @@ -31,6 +31,7 @@ #include "libavutil/buffer.h" #include "libavutil/internal.h" #include "libavutil/mastering_display_metadata.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "avcodec.h" diff --git a/libavcodec/libxeve.c b/libavcodec/libxeve.c index c923ac1cac..1d9972619d 100644 --- a/libavcodec/libxeve.c +++ b/libavcodec/libxeve.c @@ -28,6 +28,7 @@ #include "libavutil/internal.h" #include "libavutil/common.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "libavutil/pixfmt.h" diff --git a/libavcodec/libzvbi-teletextdec.c b/libavcodec/libzvbi-teletextdec.c index c2cbb0a424..68ffe1f76c 100644 --- a/libavcodec/libzvbi-teletextdec.c +++ b/libavcodec/libzvbi-teletextdec.c @@ -22,10 +22,10 @@ #include "libavcodec/ass.h" #include "codec_internal.h" #include "libavcodec/dvbtxt.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/bprint.h" #include "libavutil/internal.h" -#include "libavutil/intreadwrite.h" #include "libavutil/log.h" #include "libavutil/common.h" diff --git a/libavcodec/lpc.c b/libavcodec/lpc.c index 53f5c3d379..8305cc0596 100644 --- a/libavcodec/lpc.c +++ b/libavcodec/lpc.c @@ -21,6 +21,7 @@ #include "libavutil/common.h" #include "libavutil/lls.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #define LPC_USE_DOUBLE diff --git a/libavcodec/lscrdec.c b/libavcodec/lscrdec.c index 415914bf0a..199d2d6827 100644 --- a/libavcodec/lscrdec.c +++ b/libavcodec/lscrdec.c @@ -24,6 +24,7 @@ #include "libavutil/frame.h" #include "libavutil/error.h" #include "libavutil/log.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "bytestream.h" diff --git a/libavcodec/magicyuv.c b/libavcodec/magicyuv.c index 3f6348b531..d2897019bd 100644 --- a/libavcodec/magicyuv.c +++ b/libavcodec/magicyuv.c @@ -24,6 +24,7 @@ #define CACHED_BITSTREAM_READER !ARCH_X86_32 +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "avcodec.h" diff --git a/libavcodec/magicyuvenc.c b/libavcodec/magicyuvenc.c index 77e068496e..93eabb9f9a 100644 --- a/libavcodec/magicyuvenc.c +++ b/libavcodec/magicyuvenc.c @@ -23,6 +23,7 @@ #include #include "libavutil/cpu.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "libavutil/qsort.h" @@ -32,7 +33,6 @@ #include "codec_internal.h" #include "encode.h" #include "put_bits.h" -#include "thread.h" #include "lossless_videoencdsp.h" #define MAGICYUV_EXTRADATA_SIZE 32 diff --git a/libavcodec/mdec.c b/libavcodec/mdec.c index c4904216b8..31c09de5bc 100644 --- a/libavcodec/mdec.c +++ b/libavcodec/mdec.c @@ -27,6 +27,7 @@ * This is very similar to intra-only MPEG-1. */ +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "avcodec.h" diff --git a/libavcodec/mediacodecdec.c b/libavcodec/mediacodecdec.c index b8587289a2..df8d40dd10 100644 --- a/libavcodec/mediacodecdec.c +++ b/libavcodec/mediacodecdec.c @@ -27,6 +27,7 @@ #include "libavutil/avassert.h" #include "libavutil/common.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/intreadwrite.h" #include "libavutil/pixfmt.h" diff --git a/libavcodec/mediacodecenc.c b/libavcodec/mediacodecenc.c index 984014f1b1..b59de75b9b 100644 --- a/libavcodec/mediacodecenc.c +++ b/libavcodec/mediacodecenc.c @@ -25,6 +25,7 @@ #include "libavutil/avassert.h" #include "libavutil/hwcontext_mediacodec.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avcodec.h" diff --git a/libavcodec/mfenc.c b/libavcodec/mfenc.c index 9225692c51..bdea4b42c4 100644 --- a/libavcodec/mfenc.c +++ b/libavcodec/mfenc.c @@ -25,6 +25,7 @@ #include "encode.h" #include "mf_utils.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/time.h" #include "codec_internal.h" diff --git a/libavcodec/mimic.c b/libavcodec/mimic.c index cd5d0d7e3e..8928f24022 100644 --- a/libavcodec/mimic.c +++ b/libavcodec/mimic.c @@ -21,6 +21,7 @@ #include +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/thread.h" diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index c9409eac6c..1481a7f285 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -36,6 +36,7 @@ #include "libavutil/emms.h" #include "libavutil/imgutils.h" #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avcodec.h" #include "blockdsp.h" diff --git a/libavcodec/mjpegenc.c b/libavcodec/mjpegenc.c index c8cb2207e3..b6de50edce 100644 --- a/libavcodec/mjpegenc.c +++ b/libavcodec/mjpegenc.c @@ -32,6 +32,8 @@ #include "config_components.h" +#include "libavutil/mem.h" + #include "avcodec.h" #include "codec_internal.h" #include "jpegtables.h" diff --git a/libavcodec/mlz.c b/libavcodec/mlz.c index 9087ffd8f0..5176366439 100644 --- a/libavcodec/mlz.c +++ b/libavcodec/mlz.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "mlz.h" av_cold int ff_mlz_init_dict(void *context, MLZ *mlz) diff --git a/libavcodec/mmaldec.c b/libavcodec/mmaldec.c index a8cda27570..e42591110f 100644 --- a/libavcodec/mmaldec.c +++ b/libavcodec/mmaldec.c @@ -42,6 +42,7 @@ #include "libavutil/buffer.h" #include "libavutil/common.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/log.h" diff --git a/libavcodec/mobiclip.c b/libavcodec/mobiclip.c index 433de0abb2..133a835ad1 100644 --- a/libavcodec/mobiclip.c +++ b/libavcodec/mobiclip.c @@ -24,6 +24,7 @@ #include #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "libavutil/thread.h" #include "avcodec.h" diff --git a/libavcodec/motionpixels.c b/libavcodec/motionpixels.c index 9df0b20676..287f35f305 100644 --- a/libavcodec/motionpixels.c +++ b/libavcodec/motionpixels.c @@ -19,6 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "libavutil/thread.h" #include "config.h" diff --git a/libavcodec/mpc7.c b/libavcodec/mpc7.c index b23b4094db..f1ce4075cd 100644 --- a/libavcodec/mpc7.c +++ b/libavcodec/mpc7.c @@ -28,6 +28,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/internal.h" #include "libavutil/lfg.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/thread.h" diff --git a/libavcodec/mpeg4videoenc.c b/libavcodec/mpeg4videoenc.c index d1e50612dd..f806ad8a74 100644 --- a/libavcodec/mpeg4videoenc.c +++ b/libavcodec/mpeg4videoenc.c @@ -22,6 +22,7 @@ #include "libavutil/attributes.h" #include "libavutil/log.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/thread.h" #include "codec_internal.h" diff --git a/libavcodec/mpeg_er.c b/libavcodec/mpeg_er.c index 8034963253..d429b0a839 100644 --- a/libavcodec/mpeg_er.c +++ b/libavcodec/mpeg_er.c @@ -16,6 +16,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "error_resilience.h" #include "mpegvideo.h" #include "mpegvideodec.h" diff --git a/libavcodec/mpegaudiodec_template.c b/libavcodec/mpegaudiodec_template.c index 2b84e65705..c73b1e0054 100644 --- a/libavcodec/mpegaudiodec_template.c +++ b/libavcodec/mpegaudiodec_template.c @@ -32,6 +32,7 @@ #include "libavutil/crc.h" #include "libavutil/float_dsp.h" #include "libavutil/libm.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/thread.h" diff --git a/libavcodec/mpegpicture.c b/libavcodec/mpegpicture.c index 270630bea6..5bf85bb7fe 100644 --- a/libavcodec/mpegpicture.c +++ b/libavcodec/mpegpicture.c @@ -22,6 +22,7 @@ #include "libavutil/avassert.h" #include "libavutil/common.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "libavutil/imgutils.h" diff --git a/libavcodec/mpegutils.c b/libavcodec/mpegutils.c index d94e8f422f..92ebdd3a98 100644 --- a/libavcodec/mpegutils.c +++ b/libavcodec/mpegutils.c @@ -24,6 +24,7 @@ #include "libavutil/common.h" #include "libavutil/emms.h" #include "libavutil/frame.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "libavutil/motion_vector.h" #include "libavutil/avassert.h" diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 81796e42bb..8a733afdb8 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -31,6 +31,7 @@ #include "libavutil/avassert.h" #include "libavutil/imgutils.h" #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "blockdsp.h" diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index c20e364cac..d1b1917824 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -39,6 +39,7 @@ #include "libavutil/internal.h" #include "libavutil/intmath.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/opt.h" #include "libavutil/thread.h" diff --git a/libavcodec/mscc.c b/libavcodec/mscc.c index d1d23e6751..39bfad0b98 100644 --- a/libavcodec/mscc.c +++ b/libavcodec/mscc.c @@ -23,6 +23,7 @@ #include #include +#include "libavutil/mem.h" #include "avcodec.h" #include "bytestream.h" #include "codec_internal.h" diff --git a/libavcodec/mss12.c b/libavcodec/mss12.c index 5afdaacfe6..8dd3b4fc8a 100644 --- a/libavcodec/mss12.c +++ b/libavcodec/mss12.c @@ -27,6 +27,7 @@ #include "libavutil/intfloat.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "mss12.h" diff --git a/libavcodec/mss2.c b/libavcodec/mss2.c index d54a1220b5..dd0d403338 100644 --- a/libavcodec/mss2.c +++ b/libavcodec/mss2.c @@ -24,12 +24,12 @@ */ #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "codec_internal.h" #include "decode.h" #include "error_resilience.h" #include "mpeg_er.h" #include "mpegvideodec.h" -#include "qpeldsp.h" #include "vc1.h" #include "wmv2data.h" #include "mss12.h" diff --git a/libavcodec/mss3.c b/libavcodec/mss3.c index 2701e9b912..257943f648 100644 --- a/libavcodec/mss3.c +++ b/libavcodec/mss3.c @@ -24,6 +24,7 @@ * Microsoft Screen 3 (aka Microsoft ATC Screen) decoder */ +#include "libavutil/mem.h" #include "avcodec.h" #include "bytestream.h" #include "codec_internal.h" diff --git a/libavcodec/mss4.c b/libavcodec/mss4.c index 8ae4f152c6..c931aa4e4a 100644 --- a/libavcodec/mss4.c +++ b/libavcodec/mss4.c @@ -25,6 +25,7 @@ * aka Microsoft Expression Encoder Screen) decoder */ +#include "libavutil/mem.h" #include "libavutil/thread.h" #include "libavutil/imgutils.h" diff --git a/libavcodec/msvideo1enc.c b/libavcodec/msvideo1enc.c index 3bea3ed297..b8704367c7 100644 --- a/libavcodec/msvideo1enc.c +++ b/libavcodec/msvideo1enc.c @@ -29,6 +29,7 @@ #include "encode.h" #include "bytestream.h" #include "libavutil/lfg.h" +#include "libavutil/mem.h" #include "elbg.h" #include "libavutil/imgutils.h" /** diff --git a/libavcodec/mv30.c b/libavcodec/mv30.c index 8c45c8304b..124a37e23f 100644 --- a/libavcodec/mv30.c +++ b/libavcodec/mv30.c @@ -23,6 +23,7 @@ #include #include +#include "libavutil/mem.h" #include "libavutil/thread.h" #include "avcodec.h" diff --git a/libavcodec/mwsc.c b/libavcodec/mwsc.c index f8c53c33ff..06a151a72a 100644 --- a/libavcodec/mwsc.c +++ b/libavcodec/mwsc.c @@ -22,6 +22,7 @@ #include +#include "libavutil/mem.h" #include "avcodec.h" #include "bytestream.h" #include "codec_internal.h" diff --git a/libavcodec/mxpegdec.c b/libavcodec/mxpegdec.c index 73df2ff9ff..c5c14cbe79 100644 --- a/libavcodec/mxpegdec.c +++ b/libavcodec/mxpegdec.c @@ -25,6 +25,7 @@ * MxPEG decoder */ +#include "libavutil/mem.h" #include "codec_internal.h" #include "decode.h" #include "mjpeg.h" diff --git a/libavcodec/nellymoserdec.c b/libavcodec/nellymoserdec.c index 727cd4833d..e9b124399a 100644 --- a/libavcodec/nellymoserdec.c +++ b/libavcodec/nellymoserdec.c @@ -34,6 +34,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/float_dsp.h" #include "libavutil/lfg.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/tx.h" diff --git a/libavcodec/nellymoserenc.c b/libavcodec/nellymoserenc.c index a550ae46c5..32ae5f7828 100644 --- a/libavcodec/nellymoserenc.c +++ b/libavcodec/nellymoserenc.c @@ -38,6 +38,7 @@ #include "libavutil/common.h" #include "libavutil/float_dsp.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/thread.h" #include "libavutil/tx.h" diff --git a/libavcodec/notchlc.c b/libavcodec/notchlc.c index 0feb0918f0..6dd3f88440 100644 --- a/libavcodec/notchlc.c +++ b/libavcodec/notchlc.c @@ -23,6 +23,7 @@ #include #define BITSTREAM_READER_LE +#include "libavutil/mem.h" #include "avcodec.h" #include "bytestream.h" #include "codec_internal.h" diff --git a/libavcodec/nuv.c b/libavcodec/nuv.c index 1dda770c97..c2301be77b 100644 --- a/libavcodec/nuv.c +++ b/libavcodec/nuv.c @@ -26,6 +26,7 @@ #include "libavutil/intreadwrite.h" #include "libavutil/lzo.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "codec_internal.h" #include "decode.h" diff --git a/libavcodec/nvdec.c b/libavcodec/nvdec.c index 553c9bdf18..ffd5cc61e2 100644 --- a/libavcodec/nvdec.c +++ b/libavcodec/nvdec.c @@ -28,6 +28,7 @@ #include "libavutil/hwcontext.h" #include "libavutil/hwcontext_cuda_internal.h" #include "libavutil/cuda_check.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "libavutil/pixfmt.h" diff --git a/libavcodec/nvdec_av1.c b/libavcodec/nvdec_av1.c index 35f22ebf80..b0b013846e 100644 --- a/libavcodec/nvdec_av1.c +++ b/libavcodec/nvdec_av1.c @@ -20,6 +20,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "avcodec.h" #include "nvdec.h" #include "decode.h" diff --git a/libavcodec/nvdec_h264.c b/libavcodec/nvdec_h264.c index ea6c1081eb..9adbc521ec 100644 --- a/libavcodec/nvdec_h264.c +++ b/libavcodec/nvdec_h264.c @@ -23,6 +23,7 @@ #include #include +#include "libavutil/mem.h" #include "avcodec.h" #include "nvdec.h" #include "decode.h" diff --git a/libavcodec/nvdec_hevc.c b/libavcodec/nvdec_hevc.c index ff118af04b..f26ced71ef 100644 --- a/libavcodec/nvdec_hevc.c +++ b/libavcodec/nvdec_hevc.c @@ -23,6 +23,7 @@ #include #include +#include "libavutil/mem.h" #include "avcodec.h" #include "nvdec.h" #include "decode.h" diff --git a/libavcodec/omx.c b/libavcodec/omx.c index 3fdde753b5..86913237b2 100644 --- a/libavcodec/omx.c +++ b/libavcodec/omx.c @@ -38,6 +38,7 @@ #include "libavutil/common.h" #include "libavutil/imgutils.h" #include "libavutil/log.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avcodec.h" diff --git a/libavcodec/on2avc.c b/libavcodec/on2avc.c index 8d0c881248..3badfae891 100644 --- a/libavcodec/on2avc.c +++ b/libavcodec/on2avc.c @@ -23,6 +23,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/ffmath.h" #include "libavutil/float_dsp.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/tx.h" diff --git a/libavcodec/opus_parser.c b/libavcodec/opus_parser.c index e6df34abab..3bdacf7cd5 100644 --- a/libavcodec/opus_parser.c +++ b/libavcodec/opus_parser.c @@ -25,6 +25,7 @@ * Determines the duration for each packet. */ +#include "libavutil/mem.h" #include "avcodec.h" #include "bytestream.h" #include "opus.h" diff --git a/libavcodec/opus_pvq.c b/libavcodec/opus_pvq.c index 0a6dc4cdf1..554a72609f 100644 --- a/libavcodec/opus_pvq.c +++ b/libavcodec/opus_pvq.c @@ -27,6 +27,7 @@ #include "config_components.h" +#include "libavutil/mem.h" #include "mathops.h" #include "opustab.h" #include "opus_pvq.h" diff --git a/libavcodec/opus_silk.c b/libavcodec/opus_silk.c index 27671516a0..98ffe00b26 100644 --- a/libavcodec/opus_silk.c +++ b/libavcodec/opus_silk.c @@ -26,6 +26,7 @@ #include +#include "libavutil/mem.h" #include "mathops.h" #include "opus.h" #include "opus_rc.h" diff --git a/libavcodec/opusdec.c b/libavcodec/opusdec.c index c5f06e0600..81653b5bd0 100644 --- a/libavcodec/opusdec.c +++ b/libavcodec/opusdec.c @@ -41,6 +41,7 @@ #include "libavutil/ffmath.h" #include "libavutil/float_dsp.h" #include "libavutil/frame.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/opt.h" diff --git a/libavcodec/opusdec_celt.c b/libavcodec/opusdec_celt.c index c2904cc9e0..fd8e9929e9 100644 --- a/libavcodec/opusdec_celt.c +++ b/libavcodec/opusdec_celt.c @@ -27,6 +27,7 @@ #include +#include "libavutil/mem.h" #include "opus_celt.h" #include "opustab.h" #include "opus_pvq.h" diff --git a/libavcodec/opusenc.c b/libavcodec/opusenc.c index 379d0e0c5d..e0c1732227 100644 --- a/libavcodec/opusenc.c +++ b/libavcodec/opusenc.c @@ -29,6 +29,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/float_dsp.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/opt.h" #include "bytestream.h" diff --git a/libavcodec/opusenc_psy.c b/libavcodec/opusenc_psy.c index 48ccd2ebd0..44a61e6939 100644 --- a/libavcodec/opusenc_psy.c +++ b/libavcodec/opusenc_psy.c @@ -21,6 +21,7 @@ #include +#include "libavutil/mem.h" #include "opusenc_psy.h" #include "opus_celt.h" #include "opus_pvq.h" diff --git a/libavcodec/osq.c b/libavcodec/osq.c index 650cfcd98c..7d0e8a87d5 100644 --- a/libavcodec/osq.c +++ b/libavcodec/osq.c @@ -21,6 +21,7 @@ #include "libavutil/internal.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "codec_internal.h" #include "decode.h" diff --git a/libavcodec/pafvideo.c b/libavcodec/pafvideo.c index 14eb42435a..c17ae9ae4d 100644 --- a/libavcodec/pafvideo.c +++ b/libavcodec/pafvideo.c @@ -20,6 +20,7 @@ */ #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "bytestream.h" diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c index 4abca7cc07..a51086a92d 100644 --- a/libavcodec/pcm.c +++ b/libavcodec/pcm.c @@ -28,6 +28,7 @@ #include "config_components.h" #include "libavutil/attributes.h" #include "libavutil/float_dsp.h" +#include "libavutil/mem.h" #include "libavutil/reverse.h" #include "libavutil/thread.h" #include "avcodec.h" diff --git a/libavcodec/pcx.c b/libavcodec/pcx.c index 8e2aae7b5e..15f2e3c2cf 100644 --- a/libavcodec/pcx.c +++ b/libavcodec/pcx.c @@ -22,6 +22,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "avcodec.h" #include "bytestream.h" #include "codec_internal.h" diff --git a/libavcodec/pgssubdec.c b/libavcodec/pgssubdec.c index 5f76f12615..d93bcf1b6a 100644 --- a/libavcodec/pgssubdec.c +++ b/libavcodec/pgssubdec.c @@ -31,6 +31,7 @@ #include "mathops.h" #include "libavutil/colorspace.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #define RGBA(r,g,b,a) (((unsigned)(a) << 24) | ((r) << 16) | ((g) << 8) | (b)) diff --git a/libavcodec/pictordec.c b/libavcodec/pictordec.c index 5aaa725bd3..845a882454 100644 --- a/libavcodec/pictordec.c +++ b/libavcodec/pictordec.c @@ -25,6 +25,7 @@ */ #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "bytestream.h" #include "cga_data.h" diff --git a/libavcodec/pixlet.c b/libavcodec/pixlet.c index 6e925308b8..f432b15d71 100644 --- a/libavcodec/pixlet.c +++ b/libavcodec/pixlet.c @@ -22,6 +22,7 @@ #include #include "libavutil/intmath.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "bytestream.h" diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c index de50e6a5b6..16e35a8cc6 100644 --- a/libavcodec/pngdec.c +++ b/libavcodec/pngdec.c @@ -30,6 +30,7 @@ #include "libavutil/imgutils.h" #include "libavutil/intreadwrite.h" #include "libavutil/mastering_display_metadata.h" +#include "libavutil/mem.h" #include "libavutil/pixfmt.h" #include "libavutil/rational.h" #include "libavutil/stereo3d.h" diff --git a/libavcodec/pngenc.c b/libavcodec/pngenc.c index 28d645ea48..89c3d5b83e 100644 --- a/libavcodec/pngenc.c +++ b/libavcodec/pngenc.c @@ -33,6 +33,7 @@ #include "libavutil/csp.h" #include "libavutil/libm.h" #include "libavutil/mastering_display_metadata.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/rational.h" #include "libavutil/stereo3d.h" diff --git a/libavcodec/proresdec2.c b/libavcodec/proresdec2.c index 3a5b753430..73fbd3458e 100644 --- a/libavcodec/proresdec2.c +++ b/libavcodec/proresdec2.c @@ -31,6 +31,7 @@ #include "config_components.h" #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "avcodec.h" diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c index 02ab07d28e..2fb96e9cf5 100644 --- a/libavcodec/proresenc_anatoliy.c +++ b/libavcodec/proresenc_anatoliy.c @@ -27,6 +27,7 @@ * Known FOURCCs: 'ap4h' (444), 'apch' (HQ), 'apcn' (422), 'apcs' (LT), 'acpo' (Proxy) */ +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/opt.h" #include "avcodec.h" diff --git a/libavcodec/proresenc_kostya.c b/libavcodec/proresenc_kostya.c index 90cc87e388..b2b5f880ae 100644 --- a/libavcodec/proresenc_kostya.c +++ b/libavcodec/proresenc_kostya.c @@ -21,6 +21,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" diff --git a/libavcodec/psd.c b/libavcodec/psd.c index d3456e6b3d..3e5bfcd360 100644 --- a/libavcodec/psd.c +++ b/libavcodec/psd.c @@ -19,6 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "bytestream.h" #include "codec_internal.h" #include "decode.h" diff --git a/libavcodec/qsv.c b/libavcodec/qsv.c index 01ce186dae..d9c81b7158 100644 --- a/libavcodec/qsv.c +++ b/libavcodec/qsv.c @@ -30,8 +30,8 @@ #include "libavutil/error.h" #include "libavutil/hwcontext.h" #include "libavutil/hwcontext_qsv.h" -#include "libavutil/imgutils.h" #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "qsv_internal.h" diff --git a/libavcodec/qsvenc_hevc.c b/libavcodec/qsvenc_hevc.c index 4920b0bca4..2ccbe0464b 100644 --- a/libavcodec/qsvenc_hevc.c +++ b/libavcodec/qsvenc_hevc.c @@ -25,6 +25,7 @@ #include #include "libavutil/common.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/mastering_display_metadata.h" diff --git a/libavcodec/qtrleenc.c b/libavcodec/qtrleenc.c index 92e6e84380..71d57d7eb8 100644 --- a/libavcodec/qtrleenc.c +++ b/libavcodec/qtrleenc.c @@ -23,6 +23,7 @@ */ #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "bytestream.h" #include "codec_internal.h" diff --git a/libavcodec/ra288.c b/libavcodec/ra288.c index e4b14ef2a2..5b186a7a3d 100644 --- a/libavcodec/ra288.c +++ b/libavcodec/ra288.c @@ -22,6 +22,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/float_dsp.h" #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #define BITSTREAM_READER_LE diff --git a/libavcodec/rasc.c b/libavcodec/rasc.c index 21c1829fc7..7b0251ca3f 100644 --- a/libavcodec/rasc.c +++ b/libavcodec/rasc.c @@ -23,6 +23,7 @@ #include #include +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avcodec.h" diff --git a/libavcodec/ratecontrol.c b/libavcodec/ratecontrol.c index 031da7a4f6..1ff209c00b 100644 --- a/libavcodec/ratecontrol.c +++ b/libavcodec/ratecontrol.c @@ -28,6 +28,7 @@ #include "libavutil/attributes.h" #include "libavutil/emms.h" #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "ratecontrol.h" diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c index 8e9358f95d..8de90e0477 100644 --- a/libavcodec/rawdec.c +++ b/libavcodec/rawdec.c @@ -29,13 +29,12 @@ #include "codec_internal.h" #include "decode.h" #include "get_bits.h" -#include "internal.h" #include "raw.h" #include "libavutil/avassert.h" #include "libavutil/buffer.h" -#include "libavutil/common.h" #include "libavutil/intreadwrite.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" typedef struct RawVideoContext { diff --git a/libavcodec/rka.c b/libavcodec/rka.c index 724107f3e2..600c160028 100644 --- a/libavcodec/rka.c +++ b/libavcodec/rka.c @@ -21,6 +21,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "codec_internal.h" diff --git a/libavcodec/rkmppdec.c b/libavcodec/rkmppdec.c index 53b6f6d5e8..7665098c6a 100644 --- a/libavcodec/rkmppdec.c +++ b/libavcodec/rkmppdec.c @@ -37,6 +37,7 @@ #include "libavutil/hwcontext_drm.h" #include "libavutil/imgutils.h" #include "libavutil/log.h" +#include "libavutil/mem.h" #define RECEIVE_FRAME_TIMEOUT 100 #define FRAMEGROUP_MAX_FRAMES 16 diff --git a/libavcodec/roqaudioenc.c b/libavcodec/roqaudioenc.c index 81dccd09b5..8d08a13654 100644 --- a/libavcodec/roqaudioenc.c +++ b/libavcodec/roqaudioenc.c @@ -21,6 +21,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "avcodec.h" #include "bytestream.h" #include "codec_internal.h" diff --git a/libavcodec/roqvideoenc.c b/libavcodec/roqvideoenc.c index 0933abf4f9..a6c167b1dc 100644 --- a/libavcodec/roqvideoenc.c +++ b/libavcodec/roqvideoenc.c @@ -58,6 +58,7 @@ #include "libavutil/attributes.h" #include "libavutil/lfg.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "roqvideo.h" #include "bytestream.h" diff --git a/libavcodec/rscc.c b/libavcodec/rscc.c index ace9aeeb40..e601ff39ed 100644 --- a/libavcodec/rscc.c +++ b/libavcodec/rscc.c @@ -40,6 +40,7 @@ #include "libavutil/imgutils.h" #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "bytestream.h" diff --git a/libavcodec/rv34.c b/libavcodec/rv34.c index 914bde4a2a..23a570bb80 100644 --- a/libavcodec/rv34.c +++ b/libavcodec/rv34.c @@ -27,6 +27,7 @@ #include "libavutil/avassert.h" #include "libavutil/imgutils.h" #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/thread.h" diff --git a/libavcodec/samidec.c b/libavcodec/samidec.c index e84c4bc6b8..6576ce93fe 100644 --- a/libavcodec/samidec.c +++ b/libavcodec/samidec.c @@ -27,6 +27,7 @@ #include "ass.h" #include "libavutil/avstring.h" #include "libavutil/bprint.h" +#include "libavutil/mem.h" #include "codec_internal.h" #include "htmlsubtitles.h" diff --git a/libavcodec/sanm.c b/libavcodec/sanm.c index b70daab7ac..8b7c0d9556 100644 --- a/libavcodec/sanm.c +++ b/libavcodec/sanm.c @@ -21,6 +21,7 @@ */ #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "bytestream.h" diff --git a/libavcodec/scpr.c b/libavcodec/scpr.c index b096965de5..9a6e8bdcb4 100644 --- a/libavcodec/scpr.c +++ b/libavcodec/scpr.c @@ -22,6 +22,7 @@ #include +#include "libavutil/mem.h" #include "avcodec.h" #include "bytestream.h" #include "codec_internal.h" diff --git a/libavcodec/sga.c b/libavcodec/sga.c index 4ced6e9890..0f42cf912b 100644 --- a/libavcodec/sga.c +++ b/libavcodec/sga.c @@ -19,6 +19,7 @@ */ #include "libavutil/common.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "get_bits.h" #include "bytestream.h" diff --git a/libavcodec/sgienc.c b/libavcodec/sgienc.c index 5bbb72c03a..0901cf58b3 100644 --- a/libavcodec/sgienc.c +++ b/libavcodec/sgienc.c @@ -19,6 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avcodec.h" diff --git a/libavcodec/shorten.c b/libavcodec/shorten.c index 0ad95bf97e..102992e2b2 100644 --- a/libavcodec/shorten.c +++ b/libavcodec/shorten.c @@ -26,6 +26,7 @@ */ #include +#include "libavutil/mem.h" #include "avcodec.h" #include "bswapdsp.h" #include "bytestream.h" diff --git a/libavcodec/siren.c b/libavcodec/siren.c index fa8636946d..e76f21bc7e 100644 --- a/libavcodec/siren.c +++ b/libavcodec/siren.c @@ -22,6 +22,7 @@ */ #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "libavutil/tx.h" #include "libavutil/float_dsp.h" #include "libavutil/mem_internal.h" diff --git a/libavcodec/smacker.c b/libavcodec/smacker.c index ffa0820f52..8f198d6957 100644 --- a/libavcodec/smacker.c +++ b/libavcodec/smacker.c @@ -31,6 +31,7 @@ #include #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "avcodec.h" diff --git a/libavcodec/snow.c b/libavcodec/snow.c index 59815d00d9..0285362d43 100644 --- a/libavcodec/snow.c +++ b/libavcodec/snow.c @@ -19,6 +19,7 @@ */ #include "libavutil/log.h" +#include "libavutil/mem.h" #include "libavutil/thread.h" #include "avcodec.h" #include "snow_dwt.h" diff --git a/libavcodec/snow_dwt.c b/libavcodec/snow_dwt.c index 965f409002..1250597ee0 100644 --- a/libavcodec/snow_dwt.c +++ b/libavcodec/snow_dwt.c @@ -22,6 +22,7 @@ #include "libavutil/attributes.h" #include "libavutil/avassert.h" #include "libavutil/common.h" +#include "libavutil/mem.h" #include "me_cmp.h" #include "snow_dwt.h" diff --git a/libavcodec/snowdec.c b/libavcodec/snowdec.c index 70fbab9a49..50dcaf8b93 100644 --- a/libavcodec/snowdec.c +++ b/libavcodec/snowdec.c @@ -21,7 +21,7 @@ #include "libavutil/emms.h" #include "libavutil/intmath.h" #include "libavutil/log.h" -#include "libavutil/opt.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "codec_internal.h" #include "decode.h" diff --git a/libavcodec/snowenc.c b/libavcodec/snowenc.c index d81ff6f2aa..43ca602762 100644 --- a/libavcodec/snowenc.c +++ b/libavcodec/snowenc.c @@ -22,6 +22,7 @@ #include "libavutil/intmath.h" #include "libavutil/libm.h" #include "libavutil/log.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "avcodec.h" diff --git a/libavcodec/sonic.c b/libavcodec/sonic.c index 0544fecf46..46c15b5fb1 100644 --- a/libavcodec/sonic.c +++ b/libavcodec/sonic.c @@ -21,6 +21,7 @@ #include "config_components.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "codec_internal.h" #include "decode.h" diff --git a/libavcodec/sp5xdec.c b/libavcodec/sp5xdec.c index dfed725500..8dda5b6152 100644 --- a/libavcodec/sp5xdec.c +++ b/libavcodec/sp5xdec.c @@ -26,9 +26,9 @@ #include "config_components.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "codec_internal.h" -#include "mjpeg.h" #include "mjpegdec.h" #include "sp5x.h" diff --git a/libavcodec/speexdec.c b/libavcodec/speexdec.c index ba0df687de..d25823ef6e 100644 --- a/libavcodec/speexdec.c +++ b/libavcodec/speexdec.c @@ -54,6 +54,7 @@ #include "libavutil/avassert.h" #include "libavutil/avstring.h" #include "libavutil/float_dsp.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "bytestream.h" #include "codec_internal.h" diff --git a/libavcodec/sunrast.c b/libavcodec/sunrast.c index 3668d2be7f..9e49c4f275 100644 --- a/libavcodec/sunrast.c +++ b/libavcodec/sunrast.c @@ -22,6 +22,7 @@ #include "libavutil/avassert.h" #include "libavutil/common.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "codec_internal.h" #include "decode.h" diff --git a/libavcodec/svq1dec.c b/libavcodec/svq1dec.c index d2cfe4cf40..57cac8ee7b 100644 --- a/libavcodec/svq1dec.c +++ b/libavcodec/svq1dec.c @@ -33,6 +33,7 @@ */ #include "libavutil/crc.h" +#include "libavutil/mem.h" #include "libavutil/thread.h" #include "avcodec.h" diff --git a/libavcodec/svq1enc.c b/libavcodec/svq1enc.c index 77dbf07275..d71ad07b86 100644 --- a/libavcodec/svq1enc.c +++ b/libavcodec/svq1enc.c @@ -27,6 +27,7 @@ */ #include "libavutil/emms.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "codec_internal.h" #include "encode.h" diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c index d2f53742e1..ce4c58e14f 100644 --- a/libavcodec/svq3.c +++ b/libavcodec/svq3.c @@ -44,6 +44,7 @@ #include "libavutil/attributes.h" #include "libavutil/crc.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "codec_internal.h" diff --git a/libavcodec/takdec.c b/libavcodec/takdec.c index 5cbc2de6bd..cfa69f4217 100644 --- a/libavcodec/takdec.c +++ b/libavcodec/takdec.c @@ -26,6 +26,7 @@ */ #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/samplefmt.h" diff --git a/libavcodec/tdsc.c b/libavcodec/tdsc.c index 624e219cb4..ab0a70859b 100644 --- a/libavcodec/tdsc.c +++ b/libavcodec/tdsc.c @@ -37,6 +37,7 @@ #include #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "bytestream.h" diff --git a/libavcodec/tests/avpacket.c b/libavcodec/tests/avpacket.c index 7a70ade4c3..fed700b4be 100644 --- a/libavcodec/tests/avpacket.c +++ b/libavcodec/tests/avpacket.c @@ -22,6 +22,7 @@ #include #include "libavcodec/avcodec.h" #include "libavutil/error.h" +#include "libavutil/mem.h" diff --git a/libavcodec/tests/snowenc.c b/libavcodec/tests/snowenc.c index 3dad07d3a5..eb4e64f377 100644 --- a/libavcodec/tests/snowenc.c +++ b/libavcodec/tests/snowenc.c @@ -26,6 +26,7 @@ #include "libavutil/lfg.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" int main(void){ #define width 256 diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c index 7ce1ab32f6..1b934457b5 100644 --- a/libavcodec/tiff.c +++ b/libavcodec/tiff.c @@ -39,6 +39,7 @@ #include "libavutil/avstring.h" #include "libavutil/error.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/reverse.h" #include "avcodec.h" diff --git a/libavcodec/tiff_common.c b/libavcodec/tiff_common.c index 2b872ea7e2..22ebca814c 100644 --- a/libavcodec/tiff_common.c +++ b/libavcodec/tiff_common.c @@ -26,6 +26,7 @@ */ #include "libavutil/bprint.h" +#include "libavutil/mem.h" #include "tiff_common.h" diff --git a/libavcodec/tiffenc.c b/libavcodec/tiffenc.c index 7c3c03f1f3..25539d03dc 100644 --- a/libavcodec/tiffenc.c +++ b/libavcodec/tiffenc.c @@ -31,6 +31,7 @@ #endif #include "libavutil/log.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "avcodec.h" diff --git a/libavcodec/truemotion2.c b/libavcodec/truemotion2.c index 366d8aefc1..7ae9a67ec4 100644 --- a/libavcodec/truemotion2.c +++ b/libavcodec/truemotion2.c @@ -26,6 +26,7 @@ #include +#include "libavutil/mem.h" #include "avcodec.h" #include "bswapdsp.h" #include "bytestream.h" diff --git a/libavcodec/tscc.c b/libavcodec/tscc.c index 346d93e1f2..575173698c 100644 --- a/libavcodec/tscc.c +++ b/libavcodec/tscc.c @@ -34,6 +34,7 @@ * Supports: BGR8,BGR555,BGR24 - only BGR8 and BGR555 tested */ +#include "libavutil/mem.h" #include "avcodec.h" #include "codec_internal.h" #include "decode.h" diff --git a/libavcodec/tscc2.c b/libavcodec/tscc2.c index 168efe93f6..cfe5a6e752 100644 --- a/libavcodec/tscc2.c +++ b/libavcodec/tscc2.c @@ -26,6 +26,7 @@ #include +#include "libavutil/mem.h" #include "libavutil/thread.h" #define BITSTREAM_READER_LE diff --git a/libavcodec/tta.c b/libavcodec/tta.c index 7763ed7ffc..467c78514f 100644 --- a/libavcodec/tta.c +++ b/libavcodec/tta.c @@ -32,6 +32,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/crc.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #define BITSTREAM_READER_LE diff --git a/libavcodec/ttaenc.c b/libavcodec/ttaenc.c index db79c38b43..1b9aeec8ff 100644 --- a/libavcodec/ttaenc.c +++ b/libavcodec/ttaenc.c @@ -26,6 +26,7 @@ #include "encode.h" #include "put_bits.h" #include "libavutil/crc.h" +#include "libavutil/mem.h" typedef struct TTAEncContext { const AVCRC *crc_table; diff --git a/libavcodec/ttmlenc.c b/libavcodec/ttmlenc.c index 779cb75199..897e16ebb1 100644 --- a/libavcodec/ttmlenc.c +++ b/libavcodec/ttmlenc.c @@ -31,6 +31,7 @@ #include "codec_internal.h" #include "libavutil/bprint.h" #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "ass_split.h" #include "ttmlenc.h" diff --git a/libavcodec/twinvq.c b/libavcodec/twinvq.c index 4cc0583f8a..69d8f5536a 100644 --- a/libavcodec/twinvq.c +++ b/libavcodec/twinvq.c @@ -24,6 +24,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/float_dsp.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "decode.h" #include "lsp.h" diff --git a/libavcodec/utvideodec.c b/libavcodec/utvideodec.c index ce5d00f7af..49e34cc90a 100644 --- a/libavcodec/utvideodec.c +++ b/libavcodec/utvideodec.c @@ -31,6 +31,7 @@ #define UNCHECKED_BITSTREAM_READER 1 #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "avcodec.h" #include "bswapdsp.h" diff --git a/libavcodec/utvideoenc.c b/libavcodec/utvideoenc.c index 36dcb8283a..59e198458b 100644 --- a/libavcodec/utvideoenc.c +++ b/libavcodec/utvideoenc.c @@ -26,6 +26,7 @@ #include "libavutil/imgutils.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avcodec.h" @@ -35,7 +36,6 @@ #include "bytestream.h" #include "lossless_videoencdsp.h" #include "put_bits.h" -#include "mathops.h" #include "utvideo.h" #include "huffman.h" diff --git a/libavcodec/v210dec.c b/libavcodec/v210dec.c index d80fb4e7c6..5cead150d3 100644 --- a/libavcodec/v210dec.c +++ b/libavcodec/v210dec.c @@ -29,6 +29,7 @@ #include "libavutil/imgutils.h" #include "libavutil/internal.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "thread.h" typedef struct ThreadData { diff --git a/libavcodec/v4l2_context.c b/libavcodec/v4l2_context.c index f20f713e1d..be1df3785b 100644 --- a/libavcodec/v4l2_context.c +++ b/libavcodec/v4l2_context.c @@ -27,6 +27,7 @@ #include #include #include +#include "libavutil/mem.h" #include "libavcodec/avcodec.h" #include "decode.h" #include "v4l2_buffers.h" diff --git a/libavcodec/v4l2_m2m.c b/libavcodec/v4l2_m2m.c index bac3eb0588..ac086a7913 100644 --- a/libavcodec/v4l2_m2m.c +++ b/libavcodec/v4l2_m2m.c @@ -28,6 +28,7 @@ #include #include #include "libavcodec/avcodec.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "libavutil/imgutils.h" #include "libavutil/pixfmt.h" diff --git a/libavcodec/vaapi_decode.c b/libavcodec/vaapi_decode.c index cca94b5336..5665639dd7 100644 --- a/libavcodec/vaapi_decode.c +++ b/libavcodec/vaapi_decode.c @@ -20,6 +20,7 @@ #include "libavutil/avassert.h" #include "libavutil/common.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "avcodec.h" diff --git a/libavcodec/vaapi_encode.c b/libavcodec/vaapi_encode.c index 940f0678a5..ca6e6911ff 100644 --- a/libavcodec/vaapi_encode.c +++ b/libavcodec/vaapi_encode.c @@ -25,6 +25,7 @@ #include "libavutil/common.h" #include "libavutil/internal.h" #include "libavutil/log.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "vaapi_encode.h" diff --git a/libavcodec/vaapi_encode_h264.c b/libavcodec/vaapi_encode_h264.c index 37df9103ae..bf51df0f51 100644 --- a/libavcodec/vaapi_encode_h264.c +++ b/libavcodec/vaapi_encode_h264.c @@ -23,8 +23,8 @@ #include "libavutil/avassert.h" #include "libavutil/common.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" -#include "libavutil/internal.h" #include "libavutil/opt.h" #include "atsc_a53.h" @@ -34,7 +34,6 @@ #include "codec_internal.h" #include "h264.h" #include "h264_levels.h" -#include "h264_sei.h" #include "h2645data.h" #include "vaapi_encode.h" #include "version.h" diff --git a/libavcodec/vaapi_encode_h265.c b/libavcodec/vaapi_encode_h265.c index c4aabbf5ed..2777632fb6 100644 --- a/libavcodec/vaapi_encode_h265.c +++ b/libavcodec/vaapi_encode_h265.c @@ -23,6 +23,7 @@ #include "libavutil/avassert.h" #include "libavutil/common.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "libavutil/opt.h" #include "libavutil/mastering_display_metadata.h" @@ -35,8 +36,6 @@ #include "h2645data.h" #include "h265_profile_level.h" #include "hevc.h" -#include "hevc_sei.h" -#include "put_bits.h" #include "vaapi_encode.h" enum { diff --git a/libavcodec/vaapi_vc1.c b/libavcodec/vaapi_vc1.c index 09a5c852fc..5594118a69 100644 --- a/libavcodec/vaapi_vc1.c +++ b/libavcodec/vaapi_vc1.c @@ -22,6 +22,7 @@ #include "config_components.h" +#include "libavutil/mem.h" #include "hwaccel_internal.h" #include "mpegvideodec.h" #include "vaapi_decode.h" diff --git a/libavcodec/vb.c b/libavcodec/vb.c index 5744faa983..0a9528a8d2 100644 --- a/libavcodec/vb.c +++ b/libavcodec/vb.c @@ -24,6 +24,7 @@ * VB Video decoder */ +#include "libavutil/mem.h" #include "avcodec.h" #include "bytestream.h" #include "codec_internal.h" diff --git a/libavcodec/vble.c b/libavcodec/vble.c index 7711bf1bb1..32157913c7 100644 --- a/libavcodec/vble.c +++ b/libavcodec/vble.c @@ -25,13 +25,13 @@ */ #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #define BITSTREAM_READER_LE #include "avcodec.h" #include "codec_internal.h" #include "get_bits.h" #include "lossless_videodsp.h" -#include "mathops.h" #include "thread.h" typedef struct VBLEContext { diff --git a/libavcodec/vbndec.c b/libavcodec/vbndec.c index 68b2236124..4a38b02168 100644 --- a/libavcodec/vbndec.c +++ b/libavcodec/vbndec.c @@ -30,6 +30,7 @@ #include "texturedsp.h" #include "vbn.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" typedef struct VBNContext { TextureDSPContext texdsp; diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c index 3ca478e82a..2c413e0bf1 100644 --- a/libavcodec/vc1dec.c +++ b/libavcodec/vc1dec.c @@ -33,7 +33,6 @@ #include "codec_internal.h" #include "decode.h" #include "get_bits.h" -#include "h263dec.h" #include "hwaccel_internal.h" #include "hwconfig.h" #include "mpeg_er.h" @@ -48,6 +47,7 @@ #include "libavutil/attributes.h" #include "libavutil/avassert.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/thread.h" diff --git a/libavcodec/vc2enc.c b/libavcodec/vc2enc.c index 6fbac29032..365d43146d 100644 --- a/libavcodec/vc2enc.c +++ b/libavcodec/vc2enc.c @@ -19,6 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "libavutil/opt.h" #include "libavutil/version.h" diff --git a/libavcodec/vdpau.c b/libavcodec/vdpau.c index 538c57f9e8..6df3e88dac 100644 --- a/libavcodec/vdpau.c +++ b/libavcodec/vdpau.c @@ -23,14 +23,12 @@ #include "config_components.h" -#include - +#include "libavutil/mem.h" #include "avcodec.h" #include "decode.h" #include "hwaccel_internal.h" #include "internal.h" #include "mpegvideodec.h" -#include "vc1.h" #include "vdpau.h" #include "vdpau_internal.h" diff --git a/libavcodec/videotoolbox.c b/libavcodec/videotoolbox.c index f4da80640d..d6990a39c0 100644 --- a/libavcodec/videotoolbox.c +++ b/libavcodec/videotoolbox.c @@ -24,6 +24,7 @@ #include "config_components.h" #include "videotoolbox.h" #include "libavutil/hwcontext_videotoolbox.h" +#include "libavutil/mem.h" #include "vt_internal.h" #include "libavutil/avutil.h" #include "libavutil/hwcontext.h" diff --git a/libavcodec/videotoolbox_vp9.c b/libavcodec/videotoolbox_vp9.c index f5489854e3..da94ff4e54 100644 --- a/libavcodec/videotoolbox_vp9.c +++ b/libavcodec/videotoolbox_vp9.c @@ -23,6 +23,7 @@ #include "config.h" #include "videotoolbox.h" #include "libavutil/hwcontext_videotoolbox.h" +#include "libavutil/mem.h" #include "vt_internal.h" #include "libavutil/avassert.h" #include "libavutil/avutil.h" diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c index 15c34d59c3..42065cbcb3 100644 --- a/libavcodec/videotoolboxenc.c +++ b/libavcodec/videotoolboxenc.c @@ -24,6 +24,7 @@ #include #include #include "avcodec.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/avassert.h" #include "libavutil/avstring.h" diff --git a/libavcodec/vmdvideo.c b/libavcodec/vmdvideo.c index 2da8af31f5..b168a931ce 100644 --- a/libavcodec/vmdvideo.c +++ b/libavcodec/vmdvideo.c @@ -37,6 +37,7 @@ #include "libavutil/common.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "codec_internal.h" diff --git a/libavcodec/vmixdec.c b/libavcodec/vmixdec.c index ab283d13db..f61fd02092 100644 --- a/libavcodec/vmixdec.c +++ b/libavcodec/vmixdec.c @@ -24,11 +24,11 @@ #include #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "avcodec.h" #include "codec_internal.h" -#include "decode.h" #define CACHED_BITSTREAM_READER !ARCH_X86_32 #include "golomb.h" #include "get_bits.h" diff --git a/libavcodec/vmnc.c b/libavcodec/vmnc.c index 17e3a2f3c1..6188aa7158 100644 --- a/libavcodec/vmnc.c +++ b/libavcodec/vmnc.c @@ -26,6 +26,7 @@ */ #include "libavutil/common.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "codec_internal.h" #include "decode.h" diff --git a/libavcodec/vorbis_parser.c b/libavcodec/vorbis_parser.c index d2c9e647ce..c6969f139f 100644 --- a/libavcodec/vorbis_parser.c +++ b/libavcodec/vorbis_parser.c @@ -28,9 +28,9 @@ #include "config_components.h" #include "libavutil/log.h" +#include "libavutil/mem.h" #include "get_bits.h" -#include "parser.h" #include "xiph.h" #include "vorbis_parser_internal.h" diff --git a/libavcodec/vorbisdec.c b/libavcodec/vorbisdec.c index 8462739c14..700c6c8918 100644 --- a/libavcodec/vorbisdec.c +++ b/libavcodec/vorbisdec.c @@ -31,6 +31,7 @@ #include "libavutil/avassert.h" #include "libavutil/float_dsp.h" +#include "libavutil/mem.h" #include "libavutil/tx.h" #define BITSTREAM_READER_LE diff --git a/libavcodec/vorbisenc.c b/libavcodec/vorbisenc.c index 378a3b38da..62684a7d8c 100644 --- a/libavcodec/vorbisenc.c +++ b/libavcodec/vorbisenc.c @@ -26,6 +26,7 @@ #include #include "libavutil/float_dsp.h" +#include "libavutil/mem.h" #include "libavutil/tx.h" #include "avcodec.h" diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c index 89946135dc..201bab0e32 100644 --- a/libavcodec/vp3.c +++ b/libavcodec/vp3.c @@ -37,6 +37,7 @@ #include "libavutil/emms.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/thread.h" diff --git a/libavcodec/vp56.c b/libavcodec/vp56.c index f2ee3fafd4..1da47ca43f 100644 --- a/libavcodec/vp56.c +++ b/libavcodec/vp56.c @@ -23,6 +23,7 @@ * VP5 and VP6 compatible video decoder (common features) */ +#include "libavutil/mem.h" #include "avcodec.h" #include "bytestream.h" #include "decode.h" diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c index dd6c1b361b..539b5c5395 100644 --- a/libavcodec/vp8.c +++ b/libavcodec/vp8.c @@ -26,6 +26,7 @@ #include "config_components.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "avcodec.h" diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c index 855936cdc1..6bcda8bfff 100644 --- a/libavcodec/vp9.c +++ b/libavcodec/vp9.c @@ -42,6 +42,7 @@ #include "vp9dec.h" #include "vpx_rac.h" #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "libavutil/video_enc_params.h" diff --git a/libavcodec/vqavideo.c b/libavcodec/vqavideo.c index 2977cf9a52..4fd1861d25 100644 --- a/libavcodec/vqavideo.c +++ b/libavcodec/vqavideo.c @@ -73,6 +73,7 @@ #include #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "bytestream.h" #include "codec_internal.h" diff --git a/libavcodec/vqcdec.c b/libavcodec/vqcdec.c index dc9248d99f..5c6cab3c1a 100644 --- a/libavcodec/vqcdec.c +++ b/libavcodec/vqcdec.c @@ -23,6 +23,7 @@ #include "get_bits.h" #include "codec_internal.h" #include "decode.h" +#include "libavutil/mem.h" #include "libavutil/thread.h" #define VECTOR_VLC_BITS 6 diff --git a/libavcodec/vulkan_decode.c b/libavcodec/vulkan_decode.c index 4561f26b62..9c6c2d4efb 100644 --- a/libavcodec/vulkan_decode.c +++ b/libavcodec/vulkan_decode.c @@ -21,6 +21,7 @@ #include "vulkan_decode.h" #include "config_components.h" #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "libavutil/vulkan_loader.h" #if CONFIG_H264_VULKAN_HWACCEL diff --git a/libavcodec/vulkan_hevc.c b/libavcodec/vulkan_hevc.c index 239bff75e5..2705a965b9 100644 --- a/libavcodec/vulkan_hevc.c +++ b/libavcodec/vulkan_hevc.c @@ -16,6 +16,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "hevcdec.h" #include "hevc_data.h" #include "hevc_ps.h" diff --git a/libavcodec/vulkan_video.c b/libavcodec/vulkan_video.c index 4be13ecc55..412ae9b61e 100644 --- a/libavcodec/vulkan_video.c +++ b/libavcodec/vulkan_video.c @@ -16,6 +16,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "vulkan_video.h" #define ASPECT_2PLANE (VK_IMAGE_ASPECT_PLANE_0_BIT | VK_IMAGE_ASPECT_PLANE_1_BIT) diff --git a/libavcodec/vvc/vvc_ps.c b/libavcodec/vvc/vvc_ps.c index 7972803da6..270e1c1535 100644 --- a/libavcodec/vvc/vvc_ps.c +++ b/libavcodec/vvc/vvc_ps.c @@ -20,8 +20,10 @@ * License along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ + #include "libavcodec/cbs_h266.h" -#include "libavutil/imgutils.h" +#include "libavutil/mem.h" +#include "libavutil/pixdesc.h" #include "libavcodec/refstruct.h" #include "vvc_data.h" #include "vvc_ps.h" diff --git a/libavcodec/vvc/vvc_refs.c b/libavcodec/vvc/vvc_refs.c index afcfc09da7..3128122fff 100644 --- a/libavcodec/vvc/vvc_refs.c +++ b/libavcodec/vvc/vvc_refs.c @@ -22,6 +22,7 @@ #include +#include "libavutil/mem.h" #include "libavutil/thread.h" #include "libavcodec/refstruct.h" #include "libavcodec/thread.h" diff --git a/libavcodec/vvc/vvc_thread.c b/libavcodec/vvc/vvc_thread.c index 31c931f050..59a8b203ce 100644 --- a/libavcodec/vvc/vvc_thread.c +++ b/libavcodec/vvc/vvc_thread.c @@ -23,6 +23,7 @@ #include #include "libavutil/executor.h" +#include "libavutil/mem.h" #include "libavutil/thread.h" #include "vvc_thread.h" diff --git a/libavcodec/vvc/vvcdec.c b/libavcodec/vvc/vvcdec.c index d5704aca25..8222f9d141 100644 --- a/libavcodec/vvc/vvcdec.c +++ b/libavcodec/vvc/vvcdec.c @@ -25,6 +25,7 @@ #include "libavcodec/profiles.h" #include "libavcodec/refstruct.h" #include "libavutil/cpu.h" +#include "libavutil/mem.h" #include "libavutil/thread.h" #include "vvcdec.h" diff --git a/libavcodec/vvc_parser.c b/libavcodec/vvc_parser.c index 245cb214c9..a6a5be27ae 100644 --- a/libavcodec/vvc_parser.c +++ b/libavcodec/vvc_parser.c @@ -20,6 +20,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "cbs.h" #include "cbs_h266.h" #include "parser.h" diff --git a/libavcodec/wavarc.c b/libavcodec/wavarc.c index aa1af6330b..7083494cd8 100644 --- a/libavcodec/wavarc.c +++ b/libavcodec/wavarc.c @@ -19,13 +19,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "libavutil/internal.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "codec_internal.h" #include "decode.h" #include "get_bits.h" -#include "bytestream.h" #include "mathops.h" #include "unary.h" diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c index 09b8731465..7e60a1456a 100644 --- a/libavcodec/wavpack.c +++ b/libavcodec/wavpack.c @@ -20,8 +20,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "libavutil/buffer.h" #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #define BITSTREAM_READER_LE #include "avcodec.h" diff --git a/libavcodec/wavpackenc.c b/libavcodec/wavpackenc.c index 33a5dfcc89..ba0371592d 100644 --- a/libavcodec/wavpackenc.c +++ b/libavcodec/wavpackenc.c @@ -22,6 +22,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avcodec.h" #include "codec_internal.h" diff --git a/libavcodec/webp.c b/libavcodec/webp.c index 9308ea2b69..dbcc5e73eb 100644 --- a/libavcodec/webp.c +++ b/libavcodec/webp.c @@ -41,6 +41,7 @@ */ #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #define BITSTREAM_READER_LE #include "avcodec.h" diff --git a/libavcodec/wma.c b/libavcodec/wma.c index 5eacf230fa..da9c914b57 100644 --- a/libavcodec/wma.c +++ b/libavcodec/wma.c @@ -20,6 +20,7 @@ */ #include "libavutil/attributes.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "sinewin.h" diff --git a/libavcodec/wmaenc.c b/libavcodec/wmaenc.c index 80ff696be6..6949f08fb6 100644 --- a/libavcodec/wmaenc.c +++ b/libavcodec/wmaenc.c @@ -23,6 +23,7 @@ #include "libavutil/attributes.h" #include "libavutil/ffmath.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "codec_internal.h" diff --git a/libavcodec/wmalosslessdec.c b/libavcodec/wmalosslessdec.c index 5d1c7ac66b..9559fe1faf 100644 --- a/libavcodec/wmalosslessdec.c +++ b/libavcodec/wmalosslessdec.c @@ -26,6 +26,7 @@ #include "libavutil/attributes.h" #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "avcodec.h" diff --git a/libavcodec/wmaprodec.c b/libavcodec/wmaprodec.c index e3dee9039c..a6c4a75632 100644 --- a/libavcodec/wmaprodec.c +++ b/libavcodec/wmaprodec.c @@ -89,6 +89,7 @@ #include #include "libavutil/audio_fifo.h" +#include "libavutil/mem.h" #include "libavutil/tx.h" #include "libavutil/ffmath.h" #include "libavutil/float_dsp.h" diff --git a/libavcodec/wmavoice.c b/libavcodec/wmavoice.c index 4e93aadab2..258c71330c 100644 --- a/libavcodec/wmavoice.c +++ b/libavcodec/wmavoice.c @@ -29,6 +29,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/float_dsp.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/thread.h" #include "libavutil/tx.h" diff --git a/libavcodec/wmv2enc.c b/libavcodec/wmv2enc.c index 8eb56444a3..13ec2bf6ff 100644 --- a/libavcodec/wmv2enc.c +++ b/libavcodec/wmv2enc.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "avcodec.h" #include "codec_internal.h" #include "h263.h" diff --git a/libavcodec/wrapped_avframe.c b/libavcodec/wrapped_avframe.c index 0278ea42ba..a513bb3d39 100644 --- a/libavcodec/wrapped_avframe.c +++ b/libavcodec/wrapped_avframe.c @@ -28,10 +28,9 @@ #include "codec_internal.h" #include "decode.h" -#include "libavutil/internal.h" #include "libavutil/frame.h" #include "libavutil/buffer.h" -#include "libavutil/pixdesc.h" +#include "libavutil/mem.h" static void wrapped_avframe_release_buffer(void *unused, uint8_t *data) { diff --git a/libavcodec/xpmdec.c b/libavcodec/xpmdec.c index b915abe0bf..6db9f5248e 100644 --- a/libavcodec/xpmdec.c +++ b/libavcodec/xpmdec.c @@ -22,6 +22,7 @@ */ #include "libavutil/avstring.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "codec_internal.h" #include "decode.h" diff --git a/libavcodec/xsubdec.c b/libavcodec/xsubdec.c index f86b7c58e7..db7873593c 100644 --- a/libavcodec/xsubdec.c +++ b/libavcodec/xsubdec.c @@ -21,6 +21,7 @@ #include "libavutil/mathematics.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "get_bits.h" #include "bytestream.h" diff --git a/libavcodec/zmbv.c b/libavcodec/zmbv.c index d309a8612b..2c09ccbd73 100644 --- a/libavcodec/zmbv.c +++ b/libavcodec/zmbv.c @@ -29,6 +29,7 @@ #include "libavutil/common.h" #include "libavutil/imgutils.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "codec_internal.h" #include "decode.h" diff --git a/libavcodec/zmbvenc.c b/libavcodec/zmbvenc.c index d20330568d..04889b97d2 100644 --- a/libavcodec/zmbvenc.c +++ b/libavcodec/zmbvenc.c @@ -24,11 +24,10 @@ * Zip Motion Blocks Video encoder */ -#include -#include +#include -#include "libavutil/common.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avcodec.h" #include "codec_internal.h" #include "encode.h" diff --git a/libavdevice/alsa.c b/libavdevice/alsa.c index b055f6c1a6..d62ccc09c6 100644 --- a/libavdevice/alsa.c +++ b/libavdevice/alsa.c @@ -34,6 +34,7 @@ #include "avdevice.h" #include "libavutil/avassert.h" #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "alsa.h" diff --git a/libavdevice/android_camera.c b/libavdevice/android_camera.c index 3aa8597c63..5de44e6d86 100644 --- a/libavdevice/android_camera.c +++ b/libavdevice/android_camera.c @@ -39,6 +39,7 @@ #include "libavutil/display.h" #include "libavutil/imgutils.h" #include "libavutil/log.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/parseutils.h" #include "libavutil/pixfmt.h" diff --git a/libavdevice/audiotoolbox.m b/libavdevice/audiotoolbox.m index 3bd707f236..7d95c34593 100644 --- a/libavdevice/audiotoolbox.m +++ b/libavdevice/audiotoolbox.m @@ -28,6 +28,7 @@ #import #include +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavformat/internal.h" #include "libavformat/mux.h" diff --git a/libavdevice/avdevice.c b/libavdevice/avdevice.c index cd7b03ef48..5712fa47cf 100644 --- a/libavdevice/avdevice.c +++ b/libavdevice/avdevice.c @@ -17,6 +17,7 @@ */ #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "avdevice.h" #include "internal.h" #include "libavformat/demux.h" diff --git a/libavdevice/avfoundation.m b/libavdevice/avfoundation.m index d9b17ccdae..e558ad7d90 100644 --- a/libavdevice/avfoundation.m +++ b/libavdevice/avfoundation.m @@ -29,6 +29,7 @@ #include #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "libavutil/opt.h" #include "libavutil/avstring.h" diff --git a/libavdevice/bktr.c b/libavdevice/bktr.c index ac5b534868..eed75a9a92 100644 --- a/libavdevice/bktr.c +++ b/libavdevice/bktr.c @@ -29,6 +29,7 @@ #include "libavutil/file_open.h" #include "libavutil/internal.h" #include "libavutil/log.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/parseutils.h" #include "libavutil/time.h" diff --git a/libavdevice/caca.c b/libavdevice/caca.c index c3b2329758..42cceccf38 100644 --- a/libavdevice/caca.c +++ b/libavdevice/caca.c @@ -19,6 +19,7 @@ */ #include +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "libavformat/mux.h" diff --git a/libavdevice/decklink_common.h b/libavdevice/decklink_common.h index 34ab1b9670..c54a635876 100644 --- a/libavdevice/decklink_common.h +++ b/libavdevice/decklink_common.h @@ -30,6 +30,7 @@ #endif extern "C" { +#include "libavutil/mem.h" #include "libavcodec/packet_internal.h" #include "libavfilter/ccfifo.h" } diff --git a/libavdevice/dshow_enummediatypes.c b/libavdevice/dshow_enummediatypes.c index 4cb7057e17..64a236cc12 100644 --- a/libavdevice/dshow_enummediatypes.c +++ b/libavdevice/dshow_enummediatypes.c @@ -19,6 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "dshow_capture.h" DECLARE_QUERYINTERFACE(enummediatypes, DShowEnumMediaTypes, diff --git a/libavdevice/dshow_pin.c b/libavdevice/dshow_pin.c index f846b68918..baa001b5dd 100644 --- a/libavdevice/dshow_pin.c +++ b/libavdevice/dshow_pin.c @@ -19,6 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "dshow_capture.h" #include diff --git a/libavdevice/fbdev_common.c b/libavdevice/fbdev_common.c index 2c70abb1f0..d8b99614d3 100644 --- a/libavdevice/fbdev_common.c +++ b/libavdevice/fbdev_common.c @@ -27,6 +27,7 @@ #include "fbdev_common.h" #include "libavutil/common.h" #include "libavutil/file_open.h" +#include "libavutil/mem.h" #include "avdevice.h" struct rgb_pixfmt_map_entry { diff --git a/libavdevice/gdigrab.c b/libavdevice/gdigrab.c index 58e876ea9e..c91661c556 100644 --- a/libavdevice/gdigrab.c +++ b/libavdevice/gdigrab.c @@ -31,6 +31,7 @@ #include "config.h" #include "libavformat/demux.h" #include "libavformat/internal.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/time.h" #include "libavutil/wchar_filename.h" diff --git a/libavdevice/iec61883.c b/libavdevice/iec61883.c index 689bcc81d5..670e29aa30 100644 --- a/libavdevice/iec61883.c +++ b/libavdevice/iec61883.c @@ -33,6 +33,7 @@ #include "libavformat/demux.h" #include "libavformat/dv.h" #include "libavformat/mpegts.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avdevice.h" diff --git a/libavdevice/jack.c b/libavdevice/jack.c index 40f2af5ccc..d52bb06822 100644 --- a/libavdevice/jack.c +++ b/libavdevice/jack.c @@ -27,6 +27,7 @@ #include "libavutil/internal.h" #include "libavutil/log.h" #include "libavutil/fifo.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/time.h" #include "libavformat/avformat.h" diff --git a/libavdevice/kmsgrab.c b/libavdevice/kmsgrab.c index bf6341e9fd..3d15754f3b 100644 --- a/libavdevice/kmsgrab.c +++ b/libavdevice/kmsgrab.c @@ -36,6 +36,7 @@ #include "libavutil/hwcontext_drm.h" #include "libavutil/internal.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixfmt.h" #include "libavutil/pixdesc.h" diff --git a/libavdevice/opengl_enc.c b/libavdevice/opengl_enc.c index 69de6fad03..6f7a30ff9e 100644 --- a/libavdevice/opengl_enc.c +++ b/libavdevice/opengl_enc.c @@ -50,6 +50,7 @@ #include "libavutil/common.h" #include "libavutil/frame.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "libavutil/log.h" #include "libavutil/opt.h" diff --git a/libavdevice/sdl2.c b/libavdevice/sdl2.c index ec3c3d19b5..779c8e08b0 100644 --- a/libavdevice/sdl2.c +++ b/libavdevice/sdl2.c @@ -26,13 +26,10 @@ #include #include -#include "libavutil/avstring.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" -#include "libavutil/parseutils.h" #include "libavutil/pixdesc.h" -#include "libavutil/time.h" -#include "avdevice.h" #include "libavformat/mux.h" typedef struct { diff --git a/libavdevice/sndio.c b/libavdevice/sndio.c index 46f287588d..1a4f20344c 100644 --- a/libavdevice/sndio.c +++ b/libavdevice/sndio.c @@ -22,7 +22,7 @@ #include #include -#include "avdevice.h" +#include "libavutil/mem.h" #include "libavdevice/sndio.h" diff --git a/libavdevice/utils.c b/libavdevice/utils.c index c72a839dfa..74574715ef 100644 --- a/libavdevice/utils.c +++ b/libavdevice/utils.c @@ -17,6 +17,7 @@ */ #include "internal.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavformat/avformat.h" #include "libavformat/demux.h" diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c index 51291246b3..3706582bc6 100644 --- a/libavdevice/v4l2.c +++ b/libavdevice/v4l2.c @@ -35,6 +35,7 @@ #include "libavutil/avassert.h" #include "libavutil/avstring.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/parseutils.h" #include "libavutil/pixdesc.h" #include "libavutil/time.h" diff --git a/libavdevice/vfwcap.c b/libavdevice/vfwcap.c index dd077dd08c..1fda90efa1 100644 --- a/libavdevice/vfwcap.c +++ b/libavdevice/vfwcap.c @@ -21,6 +21,7 @@ #include "libavutil/internal.h" #include "libavutil/log.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/parseutils.h" diff --git a/libavdevice/xcbgrab.c b/libavdevice/xcbgrab.c index b2ff1f9828..2e6b118d8c 100644 --- a/libavdevice/xcbgrab.c +++ b/libavdevice/xcbgrab.c @@ -40,6 +40,7 @@ #include "libavutil/internal.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/parseutils.h" #include "libavutil/time.h" diff --git a/libavdevice/xv.c b/libavdevice/xv.c index cba933ef17..d1bc4e8d69 100644 --- a/libavdevice/xv.c +++ b/libavdevice/xv.c @@ -33,6 +33,7 @@ #include #include "libavutil/frame.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "libavutil/imgutils.h" diff --git a/libavfilter/aeval.c b/libavfilter/aeval.c index b26d75f129..d5ea375a6d 100644 --- a/libavfilter/aeval.c +++ b/libavfilter/aeval.c @@ -28,8 +28,8 @@ #include "libavutil/avstring.h" #include "libavutil/channel_layout.h" #include "libavutil/eval.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" -#include "libavutil/parseutils.h" #include "avfilter.h" #include "audio.h" #include "filters.h" diff --git a/libavfilter/af_aap.c b/libavfilter/af_aap.c index 85d905c1ab..e4cd6f8281 100644 --- a/libavfilter/af_aap.c +++ b/libavfilter/af_aap.c @@ -21,6 +21,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/common.h" #include "libavutil/float_dsp.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "audio.h" diff --git a/libavfilter/af_acrossover.c b/libavfilter/af_acrossover.c index 0e7781c77a..04cdf8f005 100644 --- a/libavfilter/af_acrossover.c +++ b/libavfilter/af_acrossover.c @@ -26,9 +26,9 @@ #include "libavutil/attributes.h" #include "libavutil/avstring.h" #include "libavutil/channel_layout.h" -#include "libavutil/eval.h" #include "libavutil/float_dsp.h" #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "audio.h" diff --git a/libavfilter/af_acrusher.c b/libavfilter/af_acrusher.c index 5fc942224f..48d7029b05 100644 --- a/libavfilter/af_acrusher.c +++ b/libavfilter/af_acrusher.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avfilter.h" #include "internal.h" diff --git a/libavfilter/af_adeclick.c b/libavfilter/af_adeclick.c index 3789225739..a5ae1d872b 100644 --- a/libavfilter/af_adeclick.c +++ b/libavfilter/af_adeclick.c @@ -19,6 +19,7 @@ */ #include "libavutil/audio_fifo.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/tx.h" #include "avfilter.h" diff --git a/libavfilter/af_adecorrelate.c b/libavfilter/af_adecorrelate.c index 87355e72e0..7216c3fc83 100644 --- a/libavfilter/af_adecorrelate.c +++ b/libavfilter/af_adecorrelate.c @@ -22,6 +22,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/ffmath.h" #include "libavutil/lfg.h" +#include "libavutil/mem.h" #include "libavutil/random_seed.h" #include "libavutil/opt.h" #include "avfilter.h" diff --git a/libavfilter/af_adelay.c b/libavfilter/af_adelay.c index 87a86170a8..8c4d4db287 100644 --- a/libavfilter/af_adelay.c +++ b/libavfilter/af_adelay.c @@ -19,7 +19,7 @@ */ #include "libavutil/avstring.h" -#include "libavutil/eval.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/samplefmt.h" #include "avfilter.h" diff --git a/libavfilter/af_adrc.c b/libavfilter/af_adrc.c index 34e5433a6b..7a7d5e0370 100644 --- a/libavfilter/af_adrc.c +++ b/libavfilter/af_adrc.c @@ -22,6 +22,7 @@ #include "libavutil/eval.h" #include "libavutil/ffmath.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/tx.h" #include "audio.h" diff --git a/libavfilter/af_adynamicequalizer.c b/libavfilter/af_adynamicequalizer.c index aa1dc5f45c..59fdaf99b7 100644 --- a/libavfilter/af_adynamicequalizer.c +++ b/libavfilter/af_adynamicequalizer.c @@ -19,6 +19,7 @@ #include #include "libavutil/ffmath.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avfilter.h" #include "audio.h" diff --git a/libavfilter/af_aecho.c b/libavfilter/af_aecho.c index 0b57c0e587..68fa5aaf7b 100644 --- a/libavfilter/af_aecho.c +++ b/libavfilter/af_aecho.c @@ -20,6 +20,7 @@ #include "libavutil/avassert.h" #include "libavutil/avstring.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/samplefmt.h" #include "avfilter.h" diff --git a/libavfilter/af_aexciter.c b/libavfilter/af_aexciter.c index 400d6707b5..1f1639d24c 100644 --- a/libavfilter/af_aexciter.c +++ b/libavfilter/af_aexciter.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avfilter.h" #include "internal.h" diff --git a/libavfilter/af_afftdn.c b/libavfilter/af_afftdn.c index b3ee6a4222..96c2246074 100644 --- a/libavfilter/af_afftdn.c +++ b/libavfilter/af_afftdn.c @@ -22,6 +22,7 @@ #include "libavutil/avstring.h" #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/tx.h" #include "avfilter.h" diff --git a/libavfilter/af_afftfilt.c b/libavfilter/af_afftfilt.c index 2b2a70b0b6..aa3e868caf 100644 --- a/libavfilter/af_afftfilt.c +++ b/libavfilter/af_afftfilt.c @@ -19,6 +19,7 @@ */ #include "libavutil/avstring.h" +#include "libavutil/mem.h" #include "libavfilter/internal.h" #include "libavutil/common.h" #include "libavutil/cpu.h" diff --git a/libavfilter/af_afir.c b/libavfilter/af_afir.c index 6e54a7239d..8997fbd7c9 100644 --- a/libavfilter/af_afir.c +++ b/libavfilter/af_afir.c @@ -26,16 +26,14 @@ #include #include "libavutil/cpu.h" +#include "libavutil/mem.h" #include "libavutil/tx.h" #include "libavutil/avstring.h" #include "libavutil/channel_layout.h" -#include "libavutil/common.h" #include "libavutil/float_dsp.h" #include "libavutil/frame.h" -#include "libavutil/intreadwrite.h" #include "libavutil/log.h" #include "libavutil/opt.h" -#include "libavutil/rational.h" #include "audio.h" #include "avfilter.h" @@ -44,7 +42,6 @@ #include "internal.h" #include "af_afir.h" #include "af_afirdsp.h" -#include "video.h" #define DEPTH 32 #include "afir_template.c" diff --git a/libavfilter/af_afwtdn.c b/libavfilter/af_afwtdn.c index 8d69259e75..fb172f26cc 100644 --- a/libavfilter/af_afwtdn.c +++ b/libavfilter/af_afwtdn.c @@ -21,6 +21,7 @@ #include #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avfilter.h" #include "audio.h" diff --git a/libavfilter/af_aiir.c b/libavfilter/af_aiir.c index ff35f6b926..b5e5b41db6 100644 --- a/libavfilter/af_aiir.c +++ b/libavfilter/af_aiir.c @@ -22,6 +22,7 @@ #include "libavutil/avstring.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/xga_font_data.h" #include "audio.h" diff --git a/libavfilter/af_alimiter.c b/libavfilter/af_alimiter.c index 9a86704764..6ccce2d7de 100644 --- a/libavfilter/af_alimiter.c +++ b/libavfilter/af_alimiter.c @@ -27,6 +27,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/common.h" #include "libavutil/fifo.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "audio.h" diff --git a/libavfilter/af_amerge.c b/libavfilter/af_amerge.c index 5daf639e74..493c852138 100644 --- a/libavfilter/af_amerge.c +++ b/libavfilter/af_amerge.c @@ -26,6 +26,7 @@ #include "libavutil/avstring.h" #include "libavutil/bprint.h" #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avfilter.h" #include "filters.h" diff --git a/libavfilter/af_amix.c b/libavfilter/af_amix.c index f55c5724d6..ade4ef76a8 100644 --- a/libavfilter/af_amix.c +++ b/libavfilter/af_amix.c @@ -37,6 +37,7 @@ #include "libavutil/eval.h" #include "libavutil/float_dsp.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/samplefmt.h" diff --git a/libavfilter/af_amultiply.c b/libavfilter/af_amultiply.c index 4ae355c794..b24254e9dc 100644 --- a/libavfilter/af_amultiply.c +++ b/libavfilter/af_amultiply.c @@ -21,6 +21,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/common.h" #include "libavutil/float_dsp.h" +#include "libavutil/mem.h" #include "audio.h" #include "avfilter.h" diff --git a/libavfilter/af_anequalizer.c b/libavfilter/af_anequalizer.c index 37ebcb5db1..b85190db34 100644 --- a/libavfilter/af_anequalizer.c +++ b/libavfilter/af_anequalizer.c @@ -22,6 +22,7 @@ #include "libavutil/intreadwrite.h" #include "libavutil/avstring.h" #include "libavutil/ffmath.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/parseutils.h" #include "avfilter.h" diff --git a/libavfilter/af_anlms.c b/libavfilter/af_anlms.c index 9b0d11cd6d..e1c85da053 100644 --- a/libavfilter/af_anlms.c +++ b/libavfilter/af_anlms.c @@ -21,6 +21,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/common.h" #include "libavutil/float_dsp.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "audio.h" diff --git a/libavfilter/af_aphaser.c b/libavfilter/af_aphaser.c index 4690276a65..f3334aa2c4 100644 --- a/libavfilter/af_aphaser.c +++ b/libavfilter/af_aphaser.c @@ -24,6 +24,7 @@ */ #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "audio.h" #include "avfilter.h" diff --git a/libavfilter/af_apsyclip.c b/libavfilter/af_apsyclip.c index 6a0c23d6eb..b542166b56 100644 --- a/libavfilter/af_apsyclip.c +++ b/libavfilter/af_apsyclip.c @@ -19,6 +19,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/tx.h" #include "audio.h" diff --git a/libavfilter/af_arls.c b/libavfilter/af_arls.c index bbe8e3cb21..aab0990409 100644 --- a/libavfilter/af_arls.c +++ b/libavfilter/af_arls.c @@ -20,6 +20,7 @@ #include "libavutil/common.h" #include "libavutil/float_dsp.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "audio.h" diff --git a/libavfilter/af_arnndn.c b/libavfilter/af_arnndn.c index ee005eb34c..b29af87df9 100644 --- a/libavfilter/af_arnndn.c +++ b/libavfilter/af_arnndn.c @@ -34,6 +34,7 @@ #include "libavutil/avassert.h" #include "libavutil/file_open.h" #include "libavutil/float_dsp.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/opt.h" #include "libavutil/tx.h" diff --git a/libavfilter/af_asdr.c b/libavfilter/af_asdr.c index bb5c30faba..9f5ca80d78 100644 --- a/libavfilter/af_asdr.c +++ b/libavfilter/af_asdr.c @@ -22,6 +22,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/common.h" +#include "libavutil/mem.h" #include "avfilter.h" #include "filters.h" diff --git a/libavfilter/af_ashowinfo.c b/libavfilter/af_ashowinfo.c index b1b462d68f..de3c81f90b 100644 --- a/libavfilter/af_ashowinfo.c +++ b/libavfilter/af_ashowinfo.c @@ -24,14 +24,11 @@ */ #include -#include #include "libavutil/adler32.h" #include "libavutil/attributes.h" #include "libavutil/channel_layout.h" -#include "libavutil/common.h" #include "libavutil/downmix_info.h" -#include "libavutil/intreadwrite.h" #include "libavutil/mem.h" #include "libavutil/replaygain.h" #include "libavutil/timestamp.h" diff --git a/libavfilter/af_aspectralstats.c b/libavfilter/af_aspectralstats.c index 49c9d97e8d..592d7e5530 100644 --- a/libavfilter/af_aspectralstats.c +++ b/libavfilter/af_aspectralstats.c @@ -21,6 +21,7 @@ #include #include +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/tx.h" #include "audio.h" diff --git a/libavfilter/af_asr.c b/libavfilter/af_asr.c index 884e17afb7..9d3c88f2a0 100644 --- a/libavfilter/af_asr.c +++ b/libavfilter/af_asr.c @@ -22,6 +22,7 @@ #include "libavutil/avstring.h" #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "audio.h" #include "avfilter.h" diff --git a/libavfilter/af_astats.c b/libavfilter/af_astats.c index 9e8c963582..c7e7c11b7d 100644 --- a/libavfilter/af_astats.c +++ b/libavfilter/af_astats.c @@ -22,6 +22,7 @@ #include #include +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "audio.h" #include "avfilter.h" diff --git a/libavfilter/af_asubboost.c b/libavfilter/af_asubboost.c index 31db4b81a0..f559895418 100644 --- a/libavfilter/af_asubboost.c +++ b/libavfilter/af_asubboost.c @@ -18,6 +18,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/ffmath.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avfilter.h" #include "audio.h" diff --git a/libavfilter/af_atempo.c b/libavfilter/af_atempo.c index 654b080e89..0c36eb4dd7 100644 --- a/libavfilter/af_atempo.c +++ b/libavfilter/af_atempo.c @@ -40,9 +40,8 @@ #include #include "libavutil/avassert.h" -#include "libavutil/avstring.h" #include "libavutil/channel_layout.h" -#include "libavutil/eval.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/samplefmt.h" #include "libavutil/tx.h" diff --git a/libavfilter/af_biquads.c b/libavfilter/af_biquads.c index ddca9d8748..21d3acf850 100644 --- a/libavfilter/af_biquads.c +++ b/libavfilter/af_biquads.c @@ -67,6 +67,7 @@ #include "libavutil/avassert.h" #include "libavutil/channel_layout.h" #include "libavutil/ffmath.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "audio.h" #include "avfilter.h" diff --git a/libavfilter/af_channelmap.c b/libavfilter/af_channelmap.c index 64efacb576..0429490d9f 100644 --- a/libavfilter/af_channelmap.c +++ b/libavfilter/af_channelmap.c @@ -29,6 +29,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/common.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/samplefmt.h" diff --git a/libavfilter/af_channelsplit.c b/libavfilter/af_channelsplit.c index f026c74494..d18d91dcb6 100644 --- a/libavfilter/af_channelsplit.c +++ b/libavfilter/af_channelsplit.c @@ -26,6 +26,7 @@ #include "libavutil/attributes.h" #include "libavutil/channel_layout.h" #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "audio.h" diff --git a/libavfilter/af_chorus.c b/libavfilter/af_chorus.c index 19826cfb15..72dc8915d7 100644 --- a/libavfilter/af_chorus.c +++ b/libavfilter/af_chorus.c @@ -30,6 +30,7 @@ */ #include "libavutil/avstring.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "audio.h" #include "avfilter.h" diff --git a/libavfilter/af_compand.c b/libavfilter/af_compand.c index 3e799c3b15..880ee6241a 100644 --- a/libavfilter/af_compand.c +++ b/libavfilter/af_compand.c @@ -30,6 +30,7 @@ #include "libavutil/avassert.h" #include "libavutil/avstring.h" #include "libavutil/ffmath.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/samplefmt.h" #include "audio.h" diff --git a/libavfilter/af_crossfeed.c b/libavfilter/af_crossfeed.c index ee6540a9fc..36f05cfd21 100644 --- a/libavfilter/af_crossfeed.c +++ b/libavfilter/af_crossfeed.c @@ -18,6 +18,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/ffmath.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avfilter.h" #include "audio.h" diff --git a/libavfilter/af_deesser.c b/libavfilter/af_deesser.c index 16c10d21bc..917ef2f43f 100644 --- a/libavfilter/af_deesser.c +++ b/libavfilter/af_deesser.c @@ -21,6 +21,7 @@ */ #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avfilter.h" #include "audio.h" diff --git a/libavfilter/af_dialoguenhance.c b/libavfilter/af_dialoguenhance.c index 03bfccb076..76c9877238 100644 --- a/libavfilter/af_dialoguenhance.c +++ b/libavfilter/af_dialoguenhance.c @@ -19,6 +19,7 @@ */ #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/tx.h" #include "audio.h" diff --git a/libavfilter/af_drmeter.c b/libavfilter/af_drmeter.c index 5eea865575..0decc0fde6 100644 --- a/libavfilter/af_drmeter.c +++ b/libavfilter/af_drmeter.c @@ -21,6 +21,7 @@ #include #include "libavutil/ffmath.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "audio.h" #include "avfilter.h" diff --git a/libavfilter/af_dynaudnorm.c b/libavfilter/af_dynaudnorm.c index fb0581b6e4..846d62584b 100644 --- a/libavfilter/af_dynaudnorm.c +++ b/libavfilter/af_dynaudnorm.c @@ -29,6 +29,7 @@ #include "libavutil/avassert.h" #include "libavutil/channel_layout.h" #include "libavutil/eval.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #define MIN_FILTER_SIZE 3 diff --git a/libavfilter/af_firequalizer.c b/libavfilter/af_firequalizer.c index 657dfbc0ca..5108edca48 100644 --- a/libavfilter/af_firequalizer.c +++ b/libavfilter/af_firequalizer.c @@ -20,6 +20,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/file_open.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/eval.h" #include "libavutil/avassert.h" diff --git a/libavfilter/af_flanger.c b/libavfilter/af_flanger.c index 453704ea63..381cf96649 100644 --- a/libavfilter/af_flanger.c +++ b/libavfilter/af_flanger.c @@ -18,7 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "libavutil/avstring.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/samplefmt.h" #include "avfilter.h" diff --git a/libavfilter/af_haas.c b/libavfilter/af_haas.c index dd2ea26ec3..753a3505e5 100644 --- a/libavfilter/af_haas.c +++ b/libavfilter/af_haas.c @@ -19,6 +19,7 @@ */ #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avfilter.h" #include "audio.h" diff --git a/libavfilter/af_headphone.c b/libavfilter/af_headphone.c index 9124f945a8..37ed9b84a1 100644 --- a/libavfilter/af_headphone.c +++ b/libavfilter/af_headphone.c @@ -24,6 +24,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/float_dsp.h" #include "libavutil/intmath.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/tx.h" diff --git a/libavfilter/af_join.c b/libavfilter/af_join.c index 8dab3f0931..4a4fc04d0d 100644 --- a/libavfilter/af_join.c +++ b/libavfilter/af_join.c @@ -28,6 +28,7 @@ #include "libavutil/avstring.h" #include "libavutil/channel_layout.h" #include "libavutil/common.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "audio.h" diff --git a/libavfilter/af_ladspa.c b/libavfilter/af_ladspa.c index 7567c0577d..547e91979d 100644 --- a/libavfilter/af_ladspa.c +++ b/libavfilter/af_ladspa.c @@ -30,6 +30,7 @@ #include "libavutil/avstring.h" #include "libavutil/channel_layout.h" #include "libavutil/fifo.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "audio.h" #include "avfilter.h" diff --git a/libavfilter/af_loudnorm.c b/libavfilter/af_loudnorm.c index 6cb9c06064..dd5edec1c8 100644 --- a/libavfilter/af_loudnorm.c +++ b/libavfilter/af_loudnorm.c @@ -20,6 +20,7 @@ /* http://k.ylo.ph/2016/04/04/loudnorm.html */ +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avfilter.h" #include "filters.h" diff --git a/libavfilter/af_lv2.c b/libavfilter/af_lv2.c index 7b3ddf9448..a5980d5e9c 100644 --- a/libavfilter/af_lv2.c +++ b/libavfilter/af_lv2.c @@ -30,6 +30,7 @@ #include "libavutil/avstring.h" #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "audio.h" #include "avfilter.h" diff --git a/libavfilter/af_mcompand.c b/libavfilter/af_mcompand.c index 1267cd9f34..89fe806a02 100644 --- a/libavfilter/af_mcompand.c +++ b/libavfilter/af_mcompand.c @@ -30,6 +30,7 @@ #include "libavutil/avstring.h" #include "libavutil/ffmath.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/samplefmt.h" #include "audio.h" diff --git a/libavfilter/af_pan.c b/libavfilter/af_pan.c index 34073203d2..31c6be45c3 100644 --- a/libavfilter/af_pan.c +++ b/libavfilter/af_pan.c @@ -30,6 +30,7 @@ #include #include "libavutil/avstring.h" #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libswresample/swresample.h" #include "audio.h" diff --git a/libavfilter/af_silencedetect.c b/libavfilter/af_silencedetect.c index 845c65bfed..1d2bf03f72 100644 --- a/libavfilter/af_silencedetect.c +++ b/libavfilter/af_silencedetect.c @@ -25,6 +25,7 @@ #include /* DBL_MAX */ +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/timestamp.h" #include "audio.h" diff --git a/libavfilter/af_silenceremove.c b/libavfilter/af_silenceremove.c index d60c86ad93..eb23e78957 100644 --- a/libavfilter/af_silenceremove.c +++ b/libavfilter/af_silenceremove.c @@ -24,6 +24,7 @@ #include /* DBL_MAX */ #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "audio.h" #include "filters.h" diff --git a/libavfilter/af_sofalizer.c b/libavfilter/af_sofalizer.c index 7349fa06f5..4bf54014a3 100644 --- a/libavfilter/af_sofalizer.c +++ b/libavfilter/af_sofalizer.c @@ -28,6 +28,7 @@ #include #include +#include "libavutil/mem.h" #include "libavutil/tx.h" #include "libavutil/avstring.h" #include "libavutil/channel_layout.h" diff --git a/libavfilter/af_speechnorm.c b/libavfilter/af_speechnorm.c index a8bed2cb8f..e6a8a95829 100644 --- a/libavfilter/af_speechnorm.c +++ b/libavfilter/af_speechnorm.c @@ -29,6 +29,7 @@ #include "libavutil/avassert.h" #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #define FF_BUFQUEUE_SIZE (1024) diff --git a/libavfilter/af_stereotools.c b/libavfilter/af_stereotools.c index 330d91cd2b..70d14ebe17 100644 --- a/libavfilter/af_stereotools.c +++ b/libavfilter/af_stereotools.c @@ -19,6 +19,7 @@ */ #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avfilter.h" #include "audio.h" diff --git a/libavfilter/af_stereowiden.c b/libavfilter/af_stereowiden.c index 1273c77116..96d77cd2ac 100644 --- a/libavfilter/af_stereowiden.c +++ b/libavfilter/af_stereowiden.c @@ -20,6 +20,7 @@ */ #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avfilter.h" #include "audio.h" diff --git a/libavfilter/af_superequalizer.c b/libavfilter/af_superequalizer.c index fbe707cb2f..c532048406 100644 --- a/libavfilter/af_superequalizer.c +++ b/libavfilter/af_superequalizer.c @@ -19,6 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/tx.h" diff --git a/libavfilter/af_surround.c b/libavfilter/af_surround.c index 5957860283..e37dddc361 100644 --- a/libavfilter/af_surround.c +++ b/libavfilter/af_surround.c @@ -20,6 +20,7 @@ #include "libavutil/avassert.h" #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/tx.h" #include "avfilter.h" diff --git a/libavfilter/af_tremolo.c b/libavfilter/af_tremolo.c index 024c402b79..30e35935b4 100644 --- a/libavfilter/af_tremolo.c +++ b/libavfilter/af_tremolo.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avfilter.h" #include "internal.h" diff --git a/libavfilter/af_vibrato.c b/libavfilter/af_vibrato.c index e54ae2ad4b..3d709d561e 100644 --- a/libavfilter/af_vibrato.c +++ b/libavfilter/af_vibrato.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avfilter.h" #include "internal.h" diff --git a/libavfilter/af_volume.c b/libavfilter/af_volume.c index 686e8c651c..5a3c9220f4 100644 --- a/libavfilter/af_volume.c +++ b/libavfilter/af_volume.c @@ -29,7 +29,7 @@ #include "libavutil/eval.h" #include "libavutil/ffmath.h" #include "libavutil/float_dsp.h" -#include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/replaygain.h" diff --git a/libavfilter/asrc_afdelaysrc.c b/libavfilter/asrc_afdelaysrc.c index f3f0b080a0..827da53780 100644 --- a/libavfilter/asrc_afdelaysrc.c +++ b/libavfilter/asrc_afdelaysrc.c @@ -18,7 +18,6 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "libavutil/avassert.h" #include "libavutil/channel_layout.h" #include "libavutil/opt.h" diff --git a/libavfilter/asrc_afirsrc.c b/libavfilter/asrc_afirsrc.c index 20cb84bc01..f8040b4404 100644 --- a/libavfilter/asrc_afirsrc.c +++ b/libavfilter/asrc_afirsrc.c @@ -22,6 +22,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/ffmath.h" #include "libavutil/eval.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/tx.h" #include "audio.h" diff --git a/libavfilter/asrc_flite.c b/libavfilter/asrc_flite.c index 6055db52b9..4327341098 100644 --- a/libavfilter/asrc_flite.c +++ b/libavfilter/asrc_flite.c @@ -28,6 +28,7 @@ #include "libavutil/avstring.h" #include "libavutil/channel_layout.h" #include "libavutil/file.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/thread.h" #include "avfilter.h" diff --git a/libavfilter/asrc_hilbert.c b/libavfilter/asrc_hilbert.c index 98248e7e4e..0ca8e0c9d5 100644 --- a/libavfilter/asrc_hilbert.c +++ b/libavfilter/asrc_hilbert.c @@ -19,6 +19,7 @@ */ #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "audio.h" #include "avfilter.h" diff --git a/libavfilter/asrc_sinc.c b/libavfilter/asrc_sinc.c index 6366fb802b..a16d8285af 100644 --- a/libavfilter/asrc_sinc.c +++ b/libavfilter/asrc_sinc.c @@ -21,6 +21,7 @@ #include "libavutil/avassert.h" #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/tx.h" diff --git a/libavfilter/asrc_sine.c b/libavfilter/asrc_sine.c index c576b57fec..72a24cce65 100644 --- a/libavfilter/asrc_sine.c +++ b/libavfilter/asrc_sine.c @@ -23,6 +23,7 @@ #include "libavutil/avassert.h" #include "libavutil/channel_layout.h" #include "libavutil/eval.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "audio.h" #include "avfilter.h" diff --git a/libavfilter/avf_abitscope.c b/libavfilter/avf_abitscope.c index 60dba21be1..13c704ff27 100644 --- a/libavfilter/avf_abitscope.c +++ b/libavfilter/avf_abitscope.c @@ -20,6 +20,7 @@ #include "libavutil/avstring.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/parseutils.h" #include "avfilter.h" diff --git a/libavfilter/avf_ahistogram.c b/libavfilter/avf_ahistogram.c index f80f341e33..6fb3f64ac9 100644 --- a/libavfilter/avf_ahistogram.c +++ b/libavfilter/avf_ahistogram.c @@ -19,12 +19,11 @@ */ #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" -#include "libavutil/parseutils.h" #include "avfilter.h" #include "filters.h" #include "formats.h" -#include "audio.h" #include "video.h" #include "internal.h" diff --git a/libavfilter/avf_concat.c b/libavfilter/avf_concat.c index 33edd7a394..5d11631798 100644 --- a/libavfilter/avf_concat.c +++ b/libavfilter/avf_concat.c @@ -25,6 +25,7 @@ #include "libavutil/avstring.h" #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avfilter.h" #include "filters.h" diff --git a/libavfilter/avf_showcqt.c b/libavfilter/avf_showcqt.c index 676f77ecb2..249b6245ca 100644 --- a/libavfilter/avf_showcqt.c +++ b/libavfilter/avf_showcqt.c @@ -19,6 +19,7 @@ */ #include "config.h" +#include "libavutil/mem.h" #include "libavutil/tx.h" #include "libavutil/channel_layout.h" #include "libavutil/opt.h" diff --git a/libavfilter/avf_showcwt.c b/libavfilter/avf_showcwt.c index 9436881f2a..24d16d9075 100644 --- a/libavfilter/avf_showcwt.c +++ b/libavfilter/avf_showcwt.c @@ -21,9 +21,8 @@ #include #include +#include "libavutil/mem.h" #include "libavutil/tx.h" -#include "libavutil/avassert.h" -#include "libavutil/avstring.h" #include "libavutil/channel_layout.h" #include "libavutil/float_dsp.h" #include "libavutil/cpu.h" diff --git a/libavfilter/avf_showfreqs.c b/libavfilter/avf_showfreqs.c index e3c7ce96f8..23083ad50a 100644 --- a/libavfilter/avf_showfreqs.c +++ b/libavfilter/avf_showfreqs.c @@ -21,6 +21,7 @@ #include #include +#include "libavutil/mem.h" #include "libavutil/tx.h" #include "libavutil/avassert.h" #include "libavutil/avstring.h" diff --git a/libavfilter/avf_showspatial.c b/libavfilter/avf_showspatial.c index 29b41bee85..ec85f90635 100644 --- a/libavfilter/avf_showspatial.c +++ b/libavfilter/avf_showspatial.c @@ -18,15 +18,14 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include #include +#include "libavutil/mem.h" #include "libavutil/tx.h" #include "libavutil/audio_fifo.h" #include "libavutil/avassert.h" #include "libavutil/channel_layout.h" #include "libavutil/opt.h" -#include "libavutil/parseutils.h" #include "audio.h" #include "formats.h" #include "video.h" diff --git a/libavfilter/avf_showspectrum.c b/libavfilter/avf_showspectrum.c index 5d76da3bfc..3a4b489af3 100644 --- a/libavfilter/avf_showspectrum.c +++ b/libavfilter/avf_showspectrum.c @@ -31,6 +31,7 @@ #include #include +#include "libavutil/mem.h" #include "libavutil/tx.h" #include "libavutil/avassert.h" #include "libavutil/avstring.h" diff --git a/libavfilter/avf_showvolume.c b/libavfilter/avf_showvolume.c index f359e4d97b..2ae43de211 100644 --- a/libavfilter/avf_showvolume.c +++ b/libavfilter/avf_showvolume.c @@ -18,17 +18,15 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "libavutil/avstring.h" #include "libavutil/channel_layout.h" #include "libavutil/eval.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" -#include "libavutil/parseutils.h" #include "libavutil/xga_font_data.h" #include "avfilter.h" #include "filters.h" #include "formats.h" -#include "audio.h" #include "video.h" #include "internal.h" diff --git a/libavfilter/avf_showwaves.c b/libavfilter/avf_showwaves.c index f090d93714..63e0b36e09 100644 --- a/libavfilter/avf_showwaves.c +++ b/libavfilter/avf_showwaves.c @@ -29,6 +29,7 @@ #include "libavutil/avstring.h" #include "libavutil/channel_layout.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/parseutils.h" #include "avfilter.h" diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 831871de90..856862a393 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -29,6 +29,7 @@ #include "libavutil/frame.h" #include "libavutil/hwcontext.h" #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "libavutil/rational.h" diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c index 12ff7d6ffb..0c569eb218 100644 --- a/libavfilter/avfiltergraph.c +++ b/libavfilter/avfiltergraph.c @@ -27,8 +27,8 @@ #include "libavutil/avassert.h" #include "libavutil/bprint.h" #include "libavutil/channel_layout.h" -#include "libavutil/hwcontext.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" diff --git a/libavfilter/boxblur.c b/libavfilter/boxblur.c index 2287396f2e..43c724daea 100644 --- a/libavfilter/boxblur.c +++ b/libavfilter/boxblur.c @@ -20,6 +20,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "boxblur.h" static const char *const var_names[] = { diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c index ddcd403785..84d966d7ad 100644 --- a/libavfilter/buffersrc.c +++ b/libavfilter/buffersrc.c @@ -26,21 +26,19 @@ #include #include "libavutil/channel_layout.h" -#include "libavutil/common.h" #include "libavutil/frame.h" #include "libavutil/hwcontext.h" -#include "libavutil/imgutils.h" #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" +#include "libavutil/pixdesc.h" #include "libavutil/samplefmt.h" #include "libavutil/timestamp.h" -#include "audio.h" #include "avfilter.h" #include "buffersrc.h" #include "filters.h" #include "formats.h" #include "internal.h" -#include "video.h" typedef struct BufferSourceContext { const AVClass *class; diff --git a/libavfilter/cuda/load_helper.c b/libavfilter/cuda/load_helper.c index 280e596ecb..b049ec7130 100644 --- a/libavfilter/cuda/load_helper.c +++ b/libavfilter/cuda/load_helper.c @@ -21,6 +21,7 @@ #include "libavutil/hwcontext.h" #include "libavutil/hwcontext_cuda_internal.h" #include "libavutil/cuda_check.h" +#include "libavutil/mem.h" #if CONFIG_PTX_COMPRESSION #include diff --git a/libavfilter/dialoguenhance_template.c b/libavfilter/dialoguenhance_template.c index 26650f7d8c..07f42f0958 100644 --- a/libavfilter/dialoguenhance_template.c +++ b/libavfilter/dialoguenhance_template.c @@ -16,6 +16,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "libavutil/tx.h" #include "avfilter.h" #include "internal.h" diff --git a/libavfilter/dnn/dnn_backend_common.c b/libavfilter/dnn/dnn_backend_common.c index 632832ec36..e45eefd14d 100644 --- a/libavfilter/dnn/dnn_backend_common.c +++ b/libavfilter/dnn/dnn_backend_common.c @@ -21,6 +21,7 @@ * DNN common functions different backends. */ +#include "libavutil/mem.h" #include "dnn_backend_common.h" #define DNN_ASYNC_SUCCESS (void *)0 diff --git a/libavfilter/dnn/dnn_backend_openvino.c b/libavfilter/dnn/dnn_backend_openvino.c index 375643377f..bedf983f8f 100644 --- a/libavfilter/dnn/dnn_backend_openvino.c +++ b/libavfilter/dnn/dnn_backend_openvino.c @@ -27,6 +27,7 @@ #include "libavformat/avio.h" #include "libavutil/avassert.h" #include "libavutil/cpu.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/avstring.h" #include "libavutil/detection_bbox.h" diff --git a/libavfilter/dnn/dnn_backend_tf.c b/libavfilter/dnn/dnn_backend_tf.c index 27c5178bb5..2ed17c3c87 100644 --- a/libavfilter/dnn/dnn_backend_tf.c +++ b/libavfilter/dnn/dnn_backend_tf.c @@ -27,6 +27,7 @@ #include "libavutil/avassert.h" #include "libavutil/avstring.h" #include "libavutil/cpu.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavcodec/defs.h" #include "../internal.h" diff --git a/libavfilter/dnn/dnn_io_proc.c b/libavfilter/dnn/dnn_io_proc.c index e5d6edb301..f3a605f73c 100644 --- a/libavfilter/dnn/dnn_io_proc.c +++ b/libavfilter/dnn/dnn_io_proc.c @@ -20,6 +20,7 @@ #include "dnn_io_proc.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libswscale/swscale.h" #include "libavutil/avassert.h" #include "libavutil/detection_bbox.h" diff --git a/libavfilter/dnn_filter_common.c b/libavfilter/dnn_filter_common.c index 7d194c9ade..5e76b9ba45 100644 --- a/libavfilter/dnn_filter_common.c +++ b/libavfilter/dnn_filter_common.c @@ -18,6 +18,7 @@ #include "dnn_filter_common.h" #include "libavutil/avstring.h" +#include "libavutil/mem.h" #define MAX_SUPPORTED_OUTPUTS_NB 4 diff --git a/libavfilter/f_drawgraph.c b/libavfilter/f_drawgraph.c index 1eca7df975..1109780550 100644 --- a/libavfilter/f_drawgraph.c +++ b/libavfilter/f_drawgraph.c @@ -23,6 +23,7 @@ #include "libavutil/avstring.h" #include "libavutil/eval.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avfilter.h" #include "formats.h" diff --git a/libavfilter/f_ebur128.c b/libavfilter/f_ebur128.c index 3a8dba5816..436a9eb7a9 100644 --- a/libavfilter/f_ebur128.c +++ b/libavfilter/f_ebur128.c @@ -30,15 +30,14 @@ #include #include "libavutil/avassert.h" -#include "libavutil/avstring.h" #include "libavutil/channel_layout.h" #include "libavutil/dict.h" #include "libavutil/ffmath.h" +#include "libavutil/mem.h" #include "libavutil/xga_font_data.h" #include "libavutil/opt.h" #include "libavutil/timestamp.h" #include "libswresample/swresample.h" -#include "audio.h" #include "avfilter.h" #include "filters.h" #include "formats.h" diff --git a/libavfilter/f_graphmonitor.c b/libavfilter/f_graphmonitor.c index 3fefa49138..3996261318 100644 --- a/libavfilter/f_graphmonitor.c +++ b/libavfilter/f_graphmonitor.c @@ -20,8 +20,8 @@ #include "config_components.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" -#include "libavutil/eval.h" #include "libavutil/intreadwrite.h" #include "libavutil/opt.h" #include "libavutil/timestamp.h" diff --git a/libavfilter/f_loop.c b/libavfilter/f_loop.c index 0b08a2ead3..f58436e679 100644 --- a/libavfilter/f_loop.c +++ b/libavfilter/f_loop.c @@ -22,6 +22,7 @@ #include "libavutil/audio_fifo.h" #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avfilter.h" #include "audio.h" diff --git a/libavfilter/f_reverse.c b/libavfilter/f_reverse.c index 744f4a3cc8..71ef30f9b5 100644 --- a/libavfilter/f_reverse.c +++ b/libavfilter/f_reverse.c @@ -20,6 +20,7 @@ #include "config_components.h" +#include "libavutil/mem.h" #include "avfilter.h" #include "internal.h" diff --git a/libavfilter/f_segment.c b/libavfilter/f_segment.c index 03a071a05b..16c611b4a8 100644 --- a/libavfilter/f_segment.c +++ b/libavfilter/f_segment.c @@ -21,15 +21,12 @@ #include #include "libavutil/avstring.h" -#include "libavutil/channel_layout.h" -#include "libavutil/common.h" #include "libavutil/log.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/parseutils.h" -#include "libavutil/samplefmt.h" -#include "audio.h" #include "avfilter.h" #include "filters.h" #include "internal.h" diff --git a/libavfilter/f_sendcmd.c b/libavfilter/f_sendcmd.c index 922ce78287..47bfaba9c9 100644 --- a/libavfilter/f_sendcmd.c +++ b/libavfilter/f_sendcmd.c @@ -29,6 +29,7 @@ #include "libavutil/bprint.h" #include "libavutil/eval.h" #include "libavutil/file.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/parseutils.h" #include "avfilter.h" diff --git a/libavfilter/f_streamselect.c b/libavfilter/f_streamselect.c index 5fbb13a323..c17b019969 100644 --- a/libavfilter/f_streamselect.c +++ b/libavfilter/f_streamselect.c @@ -18,6 +18,7 @@ #include "libavutil/avstring.h" #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avfilter.h" #include "audio.h" diff --git a/libavfilter/f_zmq.c b/libavfilter/f_zmq.c index 3829b55224..03c6c65c93 100644 --- a/libavfilter/f_zmq.c +++ b/libavfilter/f_zmq.c @@ -27,7 +27,7 @@ #include #include "libavutil/avstring.h" -#include "libavutil/bprint.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avfilter.h" #include "internal.h" diff --git a/libavfilter/formats.c b/libavfilter/formats.c index d3f4c7f09c..857f93113d 100644 --- a/libavfilter/formats.c +++ b/libavfilter/formats.c @@ -23,6 +23,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/common.h" #include "libavutil/eval.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "avfilter.h" #include "internal.h" diff --git a/libavfilter/framequeue.c b/libavfilter/framequeue.c index ace0dad689..79255fe532 100644 --- a/libavfilter/framequeue.c +++ b/libavfilter/framequeue.c @@ -20,6 +20,7 @@ */ #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "framequeue.h" static inline FFFrameBucket *bucket(FFFrameQueue *fq, size_t idx) diff --git a/libavfilter/framesync.c b/libavfilter/framesync.c index cf2f355c89..1afd70ab21 100644 --- a/libavfilter/framesync.c +++ b/libavfilter/framesync.c @@ -19,11 +19,11 @@ */ #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avfilter.h" #include "filters.h" #include "framesync.h" -#include "internal.h" #define OFFSET(member) offsetof(FFFrameSync, member) #define FLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM diff --git a/libavfilter/graphdump.c b/libavfilter/graphdump.c index df79903c52..20370f360f 100644 --- a/libavfilter/graphdump.c +++ b/libavfilter/graphdump.c @@ -23,6 +23,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/bprint.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "avfilter.h" #include "internal.h" diff --git a/libavfilter/qrencode.c b/libavfilter/qrencode.c index b084bf1d1f..0b1f7bb50a 100644 --- a/libavfilter/qrencode.c +++ b/libavfilter/qrencode.c @@ -33,6 +33,7 @@ #include "libavutil/internal.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/lfg.h" #include "libavutil/random_seed.h" diff --git a/libavfilter/qsvvpp.c b/libavfilter/qsvvpp.c index 5cdba7d54a..8c92fec0c1 100644 --- a/libavfilter/qsvvpp.c +++ b/libavfilter/qsvvpp.c @@ -23,6 +23,7 @@ #include "libavutil/common.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/time.h" #include "libavutil/pixdesc.h" diff --git a/libavfilter/signature_lookup.c b/libavfilter/signature_lookup.c index 9c69c02fbf..ab7320d47f 100644 --- a/libavfilter/signature_lookup.c +++ b/libavfilter/signature_lookup.c @@ -23,6 +23,7 @@ * MPEG-7 video signature calculation and lookup filter */ +#include "libavutil/mem.h" #include "signature.h" #define HOUGH_MAX_OFFSET 90 diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c index e50ebc99dc..e2cdcf17db 100644 --- a/libavfilter/src_movie.c +++ b/libavfilter/src_movie.c @@ -28,16 +28,14 @@ #include "config_components.h" -#include #include #include "libavutil/attributes.h" #include "libavutil/avstring.h" #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" -#include "libavutil/imgutils.h" #include "libavutil/internal.h" -#include "libavutil/timestamp.h" #include "libavcodec/avcodec.h" diff --git a/libavfilter/tests/integral.c b/libavfilter/tests/integral.c index 6bdf0fd7fa..3d9487f6b8 100644 --- a/libavfilter/tests/integral.c +++ b/libavfilter/tests/integral.c @@ -16,6 +16,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "libavfilter/vf_nlmeans.c" static void display_integral(const uint32_t *ii, int w, int h, int lz_32) diff --git a/libavfilter/textutils.c b/libavfilter/textutils.c index ef658d04a2..45967794bc 100644 --- a/libavfilter/textutils.c +++ b/libavfilter/textutils.c @@ -29,6 +29,7 @@ #include "libavutil/avutil.h" #include "libavutil/error.h" #include "libavutil/file.h" +#include "libavutil/mem.h" #include "libavutil/time.h" static int ff_expand_text_function_internal(FFExpandTextContext *expand_text, AVBPrint *bp, diff --git a/libavfilter/vaapi_vpp.c b/libavfilter/vaapi_vpp.c index 59961bfa4a..ace1153a23 100644 --- a/libavfilter/vaapi_vpp.c +++ b/libavfilter/vaapi_vpp.c @@ -19,6 +19,7 @@ #include #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "formats.h" #include "internal.h" diff --git a/libavfilter/vaf_spectrumsynth.c b/libavfilter/vaf_spectrumsynth.c index 3a9aacd2b5..f4bc0f3025 100644 --- a/libavfilter/vaf_spectrumsynth.c +++ b/libavfilter/vaf_spectrumsynth.c @@ -24,17 +24,15 @@ * @todo support float pixel format */ +#include "libavutil/mem.h" #include "libavutil/tx.h" #include "libavutil/avassert.h" -#include "libavutil/channel_layout.h" #include "libavutil/cpu.h" #include "libavutil/ffmath.h" #include "libavutil/opt.h" -#include "libavutil/parseutils.h" #include "avfilter.h" #include "formats.h" #include "audio.h" -#include "video.h" #include "filters.h" #include "internal.h" #include "window_func.h" diff --git a/libavfilter/vf_amplify.c b/libavfilter/vf_amplify.c index 0ebca60ea2..7f2cf81150 100644 --- a/libavfilter/vf_amplify.c +++ b/libavfilter/vf_amplify.c @@ -19,6 +19,7 @@ */ #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" diff --git a/libavfilter/vf_avgblur.c b/libavfilter/vf_avgblur.c index 8ff6111bcc..ced0a2ac28 100644 --- a/libavfilter/vf_avgblur.c +++ b/libavfilter/vf_avgblur.c @@ -22,6 +22,7 @@ #include "libavutil/avassert.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "avfilter.h" diff --git a/libavfilter/vf_backgroundkey.c b/libavfilter/vf_backgroundkey.c index 26fb08bf86..54f7621a10 100644 --- a/libavfilter/vf_backgroundkey.c +++ b/libavfilter/vf_backgroundkey.c @@ -16,6 +16,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "avfilter.h" diff --git a/libavfilter/vf_bilateral.c b/libavfilter/vf_bilateral.c index fe16419026..3fe7e69b9f 100644 --- a/libavfilter/vf_bilateral.c +++ b/libavfilter/vf_bilateral.c @@ -22,6 +22,7 @@ */ #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "avfilter.h" diff --git a/libavfilter/vf_blackdetect.c b/libavfilter/vf_blackdetect.c index 55033ba5ea..23ff8600ca 100644 --- a/libavfilter/vf_blackdetect.c +++ b/libavfilter/vf_blackdetect.c @@ -25,6 +25,7 @@ */ #include +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "libavutil/timestamp.h" diff --git a/libavfilter/vf_blend.c b/libavfilter/vf_blend.c index 74bc5989d9..6b52647966 100644 --- a/libavfilter/vf_blend.c +++ b/libavfilter/vf_blend.c @@ -21,6 +21,7 @@ #include "config_components.h" #include "libavutil/eval.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixfmt.h" #include "avfilter.h" diff --git a/libavfilter/vf_blockdetect.c b/libavfilter/vf_blockdetect.c index d787aff5e4..b7f68722fe 100644 --- a/libavfilter/vf_blockdetect.c +++ b/libavfilter/vf_blockdetect.c @@ -29,8 +29,9 @@ * @author Thilo Borgmann */ -#include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" +#include "libavutil/pixdesc.h" #include "internal.h" #include "video.h" diff --git a/libavfilter/vf_blurdetect.c b/libavfilter/vf_blurdetect.c index 354a6b6100..f1c5be6b0f 100644 --- a/libavfilter/vf_blurdetect.c +++ b/libavfilter/vf_blurdetect.c @@ -30,8 +30,9 @@ * @author Thilo Borgmann */ -#include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" +#include "libavutil/pixdesc.h" #include "libavutil/qsort.h" #include "internal.h" #include "edge_common.h" diff --git a/libavfilter/vf_bm3d.c b/libavfilter/vf_bm3d.c index 17d39ee7cf..f53a206b51 100644 --- a/libavfilter/vf_bm3d.c +++ b/libavfilter/vf_bm3d.c @@ -33,6 +33,7 @@ #include "libavutil/cpu.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "libavutil/tx.h" diff --git a/libavfilter/vf_boxblur.c b/libavfilter/vf_boxblur.c index 60375463a6..669b32afd8 100644 --- a/libavfilter/vf_boxblur.c +++ b/libavfilter/vf_boxblur.c @@ -25,8 +25,8 @@ * Ported from MPlayer libmpcodecs/vf_boxblur.c. */ -#include "libavutil/avstring.h" #include "libavutil/common.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avfilter.h" #include "formats.h" diff --git a/libavfilter/vf_codecview.c b/libavfilter/vf_codecview.c index 77e541e37d..3cbe3ee2bd 100644 --- a/libavfilter/vf_codecview.c +++ b/libavfilter/vf_codecview.c @@ -29,9 +29,10 @@ * TODO: segmentation */ -#include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/motion_vector.h" #include "libavutil/opt.h" +#include "libavutil/pixdesc.h" #include "libavutil/video_enc_params.h" #include "avfilter.h" #include "qp_table.h" diff --git a/libavfilter/vf_colorchannelmixer.c b/libavfilter/vf_colorchannelmixer.c index 8402b57858..006a8ee289 100644 --- a/libavfilter/vf_colorchannelmixer.c +++ b/libavfilter/vf_colorchannelmixer.c @@ -20,6 +20,7 @@ #include +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "avfilter.h" diff --git a/libavfilter/vf_colorconstancy.c b/libavfilter/vf_colorconstancy.c index 3d4d433cc1..f638ec0dc6 100644 --- a/libavfilter/vf_colorconstancy.c +++ b/libavfilter/vf_colorconstancy.c @@ -28,8 +28,9 @@ * J. van de Weijer, Th. Gevers, A. Gijsenij "Edge-Based Color Constancy". */ -#include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" +#include "libavutil/pixdesc.h" #include "avfilter.h" #include "internal.h" diff --git a/libavfilter/vf_colorcorrect.c b/libavfilter/vf_colorcorrect.c index 3433b5c4c3..d86d9f1927 100644 --- a/libavfilter/vf_colorcorrect.c +++ b/libavfilter/vf_colorcorrect.c @@ -20,6 +20,7 @@ #include +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "avfilter.h" diff --git a/libavfilter/vf_colorspace.c b/libavfilter/vf_colorspace.c index f367ce17c6..d181e81ace 100644 --- a/libavfilter/vf_colorspace.c +++ b/libavfilter/vf_colorspace.c @@ -25,6 +25,7 @@ #include "libavutil/avassert.h" #include "libavutil/csp.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" diff --git a/libavfilter/vf_convolution.c b/libavfilter/vf_convolution.c index 88b89289a9..d516db3717 100644 --- a/libavfilter/vf_convolution.c +++ b/libavfilter/vf_convolution.c @@ -24,6 +24,7 @@ #include "libavutil/avstring.h" #include "libavutil/imgutils.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" diff --git a/libavfilter/vf_convolve.c b/libavfilter/vf_convolve.c index 95d1743597..971494f3d5 100644 --- a/libavfilter/vf_convolve.c +++ b/libavfilter/vf_convolve.c @@ -22,6 +22,7 @@ #include +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "libavutil/tx.h" diff --git a/libavfilter/vf_coreimage.m b/libavfilter/vf_coreimage.m index 979eab3b01..4d4cdfb7c7 100644 --- a/libavfilter/vf_coreimage.m +++ b/libavfilter/vf_coreimage.m @@ -31,6 +31,7 @@ #include "internal.h" #include "video.h" #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" diff --git a/libavfilter/vf_corr.c b/libavfilter/vf_corr.c index 7e0f81921f..27e01b8775 100644 --- a/libavfilter/vf_corr.c +++ b/libavfilter/vf_corr.c @@ -22,6 +22,7 @@ */ #include "libavutil/avstring.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "avfilter.h" diff --git a/libavfilter/vf_cover_rect.c b/libavfilter/vf_cover_rect.c index a4321fdb13..5351e38dbb 100644 --- a/libavfilter/vf_cover_rect.c +++ b/libavfilter/vf_cover_rect.c @@ -22,7 +22,7 @@ * @todo switch to dualinput */ -#include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "filters.h" #include "internal.h" diff --git a/libavfilter/vf_cropdetect.c b/libavfilter/vf_cropdetect.c index a1cfc465d8..486f723a4b 100644 --- a/libavfilter/vf_cropdetect.c +++ b/libavfilter/vf_cropdetect.c @@ -25,6 +25,7 @@ #include "libavutil/imgutils.h" #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/motion_vector.h" #include "libavutil/qsort.h" diff --git a/libavfilter/vf_curves.c b/libavfilter/vf_curves.c index 55c0a1236e..3e4a42bab3 100644 --- a/libavfilter/vf_curves.c +++ b/libavfilter/vf_curves.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/bprint.h" #include "libavutil/eval.h" diff --git a/libavfilter/vf_datascope.c b/libavfilter/vf_datascope.c index fedd57b838..52b1939cd2 100644 --- a/libavfilter/vf_datascope.c +++ b/libavfilter/vf_datascope.c @@ -19,8 +19,8 @@ */ #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" -#include "libavutil/parseutils.h" #include "libavutil/pixdesc.h" #include "libavutil/xga_font_data.h" #include "avfilter.h" diff --git a/libavfilter/vf_dblur.c b/libavfilter/vf_dblur.c index 3110d19271..5202c57489 100644 --- a/libavfilter/vf_dblur.c +++ b/libavfilter/vf_dblur.c @@ -19,6 +19,7 @@ */ #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "avfilter.h" diff --git a/libavfilter/vf_dctdnoiz.c b/libavfilter/vf_dctdnoiz.c index ab96dbe15e..ef68337816 100644 --- a/libavfilter/vf_dctdnoiz.c +++ b/libavfilter/vf_dctdnoiz.c @@ -30,6 +30,7 @@ #include "libavutil/avassert.h" #include "libavutil/eval.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/opt.h" #include "internal.h" diff --git a/libavfilter/vf_deband.c b/libavfilter/vf_deband.c index 177d888bed..9888285586 100644 --- a/libavfilter/vf_deband.c +++ b/libavfilter/vf_deband.c @@ -21,6 +21,7 @@ * SOFTWARE. */ +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "avfilter.h" diff --git a/libavfilter/vf_decimate.c b/libavfilter/vf_decimate.c index dbeca427f1..30910bd0c4 100644 --- a/libavfilter/vf_decimate.c +++ b/libavfilter/vf_decimate.c @@ -19,9 +19,9 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" -#include "libavutil/timestamp.h" #include "avfilter.h" #include "filters.h" #include "internal.h" diff --git a/libavfilter/vf_deflicker.c b/libavfilter/vf_deflicker.c index f84fe5eafb..c17a8c8a3b 100644 --- a/libavfilter/vf_deflicker.c +++ b/libavfilter/vf_deflicker.c @@ -19,6 +19,7 @@ */ #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "libavutil/qsort.h" diff --git a/libavfilter/vf_dejudder.c b/libavfilter/vf_dejudder.c index d74cd7b159..f8c35ae34c 100644 --- a/libavfilter/vf_dejudder.c +++ b/libavfilter/vf_dejudder.c @@ -49,11 +49,10 @@ * even output then setting frame_rate=1/0 in practice. */ +#include "libavutil/mem.h" #include "libavutil/opt.h" -#include "libavutil/mathematics.h" #include "avfilter.h" #include "internal.h" -#include "video.h" typedef struct DejudderContext { const AVClass *class; diff --git a/libavfilter/vf_dnn_classify.c b/libavfilter/vf_dnn_classify.c index 11389c029d..1f8f227e3a 100644 --- a/libavfilter/vf_dnn_classify.c +++ b/libavfilter/vf_dnn_classify.c @@ -22,6 +22,7 @@ */ #include "libavutil/file_open.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "filters.h" #include "dnn_filter_common.h" diff --git a/libavfilter/vf_dnn_detect.c b/libavfilter/vf_dnn_detect.c index 8f50573527..bacea3ef29 100644 --- a/libavfilter/vf_dnn_detect.c +++ b/libavfilter/vf_dnn_detect.c @@ -22,6 +22,7 @@ */ #include "libavutil/file_open.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "filters.h" #include "dnn_filter_common.h" diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c index 72629df2dc..2b6a0d0839 100644 --- a/libavfilter/vf_drawtext.c +++ b/libavfilter/vf_drawtext.c @@ -48,6 +48,7 @@ #include "libavutil/bprint.h" #include "libavutil/common.h" #include "libavutil/eval.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/random_seed.h" #include "libavutil/parseutils.h" diff --git a/libavfilter/vf_edgedetect.c b/libavfilter/vf_edgedetect.c index 38c3503ce6..dcf20ab11c 100644 --- a/libavfilter/vf_edgedetect.c +++ b/libavfilter/vf_edgedetect.c @@ -27,6 +27,7 @@ #include "libavutil/avassert.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avfilter.h" #include "formats.h" diff --git a/libavfilter/vf_elbg.c b/libavfilter/vf_elbg.c index 17947e226a..732a2c8abf 100644 --- a/libavfilter/vf_elbg.c +++ b/libavfilter/vf_elbg.c @@ -24,6 +24,7 @@ */ #include "libavcodec/elbg.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "libavutil/random_seed.h" diff --git a/libavfilter/vf_entropy.c b/libavfilter/vf_entropy.c index 81772e6c97..a26cbb19d8 100644 --- a/libavfilter/vf_entropy.c +++ b/libavfilter/vf_entropy.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "avfilter.h" diff --git a/libavfilter/vf_fftdnoiz.c b/libavfilter/vf_fftdnoiz.c index 93fc23bc40..93d068d046 100644 --- a/libavfilter/vf_fftdnoiz.c +++ b/libavfilter/vf_fftdnoiz.c @@ -20,6 +20,7 @@ #include "libavutil/common.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "libavutil/tx.h" diff --git a/libavfilter/vf_fftfilt.c b/libavfilter/vf_fftfilt.c index 634d2a4911..1ffbe02ec4 100644 --- a/libavfilter/vf_fftfilt.c +++ b/libavfilter/vf_fftfilt.c @@ -28,7 +28,7 @@ #include "video.h" #include "libavutil/common.h" #include "libavutil/cpu.h" -#include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "libavutil/tx.h" diff --git a/libavfilter/vf_fieldmatch.c b/libavfilter/vf_fieldmatch.c index bcf0ba49e2..ffa36c9449 100644 --- a/libavfilter/vf_fieldmatch.c +++ b/libavfilter/vf_fieldmatch.c @@ -34,6 +34,7 @@ #include "libavutil/avassert.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/timestamp.h" #include "avfilter.h" diff --git a/libavfilter/vf_find_rect.c b/libavfilter/vf_find_rect.c index 9f4ee1e32f..f50052ded2 100644 --- a/libavfilter/vf_find_rect.c +++ b/libavfilter/vf_find_rect.c @@ -22,7 +22,7 @@ * @todo switch to dualinput */ -#include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "internal.h" #include "video.h" diff --git a/libavfilter/vf_floodfill.c b/libavfilter/vf_floodfill.c index d5fa42651a..3f94af0fc4 100644 --- a/libavfilter/vf_floodfill.c +++ b/libavfilter/vf_floodfill.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/intreadwrite.h" #include "libavutil/pixdesc.h" diff --git a/libavfilter/vf_fspp.c b/libavfilter/vf_fspp.c index 8f44390117..da32326b94 100644 --- a/libavfilter/vf_fspp.c +++ b/libavfilter/vf_fspp.c @@ -37,6 +37,7 @@ #include "libavutil/emms.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" diff --git a/libavfilter/vf_fsync.c b/libavfilter/vf_fsync.c index a18f1a009b..63a5446fa3 100644 --- a/libavfilter/vf_fsync.c +++ b/libavfilter/vf_fsync.c @@ -27,6 +27,7 @@ #include "libavutil/avstring.h" #include "libavutil/error.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavformat/avio.h" #include "video.h" diff --git a/libavfilter/vf_gblur.c b/libavfilter/vf_gblur.c index 6ce2c84736..812fad72a3 100644 --- a/libavfilter/vf_gblur.c +++ b/libavfilter/vf_gblur.c @@ -28,6 +28,7 @@ #include #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "avfilter.h" diff --git a/libavfilter/vf_gblur_vulkan.c b/libavfilter/vf_gblur_vulkan.c index bac05b87b8..09be6015c3 100644 --- a/libavfilter/vf_gblur_vulkan.c +++ b/libavfilter/vf_gblur_vulkan.c @@ -19,6 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "libavutil/random_seed.h" #include "libavutil/opt.h" #include "vulkan_filter.h" diff --git a/libavfilter/vf_geq.c b/libavfilter/vf_geq.c index ff243ad843..dbe50e5250 100644 --- a/libavfilter/vf_geq.c +++ b/libavfilter/vf_geq.c @@ -29,6 +29,7 @@ #include "libavutil/avassert.h" #include "libavutil/avstring.h" #include "libavutil/eval.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "formats.h" diff --git a/libavfilter/vf_gradfun.c b/libavfilter/vf_gradfun.c index e8d9cae828..e854e320c6 100644 --- a/libavfilter/vf_gradfun.c +++ b/libavfilter/vf_gradfun.c @@ -35,6 +35,7 @@ #include "libavutil/emms.h" #include "libavutil/imgutils.h" #include "libavutil/common.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" diff --git a/libavfilter/vf_grayworld.c b/libavfilter/vf_grayworld.c index e9c959416e..61ed832253 100644 --- a/libavfilter/vf_grayworld.c +++ b/libavfilter/vf_grayworld.c @@ -26,6 +26,7 @@ */ #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avfilter.h" diff --git a/libavfilter/vf_guided.c b/libavfilter/vf_guided.c index e5c534a6ae..68a1b97d1c 100644 --- a/libavfilter/vf_guided.c +++ b/libavfilter/vf_guided.c @@ -19,6 +19,7 @@ */ #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "avfilter.h" diff --git a/libavfilter/vf_hqdn3d.c b/libavfilter/vf_hqdn3d.c index d95ae8f898..9f32b943c9 100644 --- a/libavfilter/vf_hqdn3d.c +++ b/libavfilter/vf_hqdn3d.c @@ -32,6 +32,7 @@ #include "libavutil/attributes.h" #include "libavutil/common.h" #include "libavutil/emms.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "libavutil/intreadwrite.h" #include "libavutil/opt.h" diff --git a/libavfilter/vf_hue.c b/libavfilter/vf_hue.c index 8fea2128fa..bf390a03fc 100644 --- a/libavfilter/vf_hue.c +++ b/libavfilter/vf_hue.c @@ -28,6 +28,7 @@ #include #include "libavutil/eval.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" diff --git a/libavfilter/vf_hysteresis.c b/libavfilter/vf_hysteresis.c index d2fd3011b8..42678a034c 100644 --- a/libavfilter/vf_hysteresis.c +++ b/libavfilter/vf_hysteresis.c @@ -20,6 +20,7 @@ */ #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "libavutil/opt.h" #include "avfilter.h" diff --git a/libavfilter/vf_identity.c b/libavfilter/vf_identity.c index d3a5ec14f6..ed94069647 100644 --- a/libavfilter/vf_identity.c +++ b/libavfilter/vf_identity.c @@ -26,6 +26,7 @@ #include "config_components.h" #include "libavutil/avstring.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "avfilter.h" diff --git a/libavfilter/vf_kerndeint.c b/libavfilter/vf_kerndeint.c index bbad3f9bfc..5baa8d1897 100644 --- a/libavfilter/vf_kerndeint.c +++ b/libavfilter/vf_kerndeint.c @@ -28,6 +28,7 @@ #include "libavutil/imgutils.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" diff --git a/libavfilter/vf_lagfun.c b/libavfilter/vf_lagfun.c index 20cdd9fa65..4d7496c3eb 100644 --- a/libavfilter/vf_lagfun.c +++ b/libavfilter/vf_lagfun.c @@ -19,6 +19,7 @@ */ #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" diff --git a/libavfilter/vf_lenscorrection.c b/libavfilter/vf_lenscorrection.c index aa545f71c6..06ab662b5f 100644 --- a/libavfilter/vf_lenscorrection.c +++ b/libavfilter/vf_lenscorrection.c @@ -27,8 +27,8 @@ #include #include "libavutil/colorspace.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" -#include "libavutil/intreadwrite.h" #include "libavutil/pixdesc.h" #include "avfilter.h" diff --git a/libavfilter/vf_lensfun.c b/libavfilter/vf_lensfun.c index 3d7e6cd6b3..22016a7e8a 100644 --- a/libavfilter/vf_lensfun.c +++ b/libavfilter/vf_lensfun.c @@ -28,6 +28,7 @@ #include #include +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avfilter.h" #include "filters.h" diff --git a/libavfilter/vf_libopencv.c b/libavfilter/vf_libopencv.c index 86407d18eb..8a35985b20 100644 --- a/libavfilter/vf_libopencv.c +++ b/libavfilter/vf_libopencv.c @@ -34,6 +34,7 @@ #include "libavutil/avstring.h" #include "libavutil/common.h" #include "libavutil/file.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avfilter.h" #include "formats.h" diff --git a/libavfilter/vf_libplacebo.c b/libavfilter/vf_libplacebo.c index f0c34bd3bd..be9000aa8e 100644 --- a/libavfilter/vf_libplacebo.c +++ b/libavfilter/vf_libplacebo.c @@ -20,6 +20,7 @@ #include "libavutil/eval.h" #include "libavutil/fifo.h" #include "libavutil/file.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/parseutils.h" #include "formats.h" diff --git a/libavfilter/vf_libvmaf.c b/libavfilter/vf_libvmaf.c index 180ada040f..2c99d792af 100644 --- a/libavfilter/vf_libvmaf.c +++ b/libavfilter/vf_libvmaf.c @@ -29,6 +29,7 @@ #include #include "libavutil/avstring.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "avfilter.h" diff --git a/libavfilter/vf_lut.c b/libavfilter/vf_lut.c index 1a6ca06546..01df8f287d 100644 --- a/libavfilter/vf_lut.c +++ b/libavfilter/vf_lut.c @@ -30,6 +30,7 @@ #include "libavutil/bswap.h" #include "libavutil/common.h" #include "libavutil/eval.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "avfilter.h" diff --git a/libavfilter/vf_lut2.c b/libavfilter/vf_lut2.c index 49755544b0..1f0661a0f5 100644 --- a/libavfilter/vf_lut2.c +++ b/libavfilter/vf_lut2.c @@ -23,10 +23,10 @@ #include "libavutil/attributes.h" #include "libavutil/common.h" #include "libavutil/eval.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "avfilter.h" -#include "drawutils.h" #include "formats.h" #include "internal.h" #include "video.h" diff --git a/libavfilter/vf_lut3d.c b/libavfilter/vf_lut3d.c index ba2d425198..b3ddd3e69f 100644 --- a/libavfilter/vf_lut3d.c +++ b/libavfilter/vf_lut3d.c @@ -28,6 +28,7 @@ #include "config_components.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/file_open.h" #include "libavutil/intfloat.h" diff --git a/libavfilter/vf_median.c b/libavfilter/vf_median.c index 57514f9289..5ed787af5e 100644 --- a/libavfilter/vf_median.c +++ b/libavfilter/vf_median.c @@ -21,6 +21,7 @@ */ #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "avfilter.h" diff --git a/libavfilter/vf_mestimate.c b/libavfilter/vf_mestimate.c index d551dab852..3397109831 100644 --- a/libavfilter/vf_mestimate.c +++ b/libavfilter/vf_mestimate.c @@ -21,6 +21,7 @@ #include "motion_estimation.h" #include "libavcodec/mathops.h" #include "libavutil/common.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/motion_vector.h" #include "avfilter.h" diff --git a/libavfilter/vf_midequalizer.c b/libavfilter/vf_midequalizer.c index fae2b7ef19..37a4df7105 100644 --- a/libavfilter/vf_midequalizer.c +++ b/libavfilter/vf_midequalizer.c @@ -19,6 +19,7 @@ */ #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "libavutil/opt.h" #include "avfilter.h" diff --git a/libavfilter/vf_minterpolate.c b/libavfilter/vf_minterpolate.c index 171f865b0b..27743d2f46 100644 --- a/libavfilter/vf_minterpolate.c +++ b/libavfilter/vf_minterpolate.c @@ -22,6 +22,7 @@ #include "motion_estimation.h" #include "libavcodec/mathops.h" #include "libavutil/common.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "avfilter.h" diff --git a/libavfilter/vf_mix.c b/libavfilter/vf_mix.c index 10da1cadd3..bfbdc2c83e 100644 --- a/libavfilter/vf_mix.c +++ b/libavfilter/vf_mix.c @@ -22,7 +22,7 @@ #include "libavutil/avstring.h" #include "libavutil/imgutils.h" -#include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" diff --git a/libavfilter/vf_morpho.c b/libavfilter/vf_morpho.c index 35d688a849..ce0f01c9c0 100644 --- a/libavfilter/vf_morpho.c +++ b/libavfilter/vf_morpho.c @@ -26,6 +26,7 @@ #include "libavutil/avassert.h" #include "libavutil/imgutils.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "avfilter.h" diff --git a/libavfilter/vf_nlmeans.c b/libavfilter/vf_nlmeans.c index dc935538f0..64877317ed 100644 --- a/libavfilter/vf_nlmeans.c +++ b/libavfilter/vf_nlmeans.c @@ -30,6 +30,7 @@ */ #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "avfilter.h" diff --git a/libavfilter/vf_nlmeans_vulkan.c b/libavfilter/vf_nlmeans_vulkan.c index fac38d16f4..5840aea4a7 100644 --- a/libavfilter/vf_nlmeans_vulkan.c +++ b/libavfilter/vf_nlmeans_vulkan.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "libavutil/random_seed.h" #include "libavutil/opt.h" #include "vulkan_filter.h" diff --git a/libavfilter/vf_nnedi.c b/libavfilter/vf_nnedi.c index 436d7a339e..2168c5dbc5 100644 --- a/libavfilter/vf_nnedi.c +++ b/libavfilter/vf_nnedi.c @@ -25,6 +25,7 @@ #include "libavutil/file_open.h" #include "libavutil/float_dsp.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" diff --git a/libavfilter/vf_noise.c b/libavfilter/vf_noise.c index af33a73efa..c559c9843d 100644 --- a/libavfilter/vf_noise.c +++ b/libavfilter/vf_noise.c @@ -25,10 +25,10 @@ */ #include "libavutil/emms.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/imgutils.h" #include "libavutil/lfg.h" -#include "libavutil/parseutils.h" #include "libavutil/pixdesc.h" #include "avfilter.h" #include "formats.h" diff --git a/libavfilter/vf_normalize.c b/libavfilter/vf_normalize.c index d81b2d6457..337c37f0ab 100644 --- a/libavfilter/vf_normalize.c +++ b/libavfilter/vf_normalize.c @@ -73,6 +73,7 @@ */ #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "avfilter.h" diff --git a/libavfilter/vf_overlay_qsv.c b/libavfilter/vf_overlay_qsv.c index 19aaf03c17..0f52c93245 100644 --- a/libavfilter/vf_overlay_qsv.c +++ b/libavfilter/vf_overlay_qsv.c @@ -21,19 +21,17 @@ * A hardware accelerated overlay filter based on Intel Quick Sync Video VPP */ +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/common.h" #include "libavutil/pixdesc.h" #include "libavutil/eval.h" #include "libavutil/hwcontext.h" -#include "libavutil/avstring.h" -#include "libavutil/imgutils.h" #include "libavutil/mathematics.h" #include "internal.h" #include "avfilter.h" #include "formats.h" -#include "video.h" #include "framesync.h" #include "qsvvpp.h" diff --git a/libavfilter/vf_owdenoise.c b/libavfilter/vf_owdenoise.c index fad85bfa8e..9bcab5a75e 100644 --- a/libavfilter/vf_owdenoise.c +++ b/libavfilter/vf_owdenoise.c @@ -34,6 +34,7 @@ */ #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/mem_internal.h" #include "libavutil/pixdesc.h" diff --git a/libavfilter/vf_palettegen.c b/libavfilter/vf_palettegen.c index dcd4e99aff..81897a69ec 100644 --- a/libavfilter/vf_palettegen.c +++ b/libavfilter/vf_palettegen.c @@ -26,6 +26,7 @@ #include "libavutil/avassert.h" #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/intreadwrite.h" #include "avfilter.h" diff --git a/libavfilter/vf_paletteuse.c b/libavfilter/vf_paletteuse.c index 8394f62f0f..cb251fa5f9 100644 --- a/libavfilter/vf_paletteuse.c +++ b/libavfilter/vf_paletteuse.c @@ -27,6 +27,7 @@ #include "libavutil/bprint.h" #include "libavutil/file_open.h" #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/qsort.h" #include "avfilter.h" diff --git a/libavfilter/vf_perspective.c b/libavfilter/vf_perspective.c index 0206c75b6d..a97b97bcb8 100644 --- a/libavfilter/vf_perspective.c +++ b/libavfilter/vf_perspective.c @@ -22,6 +22,7 @@ #include "libavutil/avassert.h" #include "libavutil/eval.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "libavutil/opt.h" #include "avfilter.h" diff --git a/libavfilter/vf_pixdesctest.c b/libavfilter/vf_pixdesctest.c index c2638d058f..02145a327f 100644 --- a/libavfilter/vf_pixdesctest.c +++ b/libavfilter/vf_pixdesctest.c @@ -24,6 +24,7 @@ */ #include "libavutil/common.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "avfilter.h" #include "internal.h" diff --git a/libavfilter/vf_pp.c b/libavfilter/vf_pp.c index aa37325a24..44705789e6 100644 --- a/libavfilter/vf_pp.c +++ b/libavfilter/vf_pp.c @@ -25,6 +25,7 @@ */ #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "internal.h" diff --git a/libavfilter/vf_pp7.c b/libavfilter/vf_pp7.c index c4f1b20086..24b39eebd2 100644 --- a/libavfilter/vf_pp7.c +++ b/libavfilter/vf_pp7.c @@ -29,6 +29,7 @@ #include "libavutil/emms.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" diff --git a/libavfilter/vf_psnr.c b/libavfilter/vf_psnr.c index 058a8932f4..413d1fa1ee 100644 --- a/libavfilter/vf_psnr.c +++ b/libavfilter/vf_psnr.c @@ -27,6 +27,7 @@ #include "libavutil/avstring.h" #include "libavutil/file_open.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "avfilter.h" diff --git a/libavfilter/vf_pullup.c b/libavfilter/vf_pullup.c index 231f09620b..39a6cb14c2 100644 --- a/libavfilter/vf_pullup.c +++ b/libavfilter/vf_pullup.c @@ -21,6 +21,7 @@ #include "libavutil/avassert.h" #include "libavutil/emms.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "avfilter.h" diff --git a/libavfilter/vf_readeia608.c b/libavfilter/vf_readeia608.c index 50bf915765..7fb143cde0 100644 --- a/libavfilter/vf_readeia608.c +++ b/libavfilter/vf_readeia608.c @@ -27,6 +27,7 @@ #include #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" diff --git a/libavfilter/vf_removelogo.c b/libavfilter/vf_removelogo.c index b293054309..77f0f64ba3 100644 --- a/libavfilter/vf_removelogo.c +++ b/libavfilter/vf_removelogo.c @@ -70,6 +70,7 @@ */ #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avfilter.h" #include "internal.h" diff --git a/libavfilter/vf_sab.c b/libavfilter/vf_sab.c index 5e0687c9a2..9e83e08355 100644 --- a/libavfilter/vf_sab.c +++ b/libavfilter/vf_sab.c @@ -23,6 +23,7 @@ * Shape Adaptive Blur filter, ported from MPlayer libmpcodecs/vf_sab.c */ +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "libswscale/swscale.h" diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c index fc3b5a91e6..00fcb31b1c 100644 --- a/libavfilter/vf_scale.c +++ b/libavfilter/vf_scale.c @@ -32,14 +32,12 @@ #include "internal.h" #include "scale_eval.h" #include "video.h" -#include "libavutil/avstring.h" #include "libavutil/eval.h" #include "libavutil/internal.h" -#include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/parseutils.h" #include "libavutil/pixdesc.h" -#include "libavutil/imgutils.h" #include "libswscale/swscale.h" static const char *const var_names[] = { diff --git a/libavfilter/vf_scale_npp.c b/libavfilter/vf_scale_npp.c index 9e55fe6995..27e5e584ae 100644 --- a/libavfilter/vf_scale_npp.c +++ b/libavfilter/vf_scale_npp.c @@ -29,6 +29,7 @@ #include "libavutil/hwcontext_cuda_internal.h" #include "libavutil/cuda_check.h" #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/parseutils.h" #include "libavutil/eval.h" diff --git a/libavfilter/vf_shuffleframes.c b/libavfilter/vf_shuffleframes.c index cf8f197e27..000be9c090 100644 --- a/libavfilter/vf_shuffleframes.c +++ b/libavfilter/vf_shuffleframes.c @@ -21,6 +21,7 @@ #include "libavutil/avstring.h" #include "libavutil/common.h" #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avfilter.h" diff --git a/libavfilter/vf_shufflepixels.c b/libavfilter/vf_shufflepixels.c index d3e1af087d..a5de7d67f3 100644 --- a/libavfilter/vf_shufflepixels.c +++ b/libavfilter/vf_shufflepixels.c @@ -19,11 +19,11 @@ */ #include "libavutil/avassert.h" -#include "libavutil/avstring.h" #include "libavutil/common.h" #include "libavutil/internal.h" #include "libavutil/imgutils.h" #include "libavutil/lfg.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "libavutil/random_seed.h" diff --git a/libavfilter/vf_signalstats.c b/libavfilter/vf_signalstats.c index 49bd9aa509..c2358c66cb 100644 --- a/libavfilter/vf_signalstats.c +++ b/libavfilter/vf_signalstats.c @@ -21,6 +21,7 @@ */ #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "filters.h" diff --git a/libavfilter/vf_signature.c b/libavfilter/vf_signature.c index 3858fe3070..d5c0df57e6 100644 --- a/libavfilter/vf_signature.c +++ b/libavfilter/vf_signature.c @@ -26,6 +26,7 @@ #include "libavcodec/put_bits.h" #include "libavformat/avformat.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/avstring.h" #include "libavutil/file_open.h" diff --git a/libavfilter/vf_siti.c b/libavfilter/vf_siti.c index 1b6ff32d6e..722e7cecc7 100644 --- a/libavfilter/vf_siti.c +++ b/libavfilter/vf_siti.c @@ -28,6 +28,7 @@ #include "libavutil/imgutils.h" #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avfilter.h" diff --git a/libavfilter/vf_spp.c b/libavfilter/vf_spp.c index 5c6495612b..48911b296a 100644 --- a/libavfilter/vf_spp.c +++ b/libavfilter/vf_spp.c @@ -33,6 +33,7 @@ #include "libavutil/emms.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" diff --git a/libavfilter/vf_ssim.c b/libavfilter/vf_ssim.c index 53eb72fe6a..2210ea40ec 100644 --- a/libavfilter/vf_ssim.c +++ b/libavfilter/vf_ssim.c @@ -36,6 +36,7 @@ #include "libavutil/avstring.h" #include "libavutil/file_open.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "avfilter.h" diff --git a/libavfilter/vf_ssim360.c b/libavfilter/vf_ssim360.c index 0f5b11c723..33606ea599 100644 --- a/libavfilter/vf_ssim360.c +++ b/libavfilter/vf_ssim360.c @@ -45,6 +45,7 @@ #include "libavutil/avstring.h" #include "libavutil/file_open.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" diff --git a/libavfilter/vf_stack.c b/libavfilter/vf_stack.c index 2bb3d9b1d2..5bb50148a7 100644 --- a/libavfilter/vf_stack.c +++ b/libavfilter/vf_stack.c @@ -22,6 +22,7 @@ #include "libavutil/avstring.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/parseutils.h" #include "libavutil/pixdesc.h" diff --git a/libavfilter/vf_stack_qsv.c b/libavfilter/vf_stack_qsv.c index 3e6aefe44b..abaf156915 100644 --- a/libavfilter/vf_stack_qsv.c +++ b/libavfilter/vf_stack_qsv.c @@ -23,6 +23,7 @@ #include "config_components.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/common.h" #include "libavutil/pixdesc.h" diff --git a/libavfilter/vf_subtitles.c b/libavfilter/vf_subtitles.c index a6338f3daf..bd955d1b37 100644 --- a/libavfilter/vf_subtitles.c +++ b/libavfilter/vf_subtitles.c @@ -29,7 +29,6 @@ #include -#include "config.h" #include "config_components.h" #if CONFIG_SUBTITLES_FILTER # include "libavcodec/avcodec.h" @@ -37,9 +36,8 @@ # include "libavformat/avformat.h" #endif #include "libavutil/avstring.h" -#include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" -#include "libavutil/parseutils.h" #include "drawutils.h" #include "avfilter.h" #include "internal.h" diff --git a/libavfilter/vf_swaprect.c b/libavfilter/vf_swaprect.c index 119fd692fa..54400f0304 100644 --- a/libavfilter/vf_swaprect.c +++ b/libavfilter/vf_swaprect.c @@ -19,9 +19,9 @@ */ #include "libavutil/avassert.h" -#include "libavutil/avstring.h" #include "libavutil/eval.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avfilter.h" diff --git a/libavfilter/vf_thumbnail.c b/libavfilter/vf_thumbnail.c index 0b335c2a71..f7001c4ada 100644 --- a/libavfilter/vf_thumbnail.c +++ b/libavfilter/vf_thumbnail.c @@ -27,6 +27,7 @@ * @see http://notbrainsurgery.livejournal.com/29773.html */ +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "avfilter.h" diff --git a/libavfilter/vf_thumbnail_cuda.c b/libavfilter/vf_thumbnail_cuda.c index c8dd905123..0459070800 100644 --- a/libavfilter/vf_thumbnail_cuda.c +++ b/libavfilter/vf_thumbnail_cuda.c @@ -23,6 +23,7 @@ #include "libavutil/hwcontext.h" #include "libavutil/hwcontext_cuda_internal.h" #include "libavutil/cuda_check.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" diff --git a/libavfilter/vf_tiltandshift.c b/libavfilter/vf_tiltandshift.c index dc30f4ff1b..85cce84fc3 100644 --- a/libavfilter/vf_tiltandshift.c +++ b/libavfilter/vf_tiltandshift.c @@ -25,14 +25,12 @@ #include -#include "libavutil/common.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" -#include "libavutil/rational.h" #include "avfilter.h" -#include "formats.h" #include "internal.h" #include "video.h" diff --git a/libavfilter/vf_tinterlace.c b/libavfilter/vf_tinterlace.c index c916e58375..89af1b89c5 100644 --- a/libavfilter/vf_tinterlace.c +++ b/libavfilter/vf_tinterlace.c @@ -26,6 +26,7 @@ * temporal field interlace filter, ported from MPlayer/libmpcodecs */ +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/imgutils.h" #include "libavutil/avassert.h" diff --git a/libavfilter/vf_tmidequalizer.c b/libavfilter/vf_tmidequalizer.c index 650aa36636..9e7b14cb67 100644 --- a/libavfilter/vf_tmidequalizer.c +++ b/libavfilter/vf_tmidequalizer.c @@ -19,6 +19,7 @@ */ #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "libavutil/opt.h" #include "avfilter.h" diff --git a/libavfilter/vf_uspp.c b/libavfilter/vf_uspp.c index 10c8aaeb6c..ac3e8ea0da 100644 --- a/libavfilter/vf_uspp.c +++ b/libavfilter/vf_uspp.c @@ -29,6 +29,7 @@ #include "libavutil/avassert.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" diff --git a/libavfilter/vf_v360.c b/libavfilter/vf_v360.c index 942b47d7a4..5ea6e0d865 100644 --- a/libavfilter/vf_v360.c +++ b/libavfilter/vf_v360.c @@ -36,7 +36,7 @@ #include #include "libavutil/avassert.h" -#include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "libavutil/opt.h" #include "avfilter.h" diff --git a/libavfilter/vf_vaguedenoiser.c b/libavfilter/vf_vaguedenoiser.c index 19deaa25e2..7c92736df2 100644 --- a/libavfilter/vf_vaguedenoiser.c +++ b/libavfilter/vf_vaguedenoiser.c @@ -23,6 +23,7 @@ #include "libavutil/imgutils.h" #include "libavutil/attributes.h" #include "libavutil/common.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "libavutil/opt.h" diff --git a/libavfilter/vf_varblur.c b/libavfilter/vf_varblur.c index 6ebb9c0663..7a022099e9 100644 --- a/libavfilter/vf_varblur.c +++ b/libavfilter/vf_varblur.c @@ -19,6 +19,7 @@ */ #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "avfilter.h" diff --git a/libavfilter/vf_vectorscope.c b/libavfilter/vf_vectorscope.c index 735cf35a85..a1f98ece68 100644 --- a/libavfilter/vf_vectorscope.c +++ b/libavfilter/vf_vectorscope.c @@ -20,8 +20,8 @@ #include "libavutil/avassert.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" -#include "libavutil/parseutils.h" #include "libavutil/pixdesc.h" #include "libavutil/xga_font_data.h" #include "avfilter.h" diff --git a/libavfilter/vf_vif.c b/libavfilter/vf_vif.c index a927abaf6f..38b6a32365 100644 --- a/libavfilter/vf_vif.c +++ b/libavfilter/vf_vif.c @@ -27,6 +27,7 @@ #include +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "avfilter.h" diff --git a/libavfilter/vf_vignette.c b/libavfilter/vf_vignette.c index b329c510ab..13c511fdc7 100644 --- a/libavfilter/vf_vignette.c +++ b/libavfilter/vf_vignette.c @@ -20,6 +20,7 @@ #include /* DBL_MAX */ +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/eval.h" #include "libavutil/pixdesc.h" diff --git a/libavfilter/vf_vmafmotion.c b/libavfilter/vf_vmafmotion.c index 022816e896..d1b67c7fb2 100644 --- a/libavfilter/vf_vmafmotion.c +++ b/libavfilter/vf_vmafmotion.c @@ -25,6 +25,7 @@ */ #include "libavutil/file_open.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "avfilter.h" diff --git a/libavfilter/vf_w3fdif.c b/libavfilter/vf_w3fdif.c index 6814905a4f..a5a9cdd5cb 100644 --- a/libavfilter/vf_w3fdif.c +++ b/libavfilter/vf_w3fdif.c @@ -23,6 +23,7 @@ #include "libavutil/common.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "avfilter.h" diff --git a/libavfilter/vf_waveform.c b/libavfilter/vf_waveform.c index e004ea84f1..f45b445443 100644 --- a/libavfilter/vf_waveform.c +++ b/libavfilter/vf_waveform.c @@ -19,8 +19,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "libavutil/opt.h" -#include "libavutil/parseutils.h" #include "libavutil/pixdesc.h" #include "libavutil/xga_font_data.h" #include "avfilter.h" diff --git a/libavfilter/vf_xmedian.c b/libavfilter/vf_xmedian.c index ebcbea97ed..334d4018a2 100644 --- a/libavfilter/vf_xmedian.c +++ b/libavfilter/vf_xmedian.c @@ -22,6 +22,7 @@ #include "libavutil/avstring.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "libavutil/qsort.h" diff --git a/libavfilter/vf_yaepblur.c b/libavfilter/vf_yaepblur.c index b39738b577..9b5ec0348f 100644 --- a/libavfilter/vf_yaepblur.c +++ b/libavfilter/vf_yaepblur.c @@ -27,6 +27,7 @@ * Anal. Mach. Intell. PAMI-2, 1980." */ +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/imgutils.h" #include "avfilter.h" diff --git a/libavfilter/vf_zscale.c b/libavfilter/vf_zscale.c index ad8fdb6eb7..45f1bd25ce 100644 --- a/libavfilter/vf_zscale.c +++ b/libavfilter/vf_zscale.c @@ -34,15 +34,14 @@ #include "formats.h" #include "internal.h" #include "video.h" -#include "libavutil/avstring.h" #include "libavutil/eval.h" #include "libavutil/internal.h" #include "libavutil/intreadwrite.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/parseutils.h" #include "libavutil/pixdesc.h" -#include "libavutil/imgutils.h" #define ZIMG_ALIGNMENT 64 #define MIN_TILESIZE 64 diff --git a/libavfilter/video.c b/libavfilter/video.c index bbd1193835..89d0797ab5 100644 --- a/libavfilter/video.c +++ b/libavfilter/video.c @@ -26,7 +26,7 @@ #include "libavutil/buffer.h" #include "libavutil/cpu.h" #include "libavutil/hwcontext.h" -#include "libavutil/imgutils.h" +#include "libavutil/pixfmt.h" #include "avfilter.h" #include "avfilter_internal.h" diff --git a/libavfilter/vidstabutils.c b/libavfilter/vidstabutils.c index 56fbdbdb87..a0c1fc990e 100644 --- a/libavfilter/vidstabutils.c +++ b/libavfilter/vidstabutils.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "vidstabutils.h" const enum AVPixelFormat ff_vidstab_pix_fmts[] = { diff --git a/libavfilter/vsrc_cellauto.c b/libavfilter/vsrc_cellauto.c index b469f1bf20..f9223fd848 100644 --- a/libavfilter/vsrc_cellauto.c +++ b/libavfilter/vsrc_cellauto.c @@ -28,6 +28,7 @@ #include "libavutil/file.h" #include "libavutil/internal.h" #include "libavutil/lfg.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/random_seed.h" #include "libavutil/avstring.h" diff --git a/libavfilter/vsrc_ddagrab.c b/libavfilter/vsrc_ddagrab.c index 018f46ed94..2fb109dede 100644 --- a/libavfilter/vsrc_ddagrab.c +++ b/libavfilter/vsrc_ddagrab.c @@ -34,6 +34,7 @@ #include #endif +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/time.h" #include "libavutil/avstring.h" diff --git a/libavfilter/vsrc_life.c b/libavfilter/vsrc_life.c index 9f83ca5e18..65e510dbdb 100644 --- a/libavfilter/vsrc_life.c +++ b/libavfilter/vsrc_life.c @@ -29,8 +29,8 @@ #include "libavutil/internal.h" #include "libavutil/intreadwrite.h" #include "libavutil/lfg.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" -#include "libavutil/parseutils.h" #include "libavutil/random_seed.h" #include "libavutil/avstring.h" #include "avfilter.h" diff --git a/libavfilter/vsrc_mandelbrot.c b/libavfilter/vsrc_mandelbrot.c index 8eede77377..982ef71814 100644 --- a/libavfilter/vsrc_mandelbrot.c +++ b/libavfilter/vsrc_mandelbrot.c @@ -30,6 +30,7 @@ #include "video.h" #include "internal.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include #include diff --git a/libavfilter/vsrc_testsrc.c b/libavfilter/vsrc_testsrc.c index 55c7e30ed6..273a852f82 100644 --- a/libavfilter/vsrc_testsrc.c +++ b/libavfilter/vsrc_testsrc.c @@ -35,15 +35,13 @@ #include "config_components.h" -#include - #include "libavutil/avassert.h" #include "libavutil/common.h" #include "libavutil/ffmath.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/imgutils.h" #include "libavutil/intreadwrite.h" -#include "libavutil/parseutils.h" #include "libavutil/xga_font_data.h" #include "avfilter.h" #include "drawutils.h" diff --git a/libavfilter/x86/vf_gblur_init.c b/libavfilter/x86/vf_gblur_init.c index b47f6fbffb..6aabfb4106 100644 --- a/libavfilter/x86/vf_gblur_init.c +++ b/libavfilter/x86/vf_gblur_init.c @@ -21,6 +21,7 @@ #include "libavutil/attributes.h" #include "libavutil/cpu.h" +#include "libavutil/mem.h" #include "libavutil/x86/cpu.h" #include "libavfilter/gblur.h" diff --git a/libavformat/4xm.c b/libavformat/4xm.c index 516c7866bd..218ea837c5 100644 --- a/libavformat/4xm.c +++ b/libavformat/4xm.c @@ -29,6 +29,7 @@ #include "libavutil/intreadwrite.h" #include "libavutil/intfloat.h" +#include "libavutil/mem.h" #include "libavcodec/internal.h" #include "avformat.h" #include "demux.h" diff --git a/libavformat/aadec.c b/libavformat/aadec.c index c39fb51a8d..e9b0a6a977 100644 --- a/libavformat/aadec.c +++ b/libavformat/aadec.c @@ -29,6 +29,7 @@ #include "libavutil/avstring.h" #include "libavutil/dict.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/tea.h" #include "libavutil/opt.h" diff --git a/libavformat/aaxdec.c b/libavformat/aaxdec.c index 830ae5d89e..40a088a35b 100644 --- a/libavformat/aaxdec.c +++ b/libavformat/aaxdec.c @@ -20,6 +20,7 @@ */ #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avformat.h" #include "avio_internal.h" #include "demux.h" diff --git a/libavformat/aiffdec.c b/libavformat/aiffdec.c index 9318943f96..eb565054e7 100644 --- a/libavformat/aiffdec.c +++ b/libavformat/aiffdec.c @@ -21,6 +21,7 @@ #include "libavutil/intreadwrite.h" #include "libavutil/dict.h" +#include "libavutil/mem.h" #include "avformat.h" #include "demux.h" #include "internal.h" diff --git a/libavformat/ape.c b/libavformat/ape.c index 231064be61..c0e3e9f4fe 100644 --- a/libavformat/ape.c +++ b/libavformat/ape.c @@ -23,6 +23,7 @@ #include #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avformat.h" #include "demux.h" #include "internal.h" diff --git a/libavformat/apetag.c b/libavformat/apetag.c index f2794c46f2..bd0a19e4d6 100644 --- a/libavformat/apetag.c +++ b/libavformat/apetag.c @@ -23,6 +23,7 @@ #include #include "libavutil/dict.h" +#include "libavutil/mem.h" #include "avformat.h" #include "avio_internal.h" #include "apetag.h" diff --git a/libavformat/apngdec.c b/libavformat/apngdec.c index 4690283337..d0005046c1 100644 --- a/libavformat/apngdec.c +++ b/libavformat/apngdec.c @@ -32,6 +32,7 @@ #include "internal.h" #include "libavutil/imgutils.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavcodec/apng.h" #include "libavcodec/png.h" diff --git a/libavformat/apngenc.c b/libavformat/apngenc.c index 4d0438f824..0d56d784f2 100644 --- a/libavformat/apngenc.c +++ b/libavformat/apngenc.c @@ -27,6 +27,7 @@ #include "libavutil/crc.h" #include "libavutil/intreadwrite.h" #include "libavutil/log.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavcodec/apng.h" #include "libavcodec/png.h" diff --git a/libavformat/asf.c b/libavformat/asf.c index 1285062220..a71337aa3c 100644 --- a/libavformat/asf.c +++ b/libavformat/asf.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "asf.h" #include "demux.h" #include "id3v2.h" diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c index 9713c02b0a..fcc2b98a2c 100644 --- a/libavformat/asfdec_f.c +++ b/libavformat/asfdec_f.c @@ -29,6 +29,7 @@ #include "libavutil/dict.h" #include "libavutil/internal.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avformat.h" #include "avio_internal.h" diff --git a/libavformat/asfdec_o.c b/libavformat/asfdec_o.c index 484fb64b36..dfe448e9f7 100644 --- a/libavformat/asfdec_o.c +++ b/libavformat/asfdec_o.c @@ -26,6 +26,7 @@ #include "libavutil/dict.h" #include "libavutil/internal.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/time_internal.h" #include "avformat.h" diff --git a/libavformat/asfenc.c b/libavformat/asfenc.c index 2f2d9b1bab..75285b065c 100644 --- a/libavformat/asfenc.c +++ b/libavformat/asfenc.c @@ -24,6 +24,7 @@ #include "libavutil/avassert.h" #include "libavutil/dict.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavcodec/codec_desc.h" #include "avformat.h" diff --git a/libavformat/assenc.c b/libavformat/assenc.c index 7b474a6005..75c19afd05 100644 --- a/libavformat/assenc.c +++ b/libavformat/assenc.c @@ -20,6 +20,7 @@ */ #include "libavutil/avstring.h" +#include "libavutil/mem.h" #include "avformat.h" #include "avio_internal.h" #include "internal.h" diff --git a/libavformat/au.c b/libavformat/au.c index 98f1a5b507..2244995825 100644 --- a/libavformat/au.c +++ b/libavformat/au.c @@ -31,6 +31,7 @@ #include "libavutil/bprint.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avformat.h" #include "demux.h" #include "internal.h" diff --git a/libavformat/avc.c b/libavformat/avc.c index b0ceb1d2d8..047ea88077 100644 --- a/libavformat/avc.c +++ b/libavformat/avc.c @@ -20,9 +20,9 @@ */ #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavcodec/h264.h" #include "libavcodec/get_bits.h" -#include "avformat.h" #include "avio.h" #include "avc.h" #include "avio_internal.h" diff --git a/libavformat/avidec.c b/libavformat/avidec.c index 2c99dbb88a..1ae09efc15 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -25,6 +25,7 @@ #include "libavutil/avassert.h" #include "libavutil/avstring.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/dict.h" #include "libavutil/integer.h" diff --git a/libavformat/avienc.c b/libavformat/avienc.c index a61e5c3109..2a3cff1210 100644 --- a/libavformat/avienc.c +++ b/libavformat/avienc.c @@ -25,7 +25,6 @@ #include "internal.h" #include "avi.h" #include "avio_internal.h" -#include "config_components.h" #include "riff.h" #include "mpegts.h" #include "mux.h" @@ -36,6 +35,7 @@ #include "libavutil/internal.h" #include "libavutil/dict.h" #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "libavutil/timestamp.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" diff --git a/libavformat/avio.c b/libavformat/avio.c index 0503b22786..d109f3adff 100644 --- a/libavformat/avio.c +++ b/libavformat/avio.c @@ -21,6 +21,7 @@ #include "libavutil/avstring.h" #include "libavutil/dict.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/time.h" #include "libavutil/avassert.h" diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index 3609960907..6a74c1ce68 100644 --- a/libavformat/aviobuf.c +++ b/libavformat/aviobuf.c @@ -24,6 +24,7 @@ #include "libavutil/dict.h" #include "libavutil/intreadwrite.h" #include "libavutil/log.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/avassert.h" #include "libavcodec/defs.h" diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c index e85b9ae488..1709bf4051 100644 --- a/libavformat/avisynth.c +++ b/libavformat/avisynth.c @@ -21,10 +21,9 @@ #include "libavutil/attributes.h" #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" -#include "libavcodec/internal.h" - #include "avformat.h" #include "demux.h" #include "internal.h" diff --git a/libavformat/bethsoftvid.c b/libavformat/bethsoftvid.c index bdf1bdc6c0..e3c4758f30 100644 --- a/libavformat/bethsoftvid.c +++ b/libavformat/bethsoftvid.c @@ -30,6 +30,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/imgutils.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avformat.h" #include "demux.h" #include "internal.h" diff --git a/libavformat/bmv.c b/libavformat/bmv.c index b2980cf582..84ab2aac5a 100644 --- a/libavformat/bmv.c +++ b/libavformat/bmv.c @@ -20,6 +20,7 @@ */ #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "avformat.h" #include "demux.h" #include "internal.h" diff --git a/libavformat/brstm.c b/libavformat/brstm.c index 8b0ba3af67..d29004155b 100644 --- a/libavformat/brstm.c +++ b/libavformat/brstm.c @@ -20,6 +20,7 @@ */ #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavcodec/bytestream.h" #include "avformat.h" #include "demux.h" diff --git a/libavformat/cache.c b/libavformat/cache.c index 115c2c2490..5f78adba9d 100644 --- a/libavformat/cache.c +++ b/libavformat/cache.c @@ -30,6 +30,7 @@ #include "libavutil/avassert.h" #include "libavutil/avstring.h" #include "libavutil/file_open.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/tree.h" #include "avio.h" diff --git a/libavformat/cafdec.c b/libavformat/cafdec.c index 07a2939a7a..5d7dbe8f41 100644 --- a/libavformat/cafdec.c +++ b/libavformat/cafdec.c @@ -36,6 +36,7 @@ #include "libavutil/intreadwrite.h" #include "libavutil/intfloat.h" #include "libavutil/dict.h" +#include "libavutil/mem.h" #include "caf.h" typedef struct CafContext { diff --git a/libavformat/cafenc.c b/libavformat/cafenc.c index 426bc05209..89ecb51e53 100644 --- a/libavformat/cafenc.c +++ b/libavformat/cafenc.c @@ -26,6 +26,7 @@ #include "mux.h" #include "libavutil/intfloat.h" #include "libavutil/dict.h" +#include "libavutil/mem.h" #define FRAME_SIZE_OFFSET 40 diff --git a/libavformat/cinedec.c b/libavformat/cinedec.c index 9ddfc90b47..e0bcca4ce5 100644 --- a/libavformat/cinedec.c +++ b/libavformat/cinedec.c @@ -26,6 +26,7 @@ */ #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavcodec/bmp.h" #include "libavutil/intfloat.h" #include "avformat.h" diff --git a/libavformat/concatdec.c b/libavformat/concatdec.c index b1d0de18f1..493659649c 100644 --- a/libavformat/concatdec.c +++ b/libavformat/concatdec.c @@ -22,6 +22,7 @@ #include "libavutil/avassert.h" #include "libavutil/bprint.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/parseutils.h" #include "libavutil/timestamp.h" diff --git a/libavformat/crypto.c b/libavformat/crypto.c index 4393fb6399..cd462e7b9d 100644 --- a/libavformat/crypto.c +++ b/libavformat/crypto.c @@ -21,6 +21,7 @@ #include "libavutil/aes.h" #include "libavutil/avstring.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "url.h" diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 63070b77be..555e21bf69 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -22,6 +22,7 @@ #include #include #include "libavutil/bprint.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/time.h" #include "libavutil/parseutils.h" diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 5cb38c4c31..8c14aa746e 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -33,6 +33,7 @@ #include "libavutil/bprint.h" #include "libavutil/intreadwrite.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/parseutils.h" #include "libavutil/rational.h" diff --git a/libavformat/data_uri.c b/libavformat/data_uri.c index 28eb2b9e08..3868a19630 100644 --- a/libavformat/data_uri.c +++ b/libavformat/data_uri.c @@ -22,6 +22,7 @@ #include "libavutil/avstring.h" #include "libavutil/avutil.h" #include "libavutil/base64.h" +#include "libavutil/mem.h" #include "url.h" typedef struct { diff --git a/libavformat/demux.c b/libavformat/demux.c index 147f3b93ac..3ead690df0 100644 --- a/libavformat/demux.c +++ b/libavformat/demux.c @@ -29,6 +29,7 @@ #include "libavutil/internal.h" #include "libavutil/intreadwrite.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixfmt.h" #include "libavutil/time.h" diff --git a/libavformat/demux_utils.c b/libavformat/demux_utils.c index 171a07107b..86f551245b 100644 --- a/libavformat/demux_utils.c +++ b/libavformat/demux_utils.c @@ -19,7 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "libavutil/version.h" +#include "libavutil/mem.h" #include "libavutil/avassert.h" #include "libavcodec/bytestream.h" diff --git a/libavformat/dhav.c b/libavformat/dhav.c index 997875eff6..303fb42bed 100644 --- a/libavformat/dhav.c +++ b/libavformat/dhav.c @@ -22,6 +22,7 @@ #include +#include "libavutil/mem.h" #include "libavutil/parseutils.h" #include "avio_internal.h" #include "avformat.h" diff --git a/libavformat/dovi_isom.c b/libavformat/dovi_isom.c index ef7ab1b6d9..d49aa5a75f 100644 --- a/libavformat/dovi_isom.c +++ b/libavformat/dovi_isom.c @@ -22,6 +22,7 @@ */ #include "libavutil/dovi_meta.h" +#include "libavutil/mem.h" #include "libavcodec/put_bits.h" diff --git a/libavformat/dss.c b/libavformat/dss.c index 510b1bd60c..47c8f49d67 100644 --- a/libavformat/dss.c +++ b/libavformat/dss.c @@ -21,6 +21,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avformat.h" #include "demux.h" diff --git a/libavformat/dtshddec.c b/libavformat/dtshddec.c index 9939724ac7..28d3aeb47a 100644 --- a/libavformat/dtshddec.c +++ b/libavformat/dtshddec.c @@ -21,6 +21,7 @@ #include "libavutil/intreadwrite.h" #include "libavutil/dict.h" +#include "libavutil/mem.h" #include "libavcodec/dca.h" #include "avformat.h" #include "demux.h" diff --git a/libavformat/dump.c b/libavformat/dump.c index ca47d733f7..059fb84522 100644 --- a/libavformat/dump.c +++ b/libavformat/dump.c @@ -32,6 +32,7 @@ #include "libavutil/ambient_viewing_environment.h" #include "libavutil/dovi_meta.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/replaygain.h" #include "libavutil/spherical.h" diff --git a/libavformat/dv.c b/libavformat/dv.c index c0d3343e37..8af0d5a652 100644 --- a/libavformat/dv.c +++ b/libavformat/dv.c @@ -40,6 +40,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/intreadwrite.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/timecode.h" #include "dv.h" #include "libavutil/avassert.h" diff --git a/libavformat/evc.c b/libavformat/evc.c index 95f07266b0..fabccb054c 100644 --- a/libavformat/evc.c +++ b/libavformat/evc.c @@ -19,14 +19,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavcodec/get_bits.h" #include "libavcodec/golomb.h" #include "libavcodec/evc.h" -#include "avformat.h" #include "avio.h" #include "evc.h" -#include "avio_internal.h" // @see ISO/IEC 14496-15:2021 Coding of audio-visual objects - Part 15: section 12.3.3.1 enum { diff --git a/libavformat/ffmetadec.c b/libavformat/ffmetadec.c index ab62b7006e..bfda7d0bd8 100644 --- a/libavformat/ffmetadec.c +++ b/libavformat/ffmetadec.c @@ -21,6 +21,7 @@ #include "libavutil/bprint.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "avformat.h" #include "demux.h" #include "ffmeta.h" diff --git a/libavformat/file.c b/libavformat/file.c index 182995717a..670481d7b4 100644 --- a/libavformat/file.c +++ b/libavformat/file.c @@ -24,6 +24,7 @@ #include "libavutil/avstring.h" #include "libavutil/file_open.h" #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avio.h" #if HAVE_DIRENT_H diff --git a/libavformat/fitsenc.c b/libavformat/fitsenc.c index a8efe93d3c..69da4319da 100644 --- a/libavformat/fitsenc.c +++ b/libavformat/fitsenc.c @@ -24,8 +24,8 @@ * FITS muxer. */ +#include "avformat.h" #include "avio_internal.h" -#include "internal.h" #include "mux.h" typedef struct FITSContext { diff --git a/libavformat/flacdec.c b/libavformat/flacdec.c index 4ce6251137..3d35da5fea 100644 --- a/libavformat/flacdec.c +++ b/libavformat/flacdec.c @@ -20,6 +20,7 @@ */ #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "libavcodec/avcodec.h" #include "libavcodec/bytestream.h" #include "libavcodec/flac.h" diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 892371fcd0..22a9b9e4a7 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -29,12 +29,12 @@ #include "libavutil/channel_layout.h" #include "libavutil/dict.h" #include "libavutil/dict_internal.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/internal.h" #include "libavutil/intfloat.h" #include "libavutil/intreadwrite.h" #include "libavutil/mastering_display_metadata.h" -#include "libavutil/mathematics.h" #include "avformat.h" #include "demux.h" #include "internal.h" diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c index a7d4fa46a2..aba1d7d80b 100644 --- a/libavformat/flvenc.c +++ b/libavformat/flvenc.c @@ -25,6 +25,7 @@ #include "libavutil/avassert.h" #include "libavutil/mastering_display_metadata.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavcodec/codec_desc.h" #include "libavcodec/mpeg4audio.h" #include "avio.h" diff --git a/libavformat/format.c b/libavformat/format.c index 0cdfd85c22..e65a6fc05e 100644 --- a/libavformat/format.c +++ b/libavformat/format.c @@ -22,9 +22,8 @@ #include "config_components.h" #include "libavutil/avstring.h" -#include "libavutil/bprint.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" -#include "libavutil/thread.h" #include "avio_internal.h" #include "avformat.h" diff --git a/libavformat/ftp.c b/libavformat/ftp.c index f9b069a59e..fba32715ec 100644 --- a/libavformat/ftp.c +++ b/libavformat/ftp.c @@ -23,6 +23,7 @@ #include "libavutil/avstring.h" #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "libavutil/parseutils.h" #include "avformat.h" #include "internal.h" diff --git a/libavformat/gxfenc.c b/libavformat/gxfenc.c index 0aea7bd7c2..43ffa9d455 100644 --- a/libavformat/gxfenc.c +++ b/libavformat/gxfenc.c @@ -22,6 +22,7 @@ #include "libavutil/avassert.h" #include "libavutil/intfloat.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "avformat.h" #include "avio_internal.h" #include "internal.h" diff --git a/libavformat/hashenc.c b/libavformat/hashenc.c index 17ee2f7e9f..e4e3244246 100644 --- a/libavformat/hashenc.c +++ b/libavformat/hashenc.c @@ -24,6 +24,7 @@ #include "libavutil/avstring.h" #include "libavutil/hash.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avformat.h" #include "internal.h" diff --git a/libavformat/hdsenc.c b/libavformat/hdsenc.c index 17fa0c807f..01efa1f8da 100644 --- a/libavformat/hdsenc.c +++ b/libavformat/hdsenc.c @@ -33,6 +33,7 @@ #include "libavutil/base64.h" #include "libavutil/intreadwrite.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" typedef struct Fragment { diff --git a/libavformat/hevc.c b/libavformat/hevc.c index ca5187a92e..395907807f 100644 --- a/libavformat/hevc.c +++ b/libavformat/hevc.c @@ -22,6 +22,7 @@ #include "libavcodec/golomb.h" #include "libavcodec/hevc.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avc.h" #include "avio.h" #include "avio_internal.h" diff --git a/libavformat/hls.c b/libavformat/hls.c index 8702113e9f..214a99c7ba 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -35,6 +35,7 @@ #include "libavutil/avassert.h" #include "libavutil/intreadwrite.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/dict.h" #include "libavutil/time.h" diff --git a/libavformat/hls_sample_encryption.c b/libavformat/hls_sample_encryption.c index f412836d4f..f9f410f3da 100644 --- a/libavformat/hls_sample_encryption.c +++ b/libavformat/hls_sample_encryption.c @@ -28,6 +28,7 @@ #include "libavutil/aes.h" #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "hls_sample_encryption.h" diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 2202ce64e4..ac8bb189f0 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -33,6 +33,7 @@ #include "libavutil/avstring.h" #include "libavutil/bprint.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/log.h" #include "libavutil/random_seed.h" diff --git a/libavformat/hlsproto.c b/libavformat/hlsproto.c index 4db61dee30..02f695c1db 100644 --- a/libavformat/hlsproto.c +++ b/libavformat/hlsproto.c @@ -26,6 +26,7 @@ */ #include "libavutil/avstring.h" +#include "libavutil/mem.h" #include "libavutil/time.h" #include "avio_internal.h" #include "internal.h" diff --git a/libavformat/http.c b/libavformat/http.c index 9e933b18b3..ed20359552 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -31,6 +31,7 @@ #include "libavutil/avstring.h" #include "libavutil/bprint.h" #include "libavutil/getenv_utf8.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/time.h" #include "libavutil/parseutils.h" diff --git a/libavformat/httpauth.c b/libavformat/httpauth.c index 9780928357..9048362509 100644 --- a/libavformat/httpauth.c +++ b/libavformat/httpauth.c @@ -22,6 +22,7 @@ #include "httpauth.h" #include "libavutil/base64.h" #include "libavutil/avstring.h" +#include "libavutil/mem.h" #include "internal.h" #include "libavutil/random_seed.h" #include "libavutil/md5.h" diff --git a/libavformat/iamf_parse.c b/libavformat/iamf_parse.c index cb49cf0a57..bda1580bbd 100644 --- a/libavformat/iamf_parse.c +++ b/libavformat/iamf_parse.c @@ -20,10 +20,10 @@ */ #include "libavutil/avassert.h" -#include "libavutil/common.h" #include "libavutil/iamf.h" #include "libavutil/intreadwrite.h" #include "libavutil/log.h" +#include "libavutil/mem.h" #include "libavcodec/get_bits.h" #include "libavcodec/flac.h" #include "libavcodec/leb.h" diff --git a/libavformat/iamf_reader.c b/libavformat/iamf_reader.c index 270cfac389..42f9770c13 100644 --- a/libavformat/iamf_reader.c +++ b/libavformat/iamf_reader.c @@ -22,6 +22,7 @@ #include "libavutil/avassert.h" #include "libavutil/intreadwrite.h" #include "libavutil/log.h" +#include "libavutil/mem.h" #include "libavcodec/mathops.h" #include "libavcodec/packet.h" #include "avformat.h" diff --git a/libavformat/icecast.c b/libavformat/icecast.c index b06c53cabd..3146d7f384 100644 --- a/libavformat/icecast.c +++ b/libavformat/icecast.c @@ -20,8 +20,8 @@ */ -#include "libavutil/avstring.h" #include "libavutil/bprint.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avformat.h" diff --git a/libavformat/icodec.c b/libavformat/icodec.c index 808c7ab795..afd0c71b1f 100644 --- a/libavformat/icodec.c +++ b/libavformat/icodec.c @@ -25,6 +25,7 @@ */ #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavcodec/bytestream.h" #include "libavcodec/png.h" #include "avformat.h" diff --git a/libavformat/icoenc.c b/libavformat/icoenc.c index caa3ba4965..7a7d839d84 100644 --- a/libavformat/icoenc.c +++ b/libavformat/icoenc.c @@ -25,7 +25,7 @@ */ #include "libavutil/intreadwrite.h" -#include "libavutil/pixdesc.h" +#include "libavutil/mem.h" #include "libavcodec/codec_id.h" diff --git a/libavformat/id3v2.c b/libavformat/id3v2.c index e0a7e3f3ea..3507885706 100644 --- a/libavformat/id3v2.c +++ b/libavformat/id3v2.c @@ -36,6 +36,7 @@ #include "libavutil/bprint.h" #include "libavutil/dict.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavcodec/png.h" #include "avio_internal.h" #include "demux.h" diff --git a/libavformat/iff.c b/libavformat/iff.c index 0cbe125337..7601baa629 100644 --- a/libavformat/iff.c +++ b/libavformat/iff.c @@ -34,6 +34,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/intreadwrite.h" #include "libavutil/dict.h" +#include "libavutil/mem.h" #include "libavcodec/bytestream.h" #include "avformat.h" #include "demux.h" diff --git a/libavformat/imf_cpl.c b/libavformat/imf_cpl.c index 5f1a67443f..137cff2a63 100644 --- a/libavformat/imf_cpl.c +++ b/libavformat/imf_cpl.c @@ -51,9 +51,9 @@ */ #include "imf.h" -#include "libavformat/mxf.h" #include "libavutil/bprint.h" #include "libavutil/error.h" +#include "libavutil/mem.h" #include xmlNodePtr ff_imf_xml_get_child_element_by_name(xmlNodePtr parent, const char *name_utf8) diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index 4625d720ac..32208f89cc 100644 --- a/libavformat/imfdec.c +++ b/libavformat/imfdec.c @@ -70,8 +70,8 @@ #include "libavutil/avstring.h" #include "libavutil/bprint.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" -#include "mxf.h" #include #include diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c index ff0065aff7..a40675d434 100644 --- a/libavformat/img2dec.c +++ b/libavformat/img2dec.c @@ -27,9 +27,9 @@ #include #include "libavutil/avstring.h" #include "libavutil/log.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" -#include "libavutil/parseutils.h" #include "libavutil/intreadwrite.h" #include "libavcodec/gif.h" #include "avformat.h" diff --git a/libavformat/ipfsgateway.c b/libavformat/ipfsgateway.c index 9c0d461099..9a15bcf93b 100644 --- a/libavformat/ipfsgateway.c +++ b/libavformat/ipfsgateway.c @@ -22,6 +22,7 @@ #include "libavutil/avstring.h" #include "libavutil/file_open.h" #include "libavutil/getenv_utf8.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include #include "os_support.h" diff --git a/libavformat/jvdec.c b/libavformat/jvdec.c index 41dad2392f..c4580b6a01 100644 --- a/libavformat/jvdec.c +++ b/libavformat/jvdec.c @@ -27,6 +27,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avformat.h" #include "demux.h" diff --git a/libavformat/lafdec.c b/libavformat/lafdec.c index 4ce4449c4e..7cd109a55a 100644 --- a/libavformat/lafdec.c +++ b/libavformat/lafdec.c @@ -20,6 +20,7 @@ */ #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avformat.h" #include "avio_internal.h" #include "demux.h" diff --git a/libavformat/libamqp.c b/libavformat/libamqp.c index 27851e1b28..3cc6bc0e94 100644 --- a/libavformat/libamqp.c +++ b/libavformat/libamqp.c @@ -23,9 +23,8 @@ #include #include #include "avformat.h" -#include "libavutil/avstring.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" -#include "libavutil/time.h" #include "network.h" #include "url.h" #include "urldecode.h" diff --git a/libavformat/libgme.c b/libavformat/libgme.c index 26d079c270..fbcdc28044 100644 --- a/libavformat/libgme.c +++ b/libavformat/libgme.c @@ -22,8 +22,7 @@ */ #include -#include "libavutil/avstring.h" -#include "libavutil/eval.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avformat.h" #include "demux.h" diff --git a/libavformat/libmodplug.c b/libavformat/libmodplug.c index 8c6569f778..680a5fe9bc 100644 --- a/libavformat/libmodplug.c +++ b/libavformat/libmodplug.c @@ -26,6 +26,7 @@ #include #include "libavutil/avstring.h" #include "libavutil/eval.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avformat.h" #include "demux.h" diff --git a/libavformat/libopenmpt.c b/libavformat/libopenmpt.c index c270a60cb2..736af7caf2 100644 --- a/libavformat/libopenmpt.c +++ b/libavformat/libopenmpt.c @@ -30,8 +30,8 @@ #define OPENMPT_API_VERSION_AT_LEAST(major, minor, patch) (OPENMPT_API_VERSION >= OPENMPT_API_VERSION_MAKE((major), (minor), (patch))) #endif -#include "libavutil/avstring.h" #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avformat.h" #include "demux.h" diff --git a/libavformat/libsmbclient.c b/libavformat/libsmbclient.c index f81fff2dfc..28de2daa9b 100644 --- a/libavformat/libsmbclient.c +++ b/libavformat/libsmbclient.c @@ -20,6 +20,7 @@ #include #include "libavutil/avstring.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "url.h" diff --git a/libavformat/libsrt.c b/libavformat/libsrt.c index a7aafea536..9e860abccd 100644 --- a/libavformat/libsrt.c +++ b/libavformat/libsrt.c @@ -23,6 +23,7 @@ #include +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/parseutils.h" #include "libavutil/time.h" diff --git a/libavformat/libssh.c b/libavformat/libssh.c index 127faaabd3..5c062a7245 100644 --- a/libavformat/libssh.c +++ b/libavformat/libssh.c @@ -22,6 +22,7 @@ #define LIBSSH_STATIC #include #include "libavutil/avstring.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/attributes.h" #include "libavformat/avio.h" diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index e37fcfa018..2f07e11d87 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -46,6 +46,7 @@ #include "libavutil/lzo.h" #include "libavutil/mastering_display_metadata.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "libavutil/time_internal.h" diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 0de4ec1dc0..566e9f4981 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -50,6 +50,7 @@ #include "libavutil/lfg.h" #include "libavutil/mastering_display_metadata.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/parseutils.h" #include "libavutil/pixdesc.h" diff --git a/libavformat/mlvdec.c b/libavformat/mlvdec.c index e3165e3811..1a6d38f37c 100644 --- a/libavformat/mlvdec.c +++ b/libavformat/mlvdec.c @@ -28,6 +28,7 @@ #include "libavutil/imgutils.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/rational.h" #include "avformat.h" #include "demux.h" diff --git a/libavformat/mms.c b/libavformat/mms.c index 16babc0954..95414a2fb7 100644 --- a/libavformat/mms.c +++ b/libavformat/mms.c @@ -23,6 +23,7 @@ #include "mms.h" #include "asf.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #define MMS_MAX_STREAMS 256 /**< arbitrary sanity check value */ diff --git a/libavformat/mmsh.c b/libavformat/mmsh.c index 60113d61d2..aeadb12dab 100644 --- a/libavformat/mmsh.c +++ b/libavformat/mmsh.c @@ -28,8 +28,9 @@ #include #include "libavutil/intreadwrite.h" #include "libavutil/avstring.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" -#include "internal.h" +#include "avformat.h" #include "mms.h" #include "http.h" #include "url.h" diff --git a/libavformat/mmst.c b/libavformat/mmst.c index d7f71304e5..e68606086e 100644 --- a/libavformat/mmst.c +++ b/libavformat/mmst.c @@ -30,9 +30,9 @@ #include "avformat.h" #include "mms.h" -#include "internal.h" #include "avio_internal.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavcodec/bytestream.h" #include "network.h" #include "url.h" diff --git a/libavformat/mov.c b/libavformat/mov.c index 5463f36770..1d392d2115 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -40,6 +40,7 @@ #include "libavutil/avassert.h" #include "libavutil/avstring.h" #include "libavutil/dict.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/aes.h" #include "libavutil/aes_ctr.h" diff --git a/libavformat/mov_chan.c b/libavformat/mov_chan.c index 287059d65b..e7d181d71f 100644 --- a/libavformat/mov_chan.c +++ b/libavformat/mov_chan.c @@ -27,6 +27,7 @@ #include "libavutil/avassert.h" #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "libavcodec/codec_id.h" #include "mov_chan.h" diff --git a/libavformat/movenc.c b/libavformat/movenc.c index b97c479cc4..bcb18ad387 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -42,19 +42,18 @@ #include "libavcodec/flac.h" #include "libavcodec/get_bits.h" -#include "libavcodec/bsf.h" #include "libavcodec/internal.h" #include "libavcodec/put_bits.h" #include "libavcodec/vc1_common.h" #include "libavcodec/raw.h" #include "internal.h" #include "libavutil/avstring.h" -#include "libavutil/bprint.h" #include "libavutil/channel_layout.h" #include "libavutil/csp.h" #include "libavutil/intfloat.h" #include "libavutil/mathematics.h" #include "libavutil/libm.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/dict.h" #include "libavutil/pixdesc.h" diff --git a/libavformat/movenc_ttml.c b/libavformat/movenc_ttml.c index 6deae49657..413eccfc0f 100644 --- a/libavformat/movenc_ttml.c +++ b/libavformat/movenc_ttml.c @@ -19,6 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "avformat.h" #include "avio_internal.h" #include "isom.h" diff --git a/libavformat/movenccenc.c b/libavformat/movenccenc.c index 74f3c4ccfb..ce79c0dc3b 100644 --- a/libavformat/movenccenc.c +++ b/libavformat/movenccenc.c @@ -20,6 +20,7 @@ */ #include "movenccenc.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avio_internal.h" #include "movenc.h" #include "avc.h" diff --git a/libavformat/movenchint.c b/libavformat/movenchint.c index 0169341189..1fa22fbffb 100644 --- a/libavformat/movenchint.c +++ b/libavformat/movenchint.c @@ -21,6 +21,7 @@ #include "movenc.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "mux.h" #include "rtpenc_chain.h" #include "avio_internal.h" diff --git a/libavformat/mp3enc.c b/libavformat/mp3enc.c index 4a02a45069..5695eeec9e 100644 --- a/libavformat/mp3enc.c +++ b/libavformat/mp3enc.c @@ -26,6 +26,7 @@ #include "mux.h" #include "rawenc.h" #include "libavutil/avstring.h" +#include "libavutil/mem.h" #include "libavcodec/mpegaudio.h" #include "libavcodec/mpegaudiodata.h" #include "libavcodec/mpegaudiodecheader.h" diff --git a/libavformat/mpc.c b/libavformat/mpc.c index 89130d5a7e..60cb768ab6 100644 --- a/libavformat/mpc.c +++ b/libavformat/mpc.c @@ -20,6 +20,7 @@ */ #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "avformat.h" #include "demux.h" diff --git a/libavformat/mpc8.c b/libavformat/mpc8.c index 42a34a3255..6b6db1b283 100644 --- a/libavformat/mpc8.c +++ b/libavformat/mpc8.c @@ -19,6 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "libavcodec/get_bits.h" #include "libavcodec/unary.h" #include "apetag.h" diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c index 904a79d9a7..5556861e1c 100644 --- a/libavformat/mpeg.c +++ b/libavformat/mpeg.c @@ -22,6 +22,7 @@ #include "config_components.h" #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "avformat.h" #include "avio_internal.h" #include "demux.h" diff --git a/libavformat/mpegenc.c b/libavformat/mpegenc.c index 14caf9e162..6b6763c30f 100644 --- a/libavformat/mpegenc.c +++ b/libavformat/mpegenc.c @@ -27,6 +27,7 @@ #include "libavutil/fifo.h" #include "libavutil/log.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavcodec/put_bits.h" diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index de7a3c8b45..d540126172 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -22,17 +22,15 @@ #include "config_components.h" #include "libavutil/buffer.h" -#include "libavutil/common.h" #include "libavutil/crc.h" #include "libavutil/internal.h" #include "libavutil/intreadwrite.h" #include "libavutil/log.h" #include "libavutil/dict.h" -#include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/avassert.h" #include "libavutil/dovi_meta.h" -#include "libavcodec/avcodec.h" #include "libavcodec/bytestream.h" #include "libavcodec/defs.h" #include "libavcodec/get_bits.h" diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index d8c148bd3c..99ce3416f1 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -25,6 +25,7 @@ #include "libavutil/dict.h" #include "libavutil/intreadwrite.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavcodec/ac3_parser_internal.h" diff --git a/libavformat/mpjpegdec.c b/libavformat/mpjpegdec.c index e20c61be9b..125b17585e 100644 --- a/libavformat/mpjpegdec.c +++ b/libavformat/mpjpegdec.c @@ -20,6 +20,7 @@ */ #include "libavutil/avstring.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avformat.h" diff --git a/libavformat/mtv.c b/libavformat/mtv.c index 9f52cb6c67..01379a18e7 100644 --- a/libavformat/mtv.c +++ b/libavformat/mtv.c @@ -24,8 +24,8 @@ * MTV demuxer. */ -#include "libavutil/bswap.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avformat.h" #include "demux.h" #include "internal.h" diff --git a/libavformat/mux.c b/libavformat/mux.c index 630204a8ec..011de51ddd 100644 --- a/libavformat/mux.c +++ b/libavformat/mux.c @@ -27,6 +27,7 @@ #include "libavcodec/codec_desc.h" #include "libavcodec/internal.h" #include "libavcodec/packet_internal.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/dict.h" #include "libavutil/timestamp.h" diff --git a/libavformat/mvdec.c b/libavformat/mvdec.c index 31640f7590..0718f0483a 100644 --- a/libavformat/mvdec.c +++ b/libavformat/mvdec.c @@ -28,6 +28,7 @@ #include "libavutil/eval.h" #include "libavutil/intfloat.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/rational.h" #include "avformat.h" diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index c9af462855..456c84e996 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -51,6 +51,7 @@ #include "libavutil/avstring.h" #include "libavutil/mastering_display_metadata.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavcodec/bytestream.h" #include "libavcodec/defs.h" #include "libavcodec/internal.h" diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index adc31c1cf4..f424858fc4 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -40,6 +40,7 @@ #include #include +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/random_seed.h" #include "libavutil/timecode.h" diff --git a/libavformat/mxg.c b/libavformat/mxg.c index 23d72ad23b..6a39873f21 100644 --- a/libavformat/mxg.c +++ b/libavformat/mxg.c @@ -22,6 +22,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/internal.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavcodec/mjpeg.h" #include "avformat.h" #include "demux.h" diff --git a/libavformat/nsvdec.c b/libavformat/nsvdec.c index 112c21fc8e..3b8f812aa5 100644 --- a/libavformat/nsvdec.c +++ b/libavformat/nsvdec.c @@ -23,6 +23,7 @@ #include "libavutil/attributes.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "avformat.h" #include "demux.h" #include "internal.h" diff --git a/libavformat/nut.c b/libavformat/nut.c index a0bf257c7d..9692336ece 100644 --- a/libavformat/nut.c +++ b/libavformat/nut.c @@ -20,6 +20,7 @@ */ #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/tree.h" #include "nut.h" #include "riff.h" diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c index 8c9b19eebb..0bb7f154db 100644 --- a/libavformat/nutdec.c +++ b/libavformat/nutdec.c @@ -26,6 +26,7 @@ #include "libavutil/dict.h" #include "libavutil/intreadwrite.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/tree.h" #include "libavcodec/bytestream.h" #include "avio_internal.h" diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c index 2a33f1581b..55efb114c3 100644 --- a/libavformat/nutenc.c +++ b/libavformat/nutenc.c @@ -23,6 +23,7 @@ #include "libavutil/intreadwrite.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/tree.h" #include "libavutil/dict.h" #include "libavutil/avassert.h" diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c index 6efcadd11c..8ea81e5d45 100644 --- a/libavformat/oggdec.c +++ b/libavformat/oggdec.c @@ -31,6 +31,7 @@ #include #include "libavutil/avassert.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avio_internal.h" #include "demux.h" #include "oggdec.h" diff --git a/libavformat/oggenc.c b/libavformat/oggenc.c index bdd19530ce..f5782cb583 100644 --- a/libavformat/oggenc.c +++ b/libavformat/oggenc.c @@ -25,6 +25,7 @@ #include "libavutil/crc.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/random_seed.h" #include "libavcodec/xiph.h" diff --git a/libavformat/oggparsecelt.c b/libavformat/oggparsecelt.c index e528fd1f41..626e1ab27d 100644 --- a/libavformat/oggparsecelt.c +++ b/libavformat/oggparsecelt.c @@ -22,6 +22,7 @@ #include #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avformat.h" #include "internal.h" #include "oggdec.h" diff --git a/libavformat/oggparsedirac.c b/libavformat/oggparsedirac.c index 74b9ba4f8b..c5bd43a757 100644 --- a/libavformat/oggparsedirac.c +++ b/libavformat/oggparsedirac.c @@ -20,6 +20,7 @@ #include "libavutil/imgutils.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavcodec/dirac.h" #include "avformat.h" #include "internal.h" diff --git a/libavformat/oggparseopus.c b/libavformat/oggparseopus.c index 54aa725be6..218e9df581 100644 --- a/libavformat/oggparseopus.c +++ b/libavformat/oggparseopus.c @@ -22,6 +22,7 @@ #include #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avformat.h" #include "internal.h" #include "oggdec.h" diff --git a/libavformat/oggparsespeex.c b/libavformat/oggparsespeex.c index d20d14fa41..0a4b32de15 100644 --- a/libavformat/oggparsespeex.c +++ b/libavformat/oggparsespeex.c @@ -24,6 +24,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avformat.h" #include "internal.h" diff --git a/libavformat/oggparsetheora.c b/libavformat/oggparsetheora.c index 85119352c3..6cdd962759 100644 --- a/libavformat/oggparsetheora.c +++ b/libavformat/oggparsetheora.c @@ -23,7 +23,7 @@ **/ #include -#include "libavutil/bswap.h" +#include "libavutil/mem.h" #include "libavcodec/get_bits.h" #include "avformat.h" #include "internal.h" diff --git a/libavformat/oggparsevorbis.c b/libavformat/oggparsevorbis.c index 6fd12560bc..9f50ab9ffc 100644 --- a/libavformat/oggparsevorbis.c +++ b/libavformat/oggparsevorbis.c @@ -27,6 +27,7 @@ #include "libavutil/avstring.h" #include "libavutil/base64.h" #include "libavutil/dict.h" +#include "libavutil/mem.h" #include "libavcodec/bytestream.h" #include "libavcodec/vorbis_parser.h" diff --git a/libavformat/omadec.c b/libavformat/omadec.c index 2ca3f45b4c..86d3e7202f 100644 --- a/libavformat/omadec.c +++ b/libavformat/omadec.c @@ -43,6 +43,7 @@ #include #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "avformat.h" #include "demux.h" #include "internal.h" diff --git a/libavformat/options.c b/libavformat/options.c index 34d2c6e23b..60a73d79b9 100644 --- a/libavformat/options.c +++ b/libavformat/options.c @@ -29,6 +29,7 @@ #include "libavutil/iamf.h" #include "libavutil/internal.h" #include "libavutil/intmath.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" /** diff --git a/libavformat/os_support.c b/libavformat/os_support.c index 2de6a7c3d9..4d6eb8a74c 100644 --- a/libavformat/os_support.c +++ b/libavformat/os_support.c @@ -25,6 +25,7 @@ #define _SVID_SOURCE #include "config.h" +#include "libavutil/mem.h" #include "avformat.h" #include "os_support.h" diff --git a/libavformat/os_support.h b/libavformat/os_support.h index f2ff38e23b..8479163f70 100644 --- a/libavformat/os_support.h +++ b/libavformat/os_support.h @@ -173,6 +173,7 @@ int ff_poll(struct pollfd *fds, nfds_t numfds, int timeout); #ifdef _WIN32 #include #include +#include "libavutil/mem.h" #include "libavutil/wchar_filename.h" #define DEF_FS_FUNCTION(name, wfunc, afunc) \ diff --git a/libavformat/paf.c b/libavformat/paf.c index 056cc6e786..f072f0dc25 100644 --- a/libavformat/paf.c +++ b/libavformat/paf.c @@ -20,6 +20,7 @@ */ #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "libavcodec/paf.h" #include "avformat.h" #include "demux.h" diff --git a/libavformat/pcmdec.c b/libavformat/pcmdec.c index e9c97f7959..2f6508b75a 100644 --- a/libavformat/pcmdec.c +++ b/libavformat/pcmdec.c @@ -23,6 +23,7 @@ #include "libavutil/avstring.h" #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "avformat.h" #include "demux.h" #include "internal.h" diff --git a/libavformat/pdvdec.c b/libavformat/pdvdec.c index 8ed4e20e6b..76b67dfcf2 100644 --- a/libavformat/pdvdec.c +++ b/libavformat/pdvdec.c @@ -19,6 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "avformat.h" #include "demux.h" #include "internal.h" diff --git a/libavformat/pmpdec.c b/libavformat/pmpdec.c index 06ef53d277..28aa746d36 100644 --- a/libavformat/pmpdec.c +++ b/libavformat/pmpdec.c @@ -20,6 +20,7 @@ */ #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avformat.h" #include "demux.h" #include "internal.h" diff --git a/libavformat/pp_bnk.c b/libavformat/pp_bnk.c index 34156dd717..5360b7c5d7 100644 --- a/libavformat/pp_bnk.c +++ b/libavformat/pp_bnk.c @@ -26,6 +26,7 @@ #include "libavutil/avassert.h" #include "libavutil/channel_layout.h" #include "libavutil/internal.h" +#include "libavutil/mem.h" #define PP_BNK_MAX_READ_SIZE 4096 #define PP_BNK_FILE_HEADER_SIZE 20 diff --git a/libavformat/prompeg.c b/libavformat/prompeg.c index 59faa824bb..322eb6560a 100644 --- a/libavformat/prompeg.c +++ b/libavformat/prompeg.c @@ -80,10 +80,9 @@ */ -#include "libavutil/avstring.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" -#include "libavutil/parseutils.h" #include "libavutil/random_seed.h" #include "avformat.h" #include "config.h" diff --git a/libavformat/rdt.c b/libavformat/rdt.c index 4721f01ace..60449d256a 100644 --- a/libavformat/rdt.c +++ b/libavformat/rdt.c @@ -27,6 +27,7 @@ #include "avformat.h" #include "libavutil/avstring.h" +#include "libavutil/mem.h" #include "demux.h" #include "rtpdec.h" #include "rdt.h" diff --git a/libavformat/realtextdec.c b/libavformat/realtextdec.c index ccf87e9375..31f2263341 100644 --- a/libavformat/realtextdec.c +++ b/libavformat/realtextdec.c @@ -30,7 +30,7 @@ #include "subtitles.h" #include "libavutil/avstring.h" #include "libavutil/bprint.h" -#include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" typedef struct { FFDemuxSubtitlesQueue q; diff --git a/libavformat/riffdec.c b/libavformat/riffdec.c index 0fe4e02b7b..b7a85a6ab2 100644 --- a/libavformat/riffdec.c +++ b/libavformat/riffdec.c @@ -24,6 +24,7 @@ #include "libavutil/error.h" #include "libavutil/intreadwrite.h" #include "libavutil/log.h" +#include "libavutil/mem.h" #include "avformat.h" #include "avio_internal.h" #include "demux.h" diff --git a/libavformat/rl2.c b/libavformat/rl2.c index d64c4b81d4..aa59332783 100644 --- a/libavformat/rl2.c +++ b/libavformat/rl2.c @@ -36,6 +36,7 @@ #include "libavutil/intreadwrite.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "avformat.h" #include "demux.h" #include "internal.h" diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c index 2e75aba2a6..4ccb089596 100644 --- a/libavformat/rmdec.c +++ b/libavformat/rmdec.c @@ -26,6 +26,7 @@ #include "libavutil/internal.h" #include "libavutil/intreadwrite.h" #include "libavutil/dict.h" +#include "libavutil/mem.h" #include "avformat.h" #include "avio_internal.h" #include "demux.h" diff --git a/libavformat/rtmphttp.c b/libavformat/rtmphttp.c index c920c19ab5..69dde826ae 100644 --- a/libavformat/rtmphttp.c +++ b/libavformat/rtmphttp.c @@ -25,10 +25,9 @@ */ #include "libavutil/avstring.h" -#include "libavutil/intfloat.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/time.h" -#include "internal.h" #include "http.h" #include "rtmp.h" diff --git a/libavformat/rtmppkt.c b/libavformat/rtmppkt.c index a602bf6a96..bb7e6d20bc 100644 --- a/libavformat/rtmppkt.c +++ b/libavformat/rtmppkt.c @@ -20,9 +20,8 @@ */ #include "libavcodec/bytestream.h" -#include "libavutil/avstring.h" #include "libavutil/intfloat.h" -#include "avformat.h" +#include "libavutil/mem.h" #include "rtmppkt.h" #include "flv.h" diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c index 4b01b67d28..bc3d9df7b9 100644 --- a/libavformat/rtmpproto.c +++ b/libavformat/rtmpproto.c @@ -32,6 +32,7 @@ #include "libavutil/intfloat.h" #include "libavutil/lfg.h" #include "libavutil/md5.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/random_seed.h" #include "avformat.h" diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c index fa7544cc07..729bf83685 100644 --- a/libavformat/rtpdec.c +++ b/libavformat/rtpdec.c @@ -22,6 +22,7 @@ #include "libavutil/mathematics.h" #include "libavutil/avstring.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/time.h" #include "libavcodec/bytestream.h" diff --git a/libavformat/rtpdec_asf.c b/libavformat/rtpdec_asf.c index 20ca8295f9..9664623e57 100644 --- a/libavformat/rtpdec_asf.c +++ b/libavformat/rtpdec_asf.c @@ -28,6 +28,7 @@ #include "libavutil/base64.h" #include "libavutil/avstring.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "rtpdec_formats.h" #include "rtsp.h" #include "asf.h" diff --git a/libavformat/rtpdec_h264.c b/libavformat/rtpdec_h264.c index a785120c23..72724c2909 100644 --- a/libavformat/rtpdec_h264.c +++ b/libavformat/rtpdec_h264.c @@ -37,6 +37,7 @@ #include "libavutil/base64.h" #include "libavutil/intreadwrite.h" #include "libavutil/avstring.h" +#include "libavutil/mem.h" #include "avformat.h" #include "rtpdec.h" diff --git a/libavformat/rtpdec_hevc.c b/libavformat/rtpdec_hevc.c index a739ed5bd2..0e29efc3d6 100644 --- a/libavformat/rtpdec_hevc.c +++ b/libavformat/rtpdec_hevc.c @@ -21,6 +21,7 @@ #include "libavutil/avassert.h" #include "libavutil/avstring.h" +#include "libavutil/mem.h" #include "avformat.h" #include "internal.h" diff --git a/libavformat/rtpdec_latm.c b/libavformat/rtpdec_latm.c index 329b8dbc3e..2b4478289e 100644 --- a/libavformat/rtpdec_latm.c +++ b/libavformat/rtpdec_latm.c @@ -23,6 +23,7 @@ #include "rtpdec_formats.h" #include "internal.h" #include "libavutil/avstring.h" +#include "libavutil/mem.h" #include "libavcodec/get_bits.h" struct PayloadContext { diff --git a/libavformat/rtpdec_mpa_robust.c b/libavformat/rtpdec_mpa_robust.c index c0355edec2..8709b0d4ed 100644 --- a/libavformat/rtpdec_mpa_robust.c +++ b/libavformat/rtpdec_mpa_robust.c @@ -21,6 +21,7 @@ #include "libavutil/attributes.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avio_internal.h" #include "rtpdec_formats.h" diff --git a/libavformat/rtpdec_mpeg4.c b/libavformat/rtpdec_mpeg4.c index 723b6fc6ed..6531632b2d 100644 --- a/libavformat/rtpdec_mpeg4.c +++ b/libavformat/rtpdec_mpeg4.c @@ -31,6 +31,7 @@ #include "internal.h" #include "libavutil/attributes.h" #include "libavutil/avstring.h" +#include "libavutil/mem.h" #include "libavcodec/get_bits.h" #define MAX_AAC_HBR_FRAME_SIZE 8191 diff --git a/libavformat/rtpdec_qt.c b/libavformat/rtpdec_qt.c index b71055f8b8..af00a7e767 100644 --- a/libavformat/rtpdec_qt.c +++ b/libavformat/rtpdec_qt.c @@ -25,6 +25,7 @@ * @author Ronald S. Bultje */ +#include "libavutil/mem.h" #include "avformat.h" #include "internal.h" #include "avio_internal.h" diff --git a/libavformat/rtpdec_rfc4175.c b/libavformat/rtpdec_rfc4175.c index 83abe499f8..d6260ab69e 100644 --- a/libavformat/rtpdec_rfc4175.c +++ b/libavformat/rtpdec_rfc4175.c @@ -24,6 +24,7 @@ #include "avio_internal.h" #include "rtpdec_formats.h" #include "libavutil/avstring.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "libavutil/parseutils.h" diff --git a/libavformat/rtpdec_xiph.c b/libavformat/rtpdec_xiph.c index c2db10dab8..95f4bdf3a1 100644 --- a/libavformat/rtpdec_xiph.c +++ b/libavformat/rtpdec_xiph.c @@ -31,6 +31,7 @@ #include "libavutil/avassert.h" #include "libavutil/avstring.h" #include "libavutil/base64.h" +#include "libavutil/mem.h" #include "libavcodec/bytestream.h" #include "avio_internal.h" diff --git a/libavformat/rtpenc.c b/libavformat/rtpenc.c index a8d296a154..7b4ae37d13 100644 --- a/libavformat/rtpenc.c +++ b/libavformat/rtpenc.c @@ -24,6 +24,7 @@ #include "internal.h" #include "mux.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/random_seed.h" #include "libavutil/opt.h" diff --git a/libavformat/rtpenc_mpegts.c b/libavformat/rtpenc_mpegts.c index 0d6403a048..f9ff7e99cd 100644 --- a/libavformat/rtpenc_mpegts.c +++ b/libavformat/rtpenc_mpegts.c @@ -20,6 +20,7 @@ */ #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avformat.h" #include "avio_internal.h" diff --git a/libavformat/rtpproto.c b/libavformat/rtpproto.c index cac361047a..b1cdf061f0 100644 --- a/libavformat/rtpproto.c +++ b/libavformat/rtpproto.c @@ -24,6 +24,7 @@ * RTP protocol */ +#include "libavutil/mem.h" #include "libavutil/parseutils.h" #include "libavutil/avstring.h" #include "libavutil/opt.h" @@ -34,7 +35,6 @@ #include "ip.h" #include -#include "internal.h" #include "network.h" #include "os_support.h" #include diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 9a20481f21..b0c61ee00a 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -27,6 +27,7 @@ #include "libavutil/avstring.h" #include "libavutil/intreadwrite.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/parseutils.h" #include "libavutil/random_seed.h" #include "libavutil/dict.h" diff --git a/libavformat/rtspdec.c b/libavformat/rtspdec.c index 8ca6f723e4..10078ce2fa 100644 --- a/libavformat/rtspdec.c +++ b/libavformat/rtspdec.c @@ -24,6 +24,7 @@ #include "libavutil/avstring.h" #include "libavutil/intreadwrite.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/random_seed.h" #include "libavutil/time.h" #include "avformat.h" diff --git a/libavformat/rtspenc.c b/libavformat/rtspenc.c index 3d444ccbfd..f2f4b6d525 100644 --- a/libavformat/rtspenc.c +++ b/libavformat/rtspenc.c @@ -32,6 +32,7 @@ #include "avio_internal.h" #include "libavutil/intreadwrite.h" #include "libavutil/avstring.h" +#include "libavutil/mem.h" #include "libavutil/time.h" #include "url.h" diff --git a/libavformat/sapdec.c b/libavformat/sapdec.c index 7480697f83..357c0dd514 100644 --- a/libavformat/sapdec.c +++ b/libavformat/sapdec.c @@ -23,6 +23,7 @@ #include "demux.h" #include "libavutil/avstring.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "network.h" #include "os_support.h" #include "internal.h" diff --git a/libavformat/sapenc.c b/libavformat/sapenc.c index 28839b837f..87a834a8d8 100644 --- a/libavformat/sapenc.c +++ b/libavformat/sapenc.c @@ -20,6 +20,7 @@ */ #include "avformat.h" +#include "libavutil/mem.h" #include "libavutil/parseutils.h" #include "libavutil/random_seed.h" #include "libavutil/avstring.h" diff --git a/libavformat/sauce.c b/libavformat/sauce.c index 5ac9ca9d14..150be4705b 100644 --- a/libavformat/sauce.c +++ b/libavformat/sauce.c @@ -24,8 +24,8 @@ * SAUCE header parser */ -#include "libavutil/intreadwrite.h" #include "libavutil/dict.h" +#include "libavutil/mem.h" #include "avformat.h" #include "sauce.h" diff --git a/libavformat/sbgdec.c b/libavformat/sbgdec.c index e60eb1481e..bf319be228 100644 --- a/libavformat/sbgdec.c +++ b/libavformat/sbgdec.c @@ -26,6 +26,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/intreadwrite.h" #include "libavutil/log.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/time_internal.h" #include "avformat.h" diff --git a/libavformat/scd.c b/libavformat/scd.c index 1eef834771..ee118c1668 100644 --- a/libavformat/scd.c +++ b/libavformat/scd.c @@ -21,11 +21,13 @@ * License along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "libavutil/avstring.h" + +#include + #include "libavutil/intreadwrite.h" #include "libavutil/internal.h" #include "libavutil/macros.h" -#include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "libavformat/internal.h" #include "avformat.h" #include "demux.h" diff --git a/libavformat/sdp.c b/libavformat/sdp.c index 6888936290..7e11a75918 100644 --- a/libavformat/sdp.c +++ b/libavformat/sdp.c @@ -24,6 +24,7 @@ #include "libavutil/avstring.h" #include "libavutil/base64.h" #include "libavutil/dict.h" +#include "libavutil/mem.h" #include "libavutil/parseutils.h" #include "libavutil/opt.h" #include "libavcodec/xiph.h" diff --git a/libavformat/seek.c b/libavformat/seek.c index 9ac133bf23..800ef40576 100644 --- a/libavformat/seek.c +++ b/libavformat/seek.c @@ -23,6 +23,7 @@ #include "libavutil/avassert.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/timestamp.h" #include "libavcodec/avcodec.h" diff --git a/libavformat/segafilm.c b/libavformat/segafilm.c index f86845f35e..96a50c0e3b 100644 --- a/libavformat/segafilm.c +++ b/libavformat/segafilm.c @@ -28,10 +28,10 @@ */ #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avformat.h" #include "demux.h" #include "internal.h" -#include "avio_internal.h" #define FILM_TAG MKBETAG('F', 'I', 'L', 'M') #define FDSC_TAG MKBETAG('F', 'D', 'S', 'C') diff --git a/libavformat/segment.c b/libavformat/segment.c index a38baa4f23..65323ec678 100644 --- a/libavformat/segment.c +++ b/libavformat/segment.c @@ -35,6 +35,7 @@ #include "libavutil/avassert.h" #include "libavutil/internal.h" #include "libavutil/log.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/avstring.h" #include "libavutil/parseutils.h" diff --git a/libavformat/sierravmd.c b/libavformat/sierravmd.c index 039c6436db..2103ff64db 100644 --- a/libavformat/sierravmd.c +++ b/libavformat/sierravmd.c @@ -29,6 +29,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avformat.h" #include "demux.h" #include "internal.h" diff --git a/libavformat/smacker.c b/libavformat/smacker.c index c87174476b..774aad6790 100644 --- a/libavformat/smacker.c +++ b/libavformat/smacker.c @@ -27,6 +27,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avformat.h" #include "avio_internal.h" #include "demux.h" diff --git a/libavformat/smjpegdec.c b/libavformat/smjpegdec.c index 0003dbf0f5..9f058d8eb7 100644 --- a/libavformat/smjpegdec.c +++ b/libavformat/smjpegdec.c @@ -26,10 +26,10 @@ #include +#include "libavutil/mem.h" #include "avformat.h" #include "demux.h" #include "internal.h" -#include "riff.h" #include "smjpeg.h" typedef struct SMJPEGContext { diff --git a/libavformat/smoothstreamingenc.c b/libavformat/smoothstreamingenc.c index e9c9f5d59f..9547419d31 100644 --- a/libavformat/smoothstreamingenc.c +++ b/libavformat/smoothstreamingenc.c @@ -31,6 +31,7 @@ #include "avc.h" #include "url.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/avstring.h" #include "libavutil/mathematics.h" diff --git a/libavformat/soxdec.c b/libavformat/soxdec.c index 661d6b30e5..ba349c870e 100644 --- a/libavformat/soxdec.c +++ b/libavformat/soxdec.c @@ -32,6 +32,7 @@ #include "libavutil/intreadwrite.h" #include "libavutil/intfloat.h" #include "libavutil/dict.h" +#include "libavutil/mem.h" #include "avformat.h" #include "demux.h" #include "internal.h" diff --git a/libavformat/spdifenc.c b/libavformat/spdifenc.c index f97f4d0175..ab3f73da0d 100644 --- a/libavformat/spdifenc.c +++ b/libavformat/spdifenc.c @@ -54,6 +54,7 @@ #include "libavcodec/adts_parser.h" #include "libavcodec/dca.h" #include "libavcodec/dca_syncwords.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" typedef struct IEC61937Context { diff --git a/libavformat/srtp.c b/libavformat/srtp.c index f8b686c5aa..7e5a42e327 100644 --- a/libavformat/srtp.c +++ b/libavformat/srtp.c @@ -24,6 +24,7 @@ #include "libavutil/hmac.h" #include "libavutil/intreadwrite.h" #include "libavutil/log.h" +#include "libavutil/mem.h" #include "rtp.h" #include "rtpdec.h" #include "srtp.h" diff --git a/libavformat/subtitles.c b/libavformat/subtitles.c index 3413763c7b..d7723c497f 100644 --- a/libavformat/subtitles.c +++ b/libavformat/subtitles.c @@ -22,6 +22,7 @@ #include "subtitles.h" #include "avio_internal.h" #include "libavutil/avstring.h" +#include "libavutil/mem.h" void ff_text_init_avio(void *s, FFTextReader *r, AVIOContext *pb) { diff --git a/libavformat/swfdec.c b/libavformat/swfdec.c index 6bba5fb7eb..29eefc68a2 100644 --- a/libavformat/swfdec.c +++ b/libavformat/swfdec.c @@ -31,6 +31,7 @@ #include "libavutil/imgutils.h" #include "libavutil/internal.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavcodec/get_bits.h" #include "demux.h" #include "swf.h" diff --git a/libavformat/takdec.c b/libavformat/takdec.c index 5c405ebd24..21fff3fcbf 100644 --- a/libavformat/takdec.c +++ b/libavformat/takdec.c @@ -20,6 +20,7 @@ */ #include "libavutil/crc.h" +#include "libavutil/mem.h" #define BITSTREAM_READER_LE #include "libavcodec/tak.h" diff --git a/libavformat/tcp.c b/libavformat/tcp.c index db41394a84..755e3af242 100644 --- a/libavformat/tcp.c +++ b/libavformat/tcp.c @@ -20,11 +20,11 @@ */ #include "avformat.h" #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "libavutil/parseutils.h" #include "libavutil/opt.h" #include "libavutil/time.h" -#include "internal.h" #include "network.h" #include "os_support.h" #include "url.h" diff --git a/libavformat/tee.c b/libavformat/tee.c index 9597137ec2..1cbbb80dbb 100644 --- a/libavformat/tee.c +++ b/libavformat/tee.c @@ -22,6 +22,7 @@ #include "libavutil/avutil.h" #include "libavutil/avstring.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavcodec/bsf.h" #include "internal.h" diff --git a/libavformat/tests/movenc.c b/libavformat/tests/movenc.c index 1ec9b6729b..77f73abdfa 100644 --- a/libavformat/tests/movenc.c +++ b/libavformat/tests/movenc.c @@ -23,6 +23,7 @@ #include "libavutil/intreadwrite.h" #include "libavutil/mathematics.h" #include "libavutil/md5.h" +#include "libavutil/mem.h" #include "libavformat/avformat.h" diff --git a/libavformat/tiertexseq.c b/libavformat/tiertexseq.c index 86b1023867..844b98e182 100644 --- a/libavformat/tiertexseq.c +++ b/libavformat/tiertexseq.c @@ -25,6 +25,7 @@ */ #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "avformat.h" #include "demux.h" #include "internal.h" diff --git a/libavformat/tls.c b/libavformat/tls.c index 33e8ec384f..f96ff6215d 100644 --- a/libavformat/tls.c +++ b/libavformat/tls.c @@ -20,14 +20,13 @@ */ #include "avformat.h" -#include "internal.h" #include "network.h" #include "os_support.h" #include "url.h" #include "tls.h" #include "libavutil/avstring.h" #include "libavutil/getenv_utf8.h" -#include "libavutil/opt.h" +#include "libavutil/mem.h" #include "libavutil/parseutils.h" static int set_options(TLSShared *c, const char *uri) diff --git a/libavformat/tls_mbedtls.c b/libavformat/tls_mbedtls.c index 8503523b6d..59ed4b447a 100644 --- a/libavformat/tls_mbedtls.c +++ b/libavformat/tls_mbedtls.c @@ -31,6 +31,7 @@ #include "internal.h" #include "url.h" #include "tls.h" +#include "libavutil/mem.h" #include "libavutil/parseutils.h" typedef struct TLSContext { diff --git a/libavformat/tls_openssl.c b/libavformat/tls_openssl.c index 8bf766c01f..b875be32f0 100644 --- a/libavformat/tls_openssl.c +++ b/libavformat/tls_openssl.c @@ -27,6 +27,7 @@ #include "tls.h" #include "libavutil/avstring.h" #include "libavutil/avutil.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/parseutils.h" #include "libavutil/thread.h" diff --git a/libavformat/tls_schannel.c b/libavformat/tls_schannel.c index d4959f75fa..214a47a218 100644 --- a/libavformat/tls_schannel.c +++ b/libavformat/tls_schannel.c @@ -20,6 +20,7 @@ /** Based on the CURL SChannel module */ +#include "libavutil/mem.h" #include "avformat.h" #include "internal.h" #include "network.h" diff --git a/libavformat/tls_securetransport.c b/libavformat/tls_securetransport.c index f6a1a5e7b6..a5a3bd87a1 100644 --- a/libavformat/tls_securetransport.c +++ b/libavformat/tls_securetransport.c @@ -30,6 +30,7 @@ #include "tls.h" #include "libavcodec/internal.h" #include "libavutil/avstring.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/parseutils.h" diff --git a/libavformat/ty.c b/libavformat/ty.c index 71707f750f..ac3b9071fc 100644 --- a/libavformat/ty.c +++ b/libavformat/ty.c @@ -24,6 +24,7 @@ */ #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avformat.h" #include "demux.h" #include "internal.h" diff --git a/libavformat/udp.c b/libavformat/udp.c index d9514f5026..c1ebdd1222 100644 --- a/libavformat/udp.c +++ b/libavformat/udp.c @@ -29,13 +29,13 @@ #include "avformat.h" #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "libavutil/parseutils.h" #include "libavutil/fifo.h" #include "libavutil/intreadwrite.h" #include "libavutil/opt.h" #include "libavutil/log.h" #include "libavutil/time.h" -#include "internal.h" #include "network.h" #include "os_support.h" #include "url.h" diff --git a/libavformat/usmdec.c b/libavformat/usmdec.c index 0c4e8d41be..9a21cc3041 100644 --- a/libavformat/usmdec.c +++ b/libavformat/usmdec.c @@ -20,6 +20,7 @@ */ #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavcodec/bytestream.h" #include "avformat.h" diff --git a/libavformat/utils.c b/libavformat/utils.c index c722743744..4dded7aea4 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -26,6 +26,7 @@ #include "libavutil/avstring.h" #include "libavutil/bprint.h" #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "libavutil/thread.h" #include "libavutil/time.h" diff --git a/libavformat/vapoursynth.c b/libavformat/vapoursynth.c index b5d80abf30..8a2519e19a 100644 --- a/libavformat/vapoursynth.c +++ b/libavformat/vapoursynth.c @@ -33,6 +33,7 @@ #include "libavutil/eval.h" #include "libavutil/frame.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "avformat.h" diff --git a/libavformat/vividas.c b/libavformat/vividas.c index ee4048415e..130b81ebbe 100644 --- a/libavformat/vividas.c +++ b/libavformat/vividas.c @@ -30,6 +30,7 @@ #include "libavutil/avassert.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avio_internal.h" #include "avformat.h" #include "demux.h" diff --git a/libavformat/vqf.c b/libavformat/vqf.c index 409c014a92..4820e0817c 100644 --- a/libavformat/vqf.c +++ b/libavformat/vqf.c @@ -25,7 +25,8 @@ #include "libavutil/intreadwrite.h" #include "libavutil/dict.h" #include "libavutil/mathematics.h" -#include "riff.h" +#include "libavutil/mem.h" +#include "metadata.h" typedef struct VqfContext { int frame_bit_len; diff --git a/libavformat/vvc.c b/libavformat/vvc.c index 14a4c0a2f3..3123cd8d83 100644 --- a/libavformat/vvc.c +++ b/libavformat/vvc.c @@ -24,6 +24,7 @@ #include "libavcodec/golomb.h" #include "libavcodec/vvc.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avc.h" #include "avio.h" #include "avio_internal.h" diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c index 0fed1ee639..00856a5eca 100644 --- a/libavformat/wavdec.c +++ b/libavformat/wavdec.c @@ -33,6 +33,7 @@ #include "libavutil/intreadwrite.h" #include "libavutil/log.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavcodec/internal.h" #include "avformat.h" diff --git a/libavformat/wavenc.c b/libavformat/wavenc.c index 7e853ce2fb..679eb2ce54 100644 --- a/libavformat/wavenc.c +++ b/libavformat/wavenc.c @@ -39,6 +39,7 @@ #include "libavutil/common.h" #include "libavutil/intreadwrite.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/time.h" #include "libavutil/time_internal.h" diff --git a/libavformat/wc3movie.c b/libavformat/wc3movie.c index c6b182dcbc..f4063353b6 100644 --- a/libavformat/wc3movie.c +++ b/libavformat/wc3movie.c @@ -31,6 +31,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/intreadwrite.h" #include "libavutil/dict.h" +#include "libavutil/mem.h" #include "avformat.h" #include "demux.h" #include "internal.h" diff --git a/libavformat/webm_chunk.c b/libavformat/webm_chunk.c index 494a83f507..255b8697c5 100644 --- a/libavformat/webm_chunk.c +++ b/libavformat/webm_chunk.c @@ -31,6 +31,7 @@ #include "mux.h" #include "libavutil/log.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/mathematics.h" diff --git a/libavformat/webmdashenc.c b/libavformat/webmdashenc.c index 31ea3c6e8c..3d9badc0d3 100644 --- a/libavformat/webmdashenc.c +++ b/libavformat/webmdashenc.c @@ -37,6 +37,7 @@ #include "libavutil/avstring.h" #include "libavutil/dict.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/time_internal.h" diff --git a/libavformat/wsddec.c b/libavformat/wsddec.c index f9408be5ec..b0bf49cb04 100644 --- a/libavformat/wsddec.c +++ b/libavformat/wsddec.c @@ -21,10 +21,10 @@ #include "libavutil/channel_layout.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/timecode.h" #include "avformat.h" #include "demux.h" -#include "internal.h" #include "rawdec.h" static int wsd_probe(const AVProbeData *p) diff --git a/libavformat/wtvdec.c b/libavformat/wtvdec.c index f41b0f2c68..e153034aa1 100644 --- a/libavformat/wtvdec.c +++ b/libavformat/wtvdec.c @@ -31,6 +31,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/intreadwrite.h" #include "libavutil/intfloat.h" +#include "libavutil/mem.h" #include "libavutil/time_internal.h" #include "avformat.h" #include "demux.h" diff --git a/libavformat/wtvenc.c b/libavformat/wtvenc.c index c0e5621646..02fe84573f 100644 --- a/libavformat/wtvenc.c +++ b/libavformat/wtvenc.c @@ -26,6 +26,7 @@ */ #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "avformat.h" #include "avio_internal.h" #include "internal.h" diff --git a/libavformat/xmv.c b/libavformat/xmv.c index 6a44d82016..e103b2368e 100644 --- a/libavformat/xmv.c +++ b/libavformat/xmv.c @@ -28,6 +28,7 @@ #include #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avformat.h" #include "demux.h" diff --git a/libavformat/xwma.c b/libavformat/xwma.c index 525baee6f5..b77c6ed605 100644 --- a/libavformat/xwma.c +++ b/libavformat/xwma.c @@ -22,6 +22,7 @@ #include #include +#include "libavutil/mem.h" #include "avformat.h" #include "demux.h" #include "internal.h" diff --git a/libavutil/channel_layout.c b/libavutil/channel_layout.c index 3054ee08a5..fd6718e0e7 100644 --- a/libavutil/channel_layout.c +++ b/libavutil/channel_layout.c @@ -33,6 +33,7 @@ #include "common.h" #include "error.h" #include "macros.h" +#include "mem.h" #include "opt.h" #define CHAN_IS_AMBI(x) ((x) >= AV_CHAN_AMBISONIC_BASE &&\ diff --git a/libavutil/common.h b/libavutil/common.h index 57c87f1919..3e4c339893 100644 --- a/libavutil/common.h +++ b/libavutil/common.h @@ -42,12 +42,13 @@ #include "attributes.h" #include "error.h" #include "macros.h" -#include "mem.h" #ifdef HAVE_AV_CONFIG_H # include "config.h" # include "intmath.h" # include "internal.h" +#else +# include "mem.h" #endif /* HAVE_AV_CONFIG_H */ //rounded division & shift diff --git a/libavutil/detection_bbox.c b/libavutil/detection_bbox.c index bae8f0642e..cb157b355b 100644 --- a/libavutil/detection_bbox.c +++ b/libavutil/detection_bbox.c @@ -17,6 +17,7 @@ */ #include "detection_bbox.h" +#include "mem.h" AVDetectionBBoxHeader *av_detection_bbox_alloc(uint32_t nb_bboxes, size_t *out_size) { diff --git a/libavutil/eval.c b/libavutil/eval.c index bc4a00d7d2..298925a6e5 100644 --- a/libavutil/eval.c +++ b/libavutil/eval.c @@ -32,13 +32,12 @@ #include "common.h" #include "eval.h" #include "ffmath.h" -#include "internal.h" #include "log.h" #include "mathematics.h" +#include "mem.h" #include "sfc64.h" #include "time.h" #include "avstring.h" -#include "timer.h" #include "reverse.h" typedef struct Parser { diff --git a/libavutil/executor.c b/libavutil/executor.c index 0da919f4e8..26691fe157 100644 --- a/libavutil/executor.c +++ b/libavutil/executor.c @@ -17,7 +17,9 @@ * License along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "internal.h" + +#include "config.h" + #include "mem.h" #include "thread.h" diff --git a/libavutil/film_grain_params.c b/libavutil/film_grain_params.c index 8f8dcee569..0a6004b6b3 100644 --- a/libavutil/film_grain_params.c +++ b/libavutil/film_grain_params.c @@ -17,6 +17,7 @@ */ #include "film_grain_params.h" +#include "mem.h" #include "pixdesc.h" AVFilmGrainParams *av_film_grain_params_alloc(size_t *size) diff --git a/libavutil/fixed_dsp.c b/libavutil/fixed_dsp.c index b144aa359e..95f0eb2595 100644 --- a/libavutil/fixed_dsp.c +++ b/libavutil/fixed_dsp.c @@ -47,6 +47,7 @@ #include "common.h" #include "fixed_dsp.h" +#include "mem.h" static void vector_fmul_add_c(int *dst, const int *src0, const int *src1, const int *src2, int len){ int i; diff --git a/libavutil/hwcontext_d3d11va.c b/libavutil/hwcontext_d3d11va.c index e30c8fc238..8963c9fc85 100644 --- a/libavutil/hwcontext_d3d11va.c +++ b/libavutil/hwcontext_d3d11va.c @@ -36,6 +36,7 @@ #include "hwcontext_d3d11va.h" #include "hwcontext_internal.h" #include "imgutils.h" +#include "mem.h" #include "pixdesc.h" #include "pixfmt.h" #include "thread.h" diff --git a/libavutil/hwcontext_d3d12va.c b/libavutil/hwcontext_d3d12va.c index 353807359b..cfc016315d 100644 --- a/libavutil/hwcontext_d3d12va.c +++ b/libavutil/hwcontext_d3d12va.c @@ -27,6 +27,7 @@ #include "hwcontext_d3d12va_internal.h" #include "hwcontext_d3d12va.h" #include "imgutils.h" +#include "mem.h" #include "pixdesc.h" #include "pixfmt.h" #include "thread.h" diff --git a/libavutil/hwcontext_drm.c b/libavutil/hwcontext_drm.c index 7a9fdbd263..0847db09a0 100644 --- a/libavutil/hwcontext_drm.c +++ b/libavutil/hwcontext_drm.c @@ -38,6 +38,7 @@ #include "hwcontext_drm.h" #include "hwcontext_internal.h" #include "imgutils.h" +#include "mem.h" static void drm_device_free(AVHWDeviceContext *hwdev) diff --git a/libavutil/hwcontext_dxva2.c b/libavutil/hwcontext_dxva2.c index 77f34919a8..03cb739a7f 100644 --- a/libavutil/hwcontext_dxva2.c +++ b/libavutil/hwcontext_dxva2.c @@ -31,6 +31,7 @@ #include "hwcontext_dxva2.h" #include "hwcontext_internal.h" #include "imgutils.h" +#include "mem.h" #include "pixdesc.h" #include "pixfmt.h" #include "compat/w32dlfcn.h" diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c index 6e3b96b73a..e2f92af227 100644 --- a/libavutil/hwcontext_vulkan.c +++ b/libavutil/hwcontext_vulkan.c @@ -37,9 +37,9 @@ #include "avstring.h" #include "imgutils.h" #include "hwcontext.h" -#include "avassert.h" #include "hwcontext_internal.h" #include "hwcontext_vulkan.h" +#include "mem.h" #include "vulkan.h" #include "vulkan_loader.h" diff --git a/libavutil/imgutils.c b/libavutil/imgutils.c index 1e15f7c920..16e3133c33 100644 --- a/libavutil/imgutils.c +++ b/libavutil/imgutils.c @@ -29,6 +29,7 @@ #include "intreadwrite.h" #include "log.h" #include "mathematics.h" +#include "mem.h" #include "pixdesc.h" #include "rational.h" diff --git a/libavutil/opt.c b/libavutil/opt.c index 5feb5b2cb7..5fa8870707 100644 --- a/libavutil/opt.c +++ b/libavutil/opt.c @@ -29,10 +29,10 @@ #include "avassert.h" #include "avstring.h" #include "channel_layout.h" -#include "common.h" #include "dict.h" #include "eval.h" #include "log.h" +#include "mem.h" #include "parseutils.h" #include "pixdesc.h" #include "mathematics.h" diff --git a/libavutil/pca.c b/libavutil/pca.c index 4e52c7b362..7c3eb42b14 100644 --- a/libavutil/pca.c +++ b/libavutil/pca.c @@ -25,6 +25,7 @@ */ #include "common.h" +#include "mem.h" #include "pca.h" typedef struct PCA{ diff --git a/libavutil/tests/dict.c b/libavutil/tests/dict.c index bececefb31..e45bc220cb 100644 --- a/libavutil/tests/dict.c +++ b/libavutil/tests/dict.c @@ -18,6 +18,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" + #include "libavutil/dict.c" static const AVDictionaryEntry *dict_iterate(const AVDictionary *m, diff --git a/libavutil/tests/imgutils.c b/libavutil/tests/imgutils.c index 582a358157..6a5097bc35 100644 --- a/libavutil/tests/imgutils.c +++ b/libavutil/tests/imgutils.c @@ -18,6 +18,7 @@ #include "libavutil/imgutils.c" #include "libavutil/crc.h" +#include "libavutil/mem.h" #undef printf static int check_image_fill(enum AVPixelFormat pix_fmt, int w, int h) { diff --git a/libavutil/tests/lfg.c b/libavutil/tests/lfg.c index bf127e3031..859ada73a9 100644 --- a/libavutil/tests/lfg.c +++ b/libavutil/tests/lfg.c @@ -17,6 +17,7 @@ */ #include "libavutil/log.h" +#include "libavutil/mem.h" #include "libavutil/timer.h" #include "libavutil/lfg.h" diff --git a/libavutil/tests/tea.c b/libavutil/tests/tea.c index 605bb524af..738920e994 100644 --- a/libavutil/tests/tea.c +++ b/libavutil/tests/tea.c @@ -25,6 +25,7 @@ #include #include "libavutil/common.h" +#include "libavutil/mem.h" #include "libavutil/tea.h" #define TEA_NUM_TESTS 4 diff --git a/libavutil/tests/tree.c b/libavutil/tests/tree.c index 7503228970..5cd3e70de6 100644 --- a/libavutil/tests/tree.c +++ b/libavutil/tests/tree.c @@ -23,6 +23,7 @@ #include "libavutil/common.h" #include "libavutil/lfg.h" #include "libavutil/log.h" +#include "libavutil/mem.h" static int check(AVTreeNode *t) { diff --git a/libavutil/tx.c b/libavutil/tx.c index 7a0e9effb3..0aae4c7cf7 100644 --- a/libavutil/tx.c +++ b/libavutil/tx.c @@ -19,6 +19,7 @@ #include "avassert.h" #include "intmath.h" #include "cpu.h" +#include "mem.h" #include "qsort.h" #include "bprint.h" diff --git a/libavutil/tx_template.c b/libavutil/tx_template.c index a2c27465cb..701ef0d6de 100644 --- a/libavutil/tx_template.c +++ b/libavutil/tx_template.c @@ -24,6 +24,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "mem.h" + #define TABLE_DEF(name, size) \ DECLARE_ALIGNED(32, TXSample, TX_TAB(ff_tx_tab_ ##name))[size] diff --git a/libavutil/vulkan.c b/libavutil/vulkan.c index 67b9526255..e0208c5a7c 100644 --- a/libavutil/vulkan.c +++ b/libavutil/vulkan.c @@ -19,6 +19,7 @@ */ #include "avassert.h" +#include "mem.h" #include "vulkan.h" diff --git a/libavutil/x86/tx_float_init.c b/libavutil/x86/tx_float_init.c index 84ec1122f6..36da9325e5 100644 --- a/libavutil/x86/tx_float_init.c +++ b/libavutil/x86/tx_float_init.c @@ -19,6 +19,7 @@ #define TX_FLOAT #include "libavutil/tx_priv.h" #include "libavutil/attributes.h" +#include "libavutil/mem.h" #include "libavutil/x86/cpu.h" #include "config.h" diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c index 8f4de8b1e1..015bc9d501 100644 --- a/libpostproc/postprocess.c +++ b/libpostproc/postprocess.c @@ -72,15 +72,15 @@ try to unroll inner for(x=0 ... loop to avoid these damn if(x ... checks //Changelog: use git log +#include +#include +#include + #include "config.h" -#include "libavutil/avutil.h" -#include "libavutil/avassert.h" +#include "libavutil/common.h" #include "libavutil/cpu.h" #include "libavutil/intreadwrite.h" -#include -#include -#include -#include +#include "libavutil/mem.h" //#undef HAVE_MMXEXT_INLINE //#undef HAVE_MMX_INLINE //#undef ARCH_X86 diff --git a/libswresample/audioconvert.c b/libswresample/audioconvert.c index 1d75ba1495..04108fb966 100644 --- a/libswresample/audioconvert.c +++ b/libswresample/audioconvert.c @@ -25,9 +25,9 @@ * @author Michael Niedermayer */ -#include "libavutil/avstring.h" #include "libavutil/avassert.h" #include "libavutil/libm.h" +#include "libavutil/mem.h" #include "libavutil/samplefmt.h" #include "audioconvert.h" diff --git a/libswresample/dither.c b/libswresample/dither.c index 64068d35b6..61151a26ea 100644 --- a/libswresample/dither.c +++ b/libswresample/dither.c @@ -19,6 +19,7 @@ */ #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "swresample_internal.h" #include "noise_shaping_data.c" diff --git a/libswresample/options.c b/libswresample/options.c index a3284a4896..11b2884e3c 100644 --- a/libswresample/options.c +++ b/libswresample/options.c @@ -19,6 +19,7 @@ */ #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "swresample_internal.h" diff --git a/libswresample/rematrix.c b/libswresample/rematrix.c index fb4d9aecf0..b9bf4dcac0 100644 --- a/libswresample/rematrix.c +++ b/libswresample/rematrix.c @@ -21,6 +21,7 @@ #include "swresample_internal.h" #include "libavutil/avassert.h" #include "libavutil/channel_layout.h" +#include "libavutil/mem.h" #define TEMPLATE_REMATRIX_FLT #include "rematrix_template.c" diff --git a/libswresample/resample.c b/libswresample/resample.c index 17cebad01b..2b8571bbd6 100644 --- a/libswresample/resample.c +++ b/libswresample/resample.c @@ -27,7 +27,7 @@ */ #include "libavutil/avassert.h" -#include "libavutil/cpu.h" +#include "libavutil/mem.h" #include "resample.h" /** diff --git a/libswresample/swresample.c b/libswresample/swresample.c index 71b07d69bc..0a4e216f9b 100644 --- a/libswresample/swresample.c +++ b/libswresample/swresample.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "swresample_internal.h" #include "audioconvert.h" diff --git a/libswresample/x86/rematrix_init.c b/libswresample/x86/rematrix_init.c index ce794eef90..623e154f5d 100644 --- a/libswresample/x86/rematrix_init.c +++ b/libswresample/x86/rematrix_init.c @@ -19,6 +19,7 @@ */ #include "libavutil/attributes.h" +#include "libavutil/mem.h" #include "libavutil/x86/cpu.h" #include "libswresample/swresample_internal.h" diff --git a/libswscale/gamma.c b/libswscale/gamma.c index d7470cb1c9..7c5534e1b7 100644 --- a/libswscale/gamma.c +++ b/libswscale/gamma.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "swscale_internal.h" typedef struct GammaContext diff --git a/libswscale/hscale.c b/libswscale/hscale.c index 6789ce7540..5a949732bf 100644 --- a/libswscale/hscale.c +++ b/libswscale/hscale.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "swscale_internal.h" /// Scaler instance data diff --git a/libswscale/slice.c b/libswscale/slice.c index db1c696727..1cc3f6c405 100644 --- a/libswscale/slice.c +++ b/libswscale/slice.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "swscale_internal.h" static void free_lines(SwsSlice *s) diff --git a/libswscale/swscale.c b/libswscale/swscale.c index fe0e74f871..2795429b6c 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -28,6 +28,7 @@ #include "libavutil/cpu.h" #include "libavutil/emms.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/pixdesc.h" #include "config.h" diff --git a/libswscale/utils.c b/libswscale/utils.c index cb6e91db06..d34c8d1641 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -45,6 +45,7 @@ #include "libavutil/intreadwrite.h" #include "libavutil/libm.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "libavutil/slicethread.h" diff --git a/libswscale/vscale.c b/libswscale/vscale.c index 9216112b87..5b3234198d 100644 --- a/libswscale/vscale.c +++ b/libswscale/vscale.c @@ -17,6 +17,7 @@ * License along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/mem.h" #include "swscale_internal.h" typedef struct VScalerContext diff --git a/libswscale/yuv2rgb.c b/libswscale/yuv2rgb.c index 0a84b662f9..2b2358d2cc 100644 --- a/libswscale/yuv2rgb.c +++ b/libswscale/yuv2rgb.c @@ -23,13 +23,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include -#include -#include +#include +#include #include "libavutil/bswap.h" +#include "libavutil/mem.h" #include "config.h" -#include "rgb2rgb.h" #include "swscale.h" #include "swscale_internal.h" #include "libavutil/pixdesc.h" diff --git a/tests/api/api-band-test.c b/tests/api/api-band-test.c index b00e2927a9..bbaa6edb58 100644 --- a/tests/api/api-band-test.c +++ b/tests/api/api-band-test.c @@ -25,6 +25,7 @@ */ #include "libavutil/adler32.h" +#include "libavutil/mem.h" #include "libavcodec/avcodec.h" #include "libavformat/avformat.h" #include "libavutil/imgutils.h" diff --git a/tests/api/api-flac-test.c b/tests/api/api-flac-test.c index d1e45acda7..e65e261b98 100644 --- a/tests/api/api-flac-test.c +++ b/tests/api/api-flac-test.c @@ -30,6 +30,7 @@ #include "libavcodec/avcodec.h" #include "libavutil/channel_layout.h" #include "libavutil/common.h" +#include "libavutil/mem.h" #include "libavutil/samplefmt.h" #define NUMBER_OF_AUDIO_FRAMES 200 diff --git a/tests/api/api-h264-slice-test.c b/tests/api/api-h264-slice-test.c index b7aa405b0d..f4a9c865c4 100644 --- a/tests/api/api-h264-slice-test.c +++ b/tests/api/api-h264-slice-test.c @@ -39,6 +39,7 @@ #include #include "libavcodec/avcodec.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "libavutil/hash.h" #include "libavutil/bswap.h" diff --git a/tests/api/api-h264-test.c b/tests/api/api-h264-test.c index c89f1ba41a..e1e8803c1e 100644 --- a/tests/api/api-h264-test.c +++ b/tests/api/api-h264-test.c @@ -25,6 +25,7 @@ */ #include "libavutil/adler32.h" +#include "libavutil/mem.h" #include "libavcodec/avcodec.h" #include "libavformat/avformat.h" #include "libavutil/imgutils.h" diff --git a/tests/api/api-seek-test.c b/tests/api/api-seek-test.c index e86908e285..1bf9a1bde7 100644 --- a/tests/api/api-seek-test.c +++ b/tests/api/api-seek-test.c @@ -25,6 +25,7 @@ */ #include "libavutil/adler32.h" +#include "libavutil/mem.h" #include "libavcodec/avcodec.h" #include "libavformat/avformat.h" #include "libavutil/imgutils.h" diff --git a/tests/api/api-threadmessage-test.c b/tests/api/api-threadmessage-test.c index c96b473c43..b9a4bdca16 100644 --- a/tests/api/api-threadmessage-test.c +++ b/tests/api/api-threadmessage-test.c @@ -25,6 +25,7 @@ #include "libavutil/avassert.h" #include "libavutil/avstring.h" #include "libavutil/frame.h" +#include "libavutil/mem.h" #include "libavutil/threadmessage.h" #include "libavutil/thread.h" // not public diff --git a/tests/checkasm/av_tx.c b/tests/checkasm/av_tx.c index aa8fc6b4e9..2d7b4e662d 100644 --- a/tests/checkasm/av_tx.c +++ b/tests/checkasm/av_tx.c @@ -16,6 +16,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libavutil/tx.h" #include "libavutil/error.h" diff --git a/tests/checkasm/float_dsp.c b/tests/checkasm/float_dsp.c index a025117b6b..cadfa65e2a 100644 --- a/tests/checkasm/float_dsp.c +++ b/tests/checkasm/float_dsp.c @@ -21,6 +21,7 @@ #include "libavutil/float_dsp.h" #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "checkasm.h" diff --git a/tests/checkasm/sw_scale.c b/tests/checkasm/sw_scale.c index 1305b38744..32a5d1c1ac 100644 --- a/tests/checkasm/sw_scale.c +++ b/tests/checkasm/sw_scale.c @@ -21,6 +21,7 @@ #include "libavutil/common.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #include "libswscale/swscale.h" diff --git a/tests/checkasm/vc1dsp.c b/tests/checkasm/vc1dsp.c index 570785776f..8ad2b51acf 100644 --- a/tests/checkasm/vc1dsp.c +++ b/tests/checkasm/vc1dsp.c @@ -27,6 +27,7 @@ #include "libavutil/common.h" #include "libavutil/internal.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/mem_internal.h" #define VC1DSP_TEST(func) { #func, offsetof(VC1DSPContext, func) }, diff --git a/tests/checkasm/vf_blend.c b/tests/checkasm/vf_blend.c index 484ed0b1d8..b5a96ee4bc 100644 --- a/tests/checkasm/vf_blend.c +++ b/tests/checkasm/vf_blend.c @@ -24,6 +24,7 @@ #include "libavutil/common.h" #include "libavutil/internal.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #define WIDTH 256 #define HEIGHT 256 diff --git a/tests/checkasm/vf_gblur.c b/tests/checkasm/vf_gblur.c index 3686a6c9f6..1f8b6c83b9 100644 --- a/tests/checkasm/vf_gblur.c +++ b/tests/checkasm/vf_gblur.c @@ -19,6 +19,7 @@ #include #include #include "checkasm.h" +#include "libavutil/mem.h" #include "libavfilter/vf_gblur_init.h" #define WIDTH 256 diff --git a/tests/checkasm/vf_nlmeans.c b/tests/checkasm/vf_nlmeans.c index 0f1f9fd403..e61a2efae6 100644 --- a/tests/checkasm/vf_nlmeans.c +++ b/tests/checkasm/vf_nlmeans.c @@ -21,6 +21,7 @@ #include "checkasm.h" #include "libavfilter/vf_nlmeans_init.h" #include "libavutil/avassert.h" +#include "libavutil/mem.h" #define randomize_buffer(buf, size) do { \ int i; \ diff --git a/tools/crypto_bench.c b/tools/crypto_bench.c index 0aff4ea784..45046a0a90 100644 --- a/tools/crypto_bench.c +++ b/tools/crypto_bench.c @@ -32,6 +32,7 @@ #include "libavutil/avstring.h" #include "libavutil/crc.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/timer.h" #ifndef AV_READ_TIME diff --git a/tools/enc_recon_frame_test.c b/tools/enc_recon_frame_test.c index a8e152bf44..c099beb3f4 100644 --- a/tools/enc_recon_frame_test.c +++ b/tools/enc_recon_frame_test.c @@ -32,6 +32,7 @@ #include "libavutil/error.h" #include "libavutil/frame.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavformat/avformat.h" diff --git a/tools/ismindex.c b/tools/ismindex.c index 39b5378190..6fe68d8a79 100644 --- a/tools/ismindex.c +++ b/tools/ismindex.c @@ -52,6 +52,7 @@ #include "libavformat/os_support.h" #include "libavutil/intreadwrite.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" static int usage(const char *argv0, int ret) { diff --git a/tools/probetest.c b/tools/probetest.c index e742d598b1..a8ce404792 100644 --- a/tools/probetest.c +++ b/tools/probetest.c @@ -24,6 +24,7 @@ #include "libavformat/demux.h" #include "libavcodec/put_bits.h" #include "libavutil/lfg.h" +#include "libavutil/mem.h" #include "libavutil/timer.h" #define MAX_FORMATS 1000 //this must be larger than the number of formats diff --git a/tools/sidxindex.c b/tools/sidxindex.c index 88aea6bcb9..3e43d95e02 100644 --- a/tools/sidxindex.c +++ b/tools/sidxindex.c @@ -25,6 +25,7 @@ #include "libavutil/avstring.h" #include "libavutil/intreadwrite.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" static int usage(const char *argv0, int ret) { diff --git a/tools/target_bsf_fuzzer.c b/tools/target_bsf_fuzzer.c index 76e3b89cf1..44a4d1467d 100644 --- a/tools/target_bsf_fuzzer.c +++ b/tools/target_bsf_fuzzer.c @@ -18,6 +18,7 @@ #include "config.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavcodec/avcodec.h" diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c index 8d19988999..a6e6b2f27f 100644 --- a/tools/target_dec_fuzzer.c +++ b/tools/target_dec_fuzzer.c @@ -51,6 +51,7 @@ #include "libavutil/cpu.h" #include "libavutil/imgutils.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavcodec/avcodec.h" #include "libavcodec/bytestream.h" diff --git a/tools/target_dem_fuzzer.c b/tools/target_dem_fuzzer.c index fe69eb9be0..8e96fad7f8 100644 --- a/tools/target_dem_fuzzer.c +++ b/tools/target_dem_fuzzer.c @@ -19,6 +19,7 @@ #include "config.h" #include "libavutil/avassert.h" #include "libavutil/avstring.h" +#include "libavutil/mem.h" #include "libavcodec/avcodec.h" #include "libavcodec/bytestream.h" diff --git a/tools/target_sws_fuzzer.c b/tools/target_sws_fuzzer.c index 6d9d15da25..fd8314cae1 100644 --- a/tools/target_sws_fuzzer.c +++ b/tools/target_sws_fuzzer.c @@ -24,6 +24,7 @@ #include "libavutil/cpu.h" #include "libavutil/imgutils.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavcodec/bytestream.h" diff --git a/tools/uncoded_frame.c b/tools/uncoded_frame.c index edea2367c4..447bfc8b0d 100644 --- a/tools/uncoded_frame.c +++ b/tools/uncoded_frame.c @@ -2,6 +2,7 @@ #include #include #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "libavdevice/avdevice.h" #include "libavfilter/avfilter.h" #include "libavfilter/buffersink.h" From patchwork Thu Mar 28 23:10:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 47624 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:9f96:b0:1a3:b6bb:3029 with SMTP id mm22csp1667937pzb; Thu, 28 Mar 2024 16:12:52 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCW4EDdJQ+3nJKPMpBfFbb4O9+tMX7MKZp7CyK2sVKbkTYVEpCxjKRkH1oBMmZbOF6SqGxnjkAKEJAGX/JJdzw83ff3QRpD9vpBAmg== X-Google-Smtp-Source: AGHT+IGK+IC2VclzCcitAAf80Que/JdfdrGsPoqB2WP8kOXKJ3o/uxRdtTYi0019GhfbCiwpmfHu X-Received: by 2002:a19:8c5d:0:b0:513:d0dd:95ef with SMTP id i29-20020a198c5d000000b00513d0dd95efmr431880lfj.5.1711667572047; Thu, 28 Mar 2024 16:12:52 -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 lb10-20020a170907784a00b00a4dfb42ab95si1099873ejc.362.2024.03.28.16.12.49; Thu, 28 Mar 2024 16:12:52 -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=rnz9RbBA; 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 1EDF668D787; Fri, 29 Mar 2024 01:12:04 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04olkn2090.outbound.protection.outlook.com [40.92.75.90]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2A0B268D778 for ; Fri, 29 Mar 2024 01:12:01 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZNXK40xN4Kn66o0bFWV51hUvgu/Ow0aR7+Zg+/jsu76AnFS6FHXGLTJzr2vCsCI06+vAREDTqVZ6Zg8G/opLN7Ven4GAgD9krxETKF+4TRe7hXv9/++LRioCEJq2Z0OREL99SThxxz2V3KS3sS0Hp/sgXQGvgRET8vyU4kzZWsKdOJ5DJykf8J2gEBYllGMHS6udilbUAgCVEthzuVS5+S2lp/shTNZXsEG9NsY2TJLq1okSslHdDO8OKZ6P8Jm0/dAq2FSICC/G6TXLqWcjspiT/uFG9bvi/iAF4kFszu1e7/7AkYlZ4RITJufL09xNvnlBEFYS717b/jsy4EiJ4A== 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=9hLDwfoDkTTxzlWqsvfv5ase2h+onzgvEh0j1BqGKEw=; b=IQ8SDeT0DtpRs9y3TCdqE54d1lZR52Y747JWXn31BDPJL7XO1LZYREmk1lwhsr4W6pkCqOJaeGU4hJDxPVckl/Wz2EAi4RaYoGQqOdBjTfMQ1+L03tdfl+2Y+E20NDzm6tJuMZxtlIs0KxhtEA8vtWBG0FYMTnS/sqZAStww7JHhTU4RCKmEDZltVpP+KMkpZLOMXUI153ce4C3VqHigwzZDg/EMQh2xrMJaiRmo6u6BVBZ15FqINLsdW527EcudW+EHG2HDAebAxc1BXCf65PorpxuST6RQiEobcP56eH9ByavI9eht32gRa2cRWeX7ne9E3q6Q4i1B0WlxtoY0dw== 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=9hLDwfoDkTTxzlWqsvfv5ase2h+onzgvEh0j1BqGKEw=; b=rnz9RbBAQVhsXMezFDumtXXL/GXgDZNTfDPUaLTa8mNpMyXnLCozMQHwn3y1drFLdz5cLxdk1lDLjwG36ahIxWktWkHncarTZjI2lt4DQZhyXdf+GXeuxkPxeYywbgeaPoOfnJMErdNgMiaMnVrW4oax9lHeHMZr+tnTym6wpOA/NhF4iUJ8esUDizLNdFsMUG4DcntTCXBWPOwLZrcvT147bM6nAc6tvP7F8htWoY1lqA4/P4qLfZYeg5tlQjndFSDDG6zg6mQZsnPlTHmzXTNn3tLKBpYBu5k5BEQAp5+y2Oq/gAXpYILVsiWXKH2W4xAqcHK66hlHdqM+PW3iZg== Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) by AS1P250MB0553.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:4af::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Thu, 28 Mar 2024 23:12:00 +0000 Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb]) by AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb%3]) with mapi id 15.20.7409.039; Thu, 28 Mar 2024 23:12:00 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Fri, 29 Mar 2024 00:10:42 +0100 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: X-TMN: [OpYh9+z8fIa8gHxv7fPJx1xzZ0vqfj3FYNukoOCmwFQ=] X-ClientProxiedBy: ZR0P278CA0093.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:23::8) To AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) X-Microsoft-Original-Message-ID: <20240328231047.2202386-12-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8P250MB0744:EE_|AS1P250MB0553:EE_ X-MS-Office365-Filtering-Correlation-Id: 9f2350a1-d554-4a55-681d-08dc4f7c78b4 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MSIJZppk+uA9INxRmFxiCyzv3P7pnE+0P10sAr2YcZzlbSZBvcFUxyAdJoF0m11Jyfb1GRvaPp2LuU9xL1VICHnW/eGe0OAuYf3Yyt2ndbqyYQSAZQPGRE7Iehq2ohCetlQb34AuDzelzBx3yeaTg4MPJFDf2yntiz2TB39vFwmIB1TQjeTFbV7nnbPp954Jgn589qq0KoBhGluDSymSMC1fG3m9CCEoDggO5QKp3rqvnXs1uNY6REmUoZyDJc474I+864wt8CD6SHzWyramO+qpx0PWsSQYpxWLvTc3s93PhEDAI/592w0QkDBfGhXwC2u6ghu1ySynDnk7QwoDtqxvs5jbFSdQqDmQI/MMudu/s4j6FwnhsEOlBdokzincESQIfj81ZBp8IDC8M28O+C4s5JjhjAayIeoRKwVYM2/3SUdXPq/oDhoOI1Hfd2ZkZWpBLgTp6rH4/XsVq4FV5Mjxx8R5UID8RGCrp+ILE5yPP8FjAZaEwNHU+iApbqaE6YmhoVeOxXF1+VvOIWJfBJS55R1NV68unUS9+sE8Xf2NPeOAP7swCc7kC2ODEr7nBzWTN9sHVk1wJkmk6zHqMUTYlArc/48yifvjHWUBdWC6azIjQ/ZrD94B9GzMtgr1 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: p3xAXvfkJjFryTYhTNH4IRTJs8c/Wc/j3m7+cLGGzEh3PxBL/FNOPAp5Mf9SyJYqXPg82rpPNImOHuhHUOfbqB3L9Yod/HRM2ndpxomEKO2QRifZZxJnhQ/5YlO4z9AqRY4bvLixFh3Pwk+KikFFNYdCade2pDbMb8Xy50cTyMtLUzwE46C1rqOZgQyVMNSopIkxgTfOPQiGKcyhfpVG7biaLhLblb0NuezWD9Z5XdrdtLEfNeXnsal4IHiIxb0PMD5IVUCbZ8LseFTDzvjDysZeHpbh/v5NZAHD4tSw6LhvHXSbDEADficic3asrAKMOWxDHu3Oh/tVNj5AnFJDU3rxiR9vO6SRPVAq/Bthaw89R8f9Q4/W8sSu3OkB2Y7xvXc38K1hAx9+JTewoJTrsQuNpz68mMs7ZYi1fxFbAXsFE2VS4AFBIjSMDBiEzfmRJ6b/EdYzsXujyZ6Av2cGUypAvUReS0Yn+t9GFiNViUumOXb7NdCRF69UpMWFvWGRTB+hPWzYGRxwaHJReRGvcAmpecI0pd5d/1uSvqJ5c+50fM7r6pIICYEOXTVpPkdJpZMACJiqRriTBNTDSkACUILs3OJoF9K00IIjLylqrYrGUYYUj1NSXXVVM2kNk56cDNG/GQdRPZgrh2JR5rKDyMgj1AU3IwMgDC/f+EQGy18fYfW8Aek1X7NMDTW/ayETRTBScEnUCaWXdQYd0l9iJIWLaS6rLGDtrfSREbiJp38PacHkfXOA3hSzvyXj4RbggXlXMPK8JUHJRM5b/wSX1SjItUIF5FoXv7Ulmc6ipwcqSmfwOUciNoVTrBFIeKfM3l1YYo2aFp6KCtCCbO4OpvlNKYuuddz6qyPnrrWytPVJ+wz27EUqA7uLl7iMt6PjywVfE/rITgedasx3HRHdRmsAayTflxn3BD9ggrTBPhwILiiktqSBCKxkcOI7vHFxgy4XAR5hIM8dxfDxAJG2/ukIHGpFMDA5rV2Ce4itk/YUvOxHmO8axKjjZBXBOtntnBFcJn0FC+1ibysnHDXKkgUA9fWBUyuIujbZFovHT7CEYZPcuu3UrQ7Zkd+EQ5LX2E+Y1akrWuC32NBFc6VxW8+HtvzEU8b8LV24fqcD4+eFiJR6GdxVU3ckAjJuPz+OFafyX+u5KRAGx1K3CGe5Dpqi/FWL7buni/Vdj0MxoS5JFjg9+c0AWx5MvhQvyRsF0DecDifuSnIGz2nH+K3kdtE9s1ezJVhRQOteileq3psrIcnEBPqUFOkF0CAGMldpzwwsrG+WzAW1Fb3Z7oPuRg== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9f2350a1-d554-4a55-681d-08dc4f7c78b4 X-MS-Exchange-CrossTenant-AuthSource: AS8P250MB0744.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2024 23:12:00.1554 (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: AS1P250MB0553 Subject: [FFmpeg-devel] [PATCH 13/18] avcodec/arm/mpegvideo_arm: Use static_assert to check offsets 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: Ce3hxVK40y21 Also move AV_CHECK_OFFSET to its only user, namely lavc/arm/mpegvideo_arm.c and rename it to CHECK_OFFSET. Signed-off-by: Andreas Rheinhardt --- libavcodec/arm/mpegvideo_arm.c | 20 ++++++++++++-------- libavutil/internal.h | 8 -------- 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/libavcodec/arm/mpegvideo_arm.c b/libavcodec/arm/mpegvideo_arm.c index 008ef18eea..28a3f2cdd9 100644 --- a/libavcodec/arm/mpegvideo_arm.c +++ b/libavcodec/arm/mpegvideo_arm.c @@ -18,8 +18,9 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include + #include "libavutil/attributes.h" -#include "libavutil/internal.h" #include "libavutil/arm/cpu.h" #include "libavcodec/avcodec.h" #include "libavcodec/mpegvideo.h" @@ -27,13 +28,16 @@ #include "asm-offsets.h" #if HAVE_NEON -AV_CHECK_OFFSET(MpegEncContext, y_dc_scale, Y_DC_SCALE); -AV_CHECK_OFFSET(MpegEncContext, c_dc_scale, C_DC_SCALE); -AV_CHECK_OFFSET(MpegEncContext, ac_pred, AC_PRED); -AV_CHECK_OFFSET(MpegEncContext, block_last_index, BLOCK_LAST_INDEX); -AV_CHECK_OFFSET(MpegEncContext, inter_scantable.raster_end, - INTER_SCANTAB_RASTER_END); -AV_CHECK_OFFSET(MpegEncContext, h263_aic, H263_AIC); +#define CHECK_OFFSET(s, m, o) \ + static_assert(offsetof(s, m) == o, \ + "Hardcoded ASM offset of " #s " field " #o " needs to be updated."); +CHECK_OFFSET(MpegEncContext, y_dc_scale, Y_DC_SCALE); +CHECK_OFFSET(MpegEncContext, c_dc_scale, C_DC_SCALE); +CHECK_OFFSET(MpegEncContext, ac_pred, AC_PRED); +CHECK_OFFSET(MpegEncContext, block_last_index, BLOCK_LAST_INDEX); +CHECK_OFFSET(MpegEncContext, inter_scantable.raster_end, + INTER_SCANTAB_RASTER_END); +CHECK_OFFSET(MpegEncContext, h263_aic, H263_AIC); #endif void ff_dct_unquantize_h263_inter_neon(MpegEncContext *s, int16_t *block, diff --git a/libavutil/internal.h b/libavutil/internal.h index 461c0df9ad..e0b2c74b21 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -76,14 +76,6 @@ #define FF_MEMORY_POISON 0x2a -/* Check if the hard coded offset of a struct member still matches reality. - * Induce a compilation failure if not. - */ -#define AV_CHECK_OFFSET(s, m, o) struct check_##o { \ - int x_##o[offsetof(s, m) == o? 1: -1]; \ - } - - #define FF_ALLOC_TYPED_ARRAY(p, nelem) (p = av_malloc_array(nelem, sizeof(*p))) #define FF_ALLOCZ_TYPED_ARRAY(p, nelem) (p = av_calloc(nelem, sizeof(*p))) From patchwork Thu Mar 28 23:10:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 47625 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:9f96:b0:1a3:b6bb:3029 with SMTP id mm22csp1668033pzb; Thu, 28 Mar 2024 16:13:06 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXwiB612MLtfijCRJeKbdiYgKo6QuzZywqQD9gv+4VM72ZfzITLHBGwpt/WUnX5GC0pFyqdltrG2njZop865ahmGrOx+uleCoAyEg== X-Google-Smtp-Source: AGHT+IFMgbXFV3GTIL7HWscAo61hqzsPGOJlj6X+56G/FP2F6p6KCm9U0fX7YiEi0sTOwLvIf+yJ X-Received: by 2002:a17:907:96a1:b0:a4e:1d5d:7bec with SMTP id hd33-20020a17090796a100b00a4e1d5d7becmr449205ejc.4.1711667586250; Thu, 28 Mar 2024 16:13:06 -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 kt2-20020a170906aac200b00a4751b163absi1153380ejb.157.2024.03.28.16.12.58; Thu, 28 Mar 2024 16:13:06 -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="u9jR/tRT"; 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 5D3CB68D78C; Fri, 29 Mar 2024 01:12:06 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04olkn2107.outbound.protection.outlook.com [40.92.75.107]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2302468D745 for ; Fri, 29 Mar 2024 01:12:04 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PTS9QS2ycH8A5WMrEXVCmIsv9Lc5QAfNxeDqBAcutSeWbfS/OAuVAFK8sT45ykiBX8TXFpEQyeZsc5NsLIw9K8aIA76mG5GjvXyb7IHGKLLX7lU9C8B2z2SXNRyFzgJI3Qdqscv1CfybVc3fDVEn6JAvP7ol6xICzJ3Ifx28y8/Ncxxf8mC47X/eJuyeGjeJHRKuWh0Vor0X6kCp3SHBcNfyCBnmV+GMi1rw03GcrZIaTwBe9AplM6ibQcn0WMiGe9TGcTv2lFAi3S/ZhQNHpCOKYz9Pb3HZ/Al7JmW96lscD/eoKfYqvRajruoaBFnjdug+gPyE+DCM2DuMvrp+yg== 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=zDsknShMNNnYiK9UTWD1TywoluPD7a4XkJqTFJl9o/E=; b=ZnR0dlopw8or3sWugaDCjVfNagaH036YoNdhBNBZcAwO0FbHehVlP1MGxLLZl8SZlH6ccv4ko43CfYF9QPzRsFtVAwNFBxS8CSslpz9Q2uDnZDctnY43CfxJDP4LJEuMbqJdynK82R2+hARz0iuP6hlE9e8Fjk1sCSggOsehlKRvC3oW60B8HFI/QP9r1mGb3zBV89rNOltYaSiG58LaLEpuEu7/bDAblVG+/Y61buweW6gUhaRkjuMgIqWXgnfOFpmACyvwEagitn1EDGFBGC8mL/9Yc+fhXXOyDFoWPIPEMvdp8Mo1GDxOo4PFgHl0LdDU1o+bmWSBtigJYvQPwg== 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=zDsknShMNNnYiK9UTWD1TywoluPD7a4XkJqTFJl9o/E=; b=u9jR/tRTXlsx9e9iYtlnHDv1ytQyp51t0umyCj4/0y97mZaymdbNPYXpk46CN3rbc3tE3UbWOCyfLnifs1Sn6yCI5pT0XDPgwS3fcF+IY8LHWowBey+lssVz0Jykv2Bg8bHDi9HjPpCTY7kanRYGfTdBFPsKhuOu+eVSMuV+si5o/QeEjRvHkEFJtUUQOUN8rk/Z4160xeOiw6E6c36PZ+RAt/gbyHRrNVDhaSOBu2zzX2u0FIiiRxfR72Gf6z0TG4SQuntgSQVq/nLYzo1LTrvVmmreIrHOdsu/NCaBjWjhmx6hHffwsr+tIjKMdSioCQjG/OCzZyE1ZgmjgTY9GA== Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) by AS1P250MB0553.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:4af::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Thu, 28 Mar 2024 23:12:03 +0000 Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb]) by AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb%3]) with mapi id 15.20.7409.039; Thu, 28 Mar 2024 23:12:03 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Fri, 29 Mar 2024 00:10:43 +0100 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: X-TMN: [5PClL5huIN7LisndXxUEvYnnLI4U5k6uHvrTdzl+DxA=] X-ClientProxiedBy: ZR0P278CA0093.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:23::8) To AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) X-Microsoft-Original-Message-ID: <20240328231047.2202386-13-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8P250MB0744:EE_|AS1P250MB0553:EE_ X-MS-Office365-Filtering-Correlation-Id: 0576208b-ef9b-4aeb-d133-08dc4f7c7a96 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ib2DbUBUjhv7O7/d2mmHOvIKwt9+KuXeBGugCZ1addAtUSutoeiTZK09Hx+4/cygZzbhxWFWzZAUitKiEGoFTGaKHZTv+Jpaor1ySD+MutMQ1u86CPnxpZhqAhfjMFi04M/9Uke1BuPSgW5qmU/HMUkrC8uMtnpwG1f52hyP3x8CFekROaXFPlngBAW6sDoQiOnoSrd+pg1JA0Dv7qDC6FSONqWpUvbX673mpwDu+TnpcJ3oXNiEqYmsjbWizYu+LuOOFnkPuJhuSRHAThHmPjz7Q333eEXE1CEEErQXJzxXOygnwhU8nH6nANgKkoosFaM36w1B3pOposTodwIsT7MCcMZ88CoiHdEysJ/dDi9FmsJuZrRhxDfCgv1ch+2Gc+LKlcibzl2wThfSj65nHqqQFQq31nj678UMHLDVkWUsoit1Vfo6t3cqqn36SEvYlddPH0DAsSoNLUYgRoZ0KjPbbV7nXqIkXzFBrSmlDZuUmbXxZ9YaOVgJ68ofL/U1eGMidhp6rPQr9HEozRWe7q8cj3OHgo6pfTzJhxrU9KkBWClnUY9NZLQD+r0H7CkjN3VavzSTRNkbdcYmItZGpivGg6B6J2i8Wz08tie8HWXX8V6aqw2UyHYHBgEmM5op X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: BA/wz0EPJ5zXoaf1kiPP0G4fuGsQAqaDQ4315aUoUtSCgjyqIn4JVsNz9Le2tCrdsxV46ueucjdwMc7S/qTgYpH0LiAmXRZ2hH5doDoW45venieoPsf6/EGLrsSG4K1+cBAGaAIjoSe7eLIqpTgrPwP3e1dfD79m9RkdmMTGiriDIeNYMtGdW49dIJDHDdoF3OFtCzmmWsHog+oOF20bubuXu0zUMk4w9l2LZFyCoQUnibdOnIMlAVw08kiuF2qT+DwYrRIOu0HQzwKzyUFrGXeBlxhX05bSWT4gCgCPjTBgwkSxGgFpABwV7GkydY+NyDPDl8h/VQczI69cqpGe9ZcK08JnTjNm4zueXuTusrdRrIQPbG+iQZKDDNcJIfYAO6ThSyRIMdVd2rtfv9CRrSA739JvWi9pF1Phvd81Ezk/H1E3R1r3o6TVdRaGQBzlNZ5nmK1UQE8vZVdAvZi1imVNR1RyS7w1FVrcYyfYc8gC0aphvoI2p5Bn3Kgd5yWQoaw6ljQPh+q/KDXoWKjt9a6CLk2PcDx3RAjL8VFYGN6GRsE+0r9vO8XZ7Xi4GTQkJWMdcNxMQKapAUCWCeX1jZwkWa39ZvGX0ny29E31Ko8zA4Hna+tmoknwyeRkuFMMd1wnrV5/xV+2QwKwUNPXir8C+arvtqbrEk+LaDVLc+6XtMU8R0EeHJ/lEuFUQsMcWWquer3KQIfhlkNekELQCd3vXhlvhbIW9tFtE7kKMh3iefiBR1MzevUP6NMqfe6+NcNGIx8nFISyHsSOiTo0khrBqDuxDGiCDuUS1KTwEe3+VddBO4rl2FkPC939hPxQgfyj/COdBkcXC+TmFGsUndgMgtmTuRlV8NgjfARCjO0+JBGnLDuKZeVkDbTsqEQK/UjYAgwDHU+Hw/5uEDzNn8DvJHQpg4zmVzIV+RUzUZp+5O3gQxvN33lit8JtEpSaDpSMdTmex4BxdZs3YDtQJVtAMFH02geq41eWzYlAvCDUqczaVOL/GbYm/ILEJZnF0Zvu8L4M28IoT67DggWQ8Bo7ltGKl5V78jjjvUz5ExACqBoaPhc/oO11Val5YgAactEZgEJlsXdpPFgQVwf3iY+yt80zhLxwDEX6svekZfVgouyduTMGapY3/4T77ncCeiIUcuo4mZ7ztzWIbLwn13oHP1dBnOJonQ7VVS1yc/McpVRjI960nTh9+49Bm6DWZmx1XROsGhHDocnPa07WfQFgLcmg1NNnRhTsuCCkn41QZu0+kLUD6E/LsQw6NWIReBImKMTqGkFKPCqpDhKJIw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0576208b-ef9b-4aeb-d133-08dc4f7c7a96 X-MS-Exchange-CrossTenant-AuthSource: AS8P250MB0744.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2024 23:12:03.3172 (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: AS1P250MB0553 Subject: [FFmpeg-devel] [PATCH 14/18] avutil/internal: Move libm inclusion to the beginning 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: 3grYrYHzBctC Signed-off-by: Andreas Rheinhardt --- libavutil/internal.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavutil/internal.h b/libavutil/internal.h index e0b2c74b21..5772b8a612 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -40,6 +40,7 @@ #include #include "config.h" #include "attributes.h" +#include "libm.h" #include "macros.h" #include "pixfmt.h" @@ -86,8 +87,6 @@ */ #define FF_FIELD_AT(type, off, obj) (*(type *)((char *)&(obj) + (off))) -#include "libm.h" - /** * Return NULL if CONFIG_SMALL is true, otherwise the argument * without modification. Used to disable the definition of strings. From patchwork Thu Mar 28 23:10:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 47626 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:9f96:b0:1a3:b6bb:3029 with SMTP id mm22csp1668039pzb; Thu, 28 Mar 2024 16:13:07 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX5bBEduRqkWlAG0dyYtcEcpL1J9zlgjOBAJnNNMAhUl1cr5jY1ShCqpAoVrne+pz5TCLwGRRCO04jAIZcwMvZ8eBCiW06ZY328RA== X-Google-Smtp-Source: AGHT+IGwwkdJGJGB6zoy16Ito9Bw8CuaB+/ANWXq+ZkVuAB6EJxB6mBz5AL7x9WGPAdt8nQTzWb2 X-Received: by 2002:a05:6402:40c:b0:56b:b570:4379 with SMTP id q12-20020a056402040c00b0056bb5704379mr369726edv.4.1711667586853; Thu, 28 Mar 2024 16:13:06 -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 v16-20020a056402349000b0056c5395cb15si354969edc.546.2024.03.28.16.13.06; Thu, 28 Mar 2024 16:13:06 -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="d8d/pAui"; 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 599AC68D79D; Fri, 29 Mar 2024 01:12:12 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04olkn2079.outbound.protection.outlook.com [40.92.75.79]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E9AB468D75C for ; Fri, 29 Mar 2024 01:12:05 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ATBZDJCB5aQOzSi9/V4vS85tCNiOp52NB/1kTCe4BhM2NRgPmlIbL6NNAcWa9R3DlkjdKsCm2r91IkL72GdRHndoeUgDWaqaGjnViL7Sb177QF/81yiepdEjIPoiphKLpzsU+ZWz5KQ0AN6iUtCHfsUJ/by+2Ej9m0q5pvbdB5DFWty5guNcUxxF81aXtPlh/Gq0KzRN8EbbqkCakCuXKyGaSayr4NoPrMaAjXaJxRzCmoBUhu8HvlIw0JcpVQXjquiSmyWehYuHlJa2kctLXV+XMH+zp24PA7EKow8y8Bonag8RyIDvOSKbeT/1HK4kKqVEo6TEZBxekYR8Zv8e1w== 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=7vpXeZV0Ar27VvfDLQdmiHzEKYyHUgA4hiNrbgAuzdY=; b=Lwm6xrr3uT+W99RREuBj23m9/8AXftuMZshU20r5h+c/u6QRts6eCKS0TWc+JWWiiXI/PRFBTvtc92IGAIrq4HzB2zL6UZe8JgeyM1tkjZ0Nb35jDUNmQGi07ZH3DlL9a9Rw9gn2E4SkQ5UsR0g0t/YxKC5erLxFljU5/pIK47La5V58qSLeu9fxaewrPWcJm9m/e5wNI7o087x2m1ncNVYvg4JcDbMLTEapQ0RsBjW3TDd8DHaeVRVT2whG0G/+KHkD9MFck4HJfDzs30zTzvOKjD8BGI4x+I3Z8nyJXKGI2bPFz0P1CiozFQzBhsVYJKw7VpRRK6T9nCGD0TvMNg== 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=7vpXeZV0Ar27VvfDLQdmiHzEKYyHUgA4hiNrbgAuzdY=; b=d8d/pAuiFVWrXrX1kjswyRwa6oweFg+wBoNmh/bJ8cstw6Q/EQWTQkmbByLbP01pvGU9FCgmYH5orWvkr2QPVn3dS/riN2CI2eYU6jpqp3O+T/+zJ7Huy0e1nKpV2gpqmFapjJKQiwd34XlgmK144EQA4Nz08uvPYtegyHx8QeXmIKWvBx4E4H6s48792C0igdgvEJmfX1EX3onsxn84tJZQ9GeREQ1v0WCWcQNIv0FPIxQ2Mb4tfCF5ToW4O2p8OAjPYb2jm9sqQWTyyWLiikKyWZ6O6pRVmwWaMb582jceR0gtKzj5jJ0iflbymOPO0swraPyQekIOjWDTD4Mdqg== Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) by AS1P250MB0553.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:4af::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Thu, 28 Mar 2024 23:12:04 +0000 Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb]) by AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb%3]) with mapi id 15.20.7409.039; Thu, 28 Mar 2024 23:12:04 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Fri, 29 Mar 2024 00:10:44 +0100 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: X-TMN: [rWI0/n9EZirVISW7prSJBmM9SyDDvBsWwIQS64AzvV0=] X-ClientProxiedBy: ZR0P278CA0093.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:23::8) To AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) X-Microsoft-Original-Message-ID: <20240328231047.2202386-14-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8P250MB0744:EE_|AS1P250MB0553:EE_ X-MS-Office365-Filtering-Correlation-Id: 44c350f6-02cb-4180-7436-08dc4f7c7b53 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: f1ZN2Jipef5r8znluyfOV/+A9344YSjUp3T/CPR8tH073tV+yrg571YzDPZ/SM58Vyiatd/QQqks5kaE+7EHC5g2YmEx9xkCmbSyjUJwGqP0gIgrW+o8TNFgGfQ2JOGSEwzKSFw8LcHL0C+wY9yhyqug9WFyh0BN8ElQAI3ixBzvx85NkHmZ+20DV/xj4ujApOy0H5OlEbHwXy7zhYA0ki5ranAcOeg3XWxgjEsZcwdhf9C+KZ7ldR18udTKxiIlt+z3Ct3QewaxzgqCMJyvRPCh73XAMhbjLan5KdN2n2W/vIsSdeohZL9xseMhKhqImrWMNEWZ0YjNw/cX0mP5YQWk83/qTGvF576Aq5W9I56E7OuRvydHNvVwHUmJJmKuXb5tnoNbPn+m86VtaSOO+9m3hbWi7a8eHFWarAXsfwqaJ5elOdCHSXs4EaNGXoACj0OJpGjwHGzX8q9WhHzs9ZvL7fVeITKo7uuJqPDlJ3CsyupMf6ctdYpvBAfwAsvVEuU1Ke6iAtSrIO7ZAkKUVPyl/9kafBgbDBr9rrqB6ycrTcDGHXn3aAZ/B0Lt2fFwIfaFWKXndquHSAhfMXMjnE/li2Je2WnxggahF78jzimg0ss/uWojV7rO2MNyLsm1 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 8xidyXOOWsdOMZ8F27Rx1EOQ5fba916WIT0p4WzsTV7X2NRjFdZOF5uzOJD93uTv7RbYvp7dCf/Ft8fz4e96v5/+vmymfC7zhyIfbfO/gjc73UeDLslDz6u5ehzaEDK+G0JIn70x9Y5egu1u6KmpE9RGE999JRK9iaJ0m261SkFRz2qgJNIq3lZ5wrM9ZuSI8G+ePDWGXOKbDADmXvLjw57Cob88Q6IL90cUM7Nm7WaHXJ2H7FlqJUTDx6byJwSC6+PvMX78LBWxX03p5mvmKWFmOW77ex18P+a1VZG7JsHNpYmh3IiTmTXBdjU4sQfH0RGvXEZeWh/0ByhN6heXOyOKw9lOm4/S/9FfXzp6Bjzo4A4QWWSm3pVDya/3VUv14luExMXya2I4pwSlVEmSl4pqkbwH5EUBYegs8HXDcAgHUwfW7iCKtaI9bzgye7xNK5P4A56kYbZqIQYq01XoXYf50VS2psbsduL8TqkEcfBVhuYhRw7AZOtrvxjfBD2w6XllV39Hw1WEWzRpgJ9YeevCxWJlvnzP51CZ2o1pZzX8iwT2RKDAGKkxHCTR1bzvBphwvpTkMWQLjw4y+2hskKCmHs8yl5pp1jsnrfCudaaACiFV6Qm570syg2aDqkv6FbVhsSgEYDn9JCV91znAo6Wh+sL5mqTtw+JI72qjt8hbNQ3Hr+TotiFQOqGIcre5u7s5TmZx4OwDnNT3XS5ikbyB2sUdlC3l6FUSlNneVy41qvoG1idLd0m67/1JHe1NMcysrv5XpBpXR0rlggRXugPe32vG4gx3YH+O3B+gX/6ZWCvFZqxP22DEQuq2i/2fDlRjwkW8HKtegHmqUMoLdqmSAcCDhI96C0pq4gMpo6dXZ1TNl0yjN9O+WYMtCQtYW1W5mojcEafSRmQBGi+1edmA9lJeey2KPUtBL1G37B9+Br+INi/Hu8jksQ9xCIJE9FhKIHUCWqwTkmwe/GVoctd/ejYTM3NExO1qUFz1Z3mHuKkMVkHmvz77Cg1W4tawUlONp+7qXOE7Q8xponRdCgN0lRvRf1gr9IlaFw4vqVAbIgjVajwwz/cRmig2B63SmCQtlsWjxUJWY+VePeU1QtQb+UPcJ4zgPSRyHqnndLYPhDNOcnmU+QDZSHVbPNIhLaAg8e0MyBb0wt29xQMnfQwaMjJOb/GEHj6aZiWgiXCUPF1hnx+JSeTuOOj50OCtoDsklINMW4M5dJZzWW5I0dhG7/h3ZYcwt/GW2PcYzjdqITZWeqduiDfjwKEsrH4jWqfxs66XJ6fpHfJCYdq7cw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 44c350f6-02cb-4180-7436-08dc4f7c7b53 X-MS-Exchange-CrossTenant-AuthSource: AS8P250MB0744.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2024 23:12:04.5398 (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: AS1P250MB0553 Subject: [FFmpeg-devel] [PATCH 15/18] avutil/internal: Move FF_MEMORY_POISON to its only user 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: Ia55UF0PXKTy Namely mem.c. Signed-off-by: Andreas Rheinhardt --- libavutil/internal.h | 2 -- libavutil/mem.c | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavutil/internal.h b/libavutil/internal.h index 5772b8a612..fe0b9d7a24 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -75,8 +75,6 @@ #endif -#define FF_MEMORY_POISON 0x2a - #define FF_ALLOC_TYPED_ARRAY(p, nelem) (p = av_malloc_array(nelem, sizeof(*p))) #define FF_ALLOCZ_TYPED_ARRAY(p, nelem) (p = av_calloc(nelem, sizeof(*p))) diff --git a/libavutil/mem.c b/libavutil/mem.c index 02d4cb791f..b205d3fb25 100644 --- a/libavutil/mem.c +++ b/libavutil/mem.c @@ -64,6 +64,8 @@ void free(void *ptr); #define ALIGN (HAVE_SIMD_ALIGN_64 ? 64 : (HAVE_SIMD_ALIGN_32 ? 32 : 16)) +#define FF_MEMORY_POISON 0x2a + /* NOTE: if you want to override these functions with your own * implementations (not recommended) you have to link libav* as * dynamic libraries and remove -Wl,-Bsymbolic from the linker flags. From patchwork Thu Mar 28 23:10:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 47627 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:9f96:b0:1a3:b6bb:3029 with SMTP id mm22csp1668090pzb; Thu, 28 Mar 2024 16:13:15 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVXdeexd7MDirjANjSeXWs89+zSww9qLU7isLfkPhmU7qZOYaJGZZcc1OvJFuxcE/hDyrI6spsgrC64DgKJpzxzqIQ8W4byziMcmw== X-Google-Smtp-Source: AGHT+IETsHPuvn3VQwn/heSifcM2hSMcUH8tu2IMMoP7q+Dpx+rqkE9C9vt7QwR6Yt3SSZYGTr44 X-Received: by 2002:a05:651c:4d2:b0:2d6:aff5:1e65 with SMTP id e18-20020a05651c04d200b002d6aff51e65mr446777lji.16.1711667595146; Thu, 28 Mar 2024 16:13:15 -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 s2-20020a50ab02000000b0056c2e48dab0si1165710edc.18.2024.03.28.16.13.14; Thu, 28 Mar 2024 16:13:15 -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=oJ0thc6+; 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 5A5DE68D794; Fri, 29 Mar 2024 01:12:13 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04olkn2079.outbound.protection.outlook.com [40.92.75.79]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 3241568D75C for ; Fri, 29 Mar 2024 01:12:11 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mKxD7eM0ol7k7Q7IoVQAYbJosY0C8X11WbqHSFOFN4hVMYDuFnTZPq6OC0/cgnPSAezDe9I1B6fXAaXkXn2bwEBhHVhLFZvfQREcImBMpejsr1IGDZRvVcU8aFxZciXYqlmZRdedohEkuy3vcBrSlg0cU7Gqvtlbgny5qztcBjG8Bdur/prp6HSNWsrU2n9mpM22X5nB9mA8G0TnHu3xIIe5Ii/bLQkE/xi4G9dnMvA1QDnfCGPuaww39L+PQYFU5LiXcf/JxwBkboR7UnD0ergdEALTXNje9ghU1La/0qKJVyfDBPQD2MFf4dOQmPLNSQqVvX8N4YwAS9pcArqjuQ== 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=cZ0jkNTgUj3DGq0wP3J8aBEN4RQ/PZH2uGKHMouJLe8=; b=IVWwJiBfIi+WQX6Dnn2/k1+qmdoagoPxpuzB9yOFjudrLjRNWwpbpltSUSxKGfXv43L3yGB4CEyTmSux+FEo+fHBkCDXCiCvf+lF5CbyTws6+MJFynRggmfm6ajmVmdIZw9BrHatMZ67wpQ+2tfWnWNxEESq5GgGzgKwBXbf4Nl88mr3DuN6A91LTdH//Eb58zBNUtoAVJQw08iiG3/xY6KsmXMNo47snH0v3e8jzNuV6wj2hBySLw9UMQ5qgrglbLEMYnfdyP8nq+UfI/ynoBq9quzYCmLkt42zJFuZp7M7vrO6ee3n5RNVTCxG2PH5JNUIxFMbW4hq7NEiyGa8mQ== 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=cZ0jkNTgUj3DGq0wP3J8aBEN4RQ/PZH2uGKHMouJLe8=; b=oJ0thc6+dD03AjR7fpYzCMbY/MxUv9rHBSw0hFJmHVDwLSMGg5KDsVFqByJ0WwjkaTi3kyILjU8mHt87ny5avLbIE2458aS2Uo/6mRYoV65j5bb0mDfqnysAcHHz1ZTS2a3JI5oCS7gcRa6qfIZ378FJ+XGGtDnmcyaAzb6FzIIG9UPBClJQsGc9U95/GjKZJytSPPghjb7c7BZwao7Rv9vjslohfe+n85uvsn0ZpG4xTTV2fpjBpPgwyqzrDz6A9DMezzZjbkvYEiCeCUPNNJCI+T+iwypr+5VSoDzng1pscx9ghIAMgJ0atWDERS/r79sJOYUjXvGIIj66zFtMdA== Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) by AS1P250MB0553.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:4af::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Thu, 28 Mar 2024 23:12:05 +0000 Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb]) by AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb%3]) with mapi id 15.20.7409.039; Thu, 28 Mar 2024 23:12:05 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Fri, 29 Mar 2024 00:10:45 +0100 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: X-TMN: [Brt/DnvlpyGQvt/9KrOnBOZsYCQzMp/xtiro+jNOrgg=] X-ClientProxiedBy: ZR0P278CA0093.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:23::8) To AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) X-Microsoft-Original-Message-ID: <20240328231047.2202386-15-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8P250MB0744:EE_|AS1P250MB0553:EE_ X-MS-Office365-Filtering-Correlation-Id: 5167cef5-06e3-4b49-aecc-08dc4f7c7c15 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XuA5Gg5z9GJ/h6MdC+og4t1AJ019/47itv9kGGiBe0ryywnSbbyCKjs5Q1K0P2CTfuMqG9BfpmS2QaHr1KyrYPWTja3NSkeE1FbQDPkPotZtggG1vGfWL5sBRY+TujJszFvm6bRbUT4+0nhh+w2eEcDX/6UtYajiUXudy5ouxRCeCm2CqejZeYenGn+0HQFf1i3xM2kLOB+9gJf9qXXkZPFxIxsyOZzi4TCoMdRcR54As5Ys+W09vLPVzPTRRGPWcakx3/PvvfYYvrlfCY1uOXZBz8qzHsyrqpieFN6J5imCdXRv4sFk0gm9kVb43WNBgnrHYI9YxLMm2x5Ag65Fm8h87gIwme1bMZZ7IJx/BfxCHqs2WDc8JVBL4WXlXxHaahFugl6MTnlAeKrJCMGEFjCn3hwFFu90KSfMqrqxFZrMkbT3Ql+IWmCEoHjvltlSbVtI+peV47ePZrFQUSJYlE+kYa/194dfQT9AtVdROMAltjCTYuH4C+YyEPnmij6uZR+7mezm8GE+kjuRHGbL/9RfpyE4Bzp+wnn8gzWVjLVmlWT8POxSsl0TVHZdcYf2dWK1lPuX54n3icPBqQ/k0+nKMt33Ai4eIijMV2gOlaxkkzSxwvAGhwEXoe8mFIVL X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?tVsPcN6p1wTbcK0NB7jSOt418U0k?= =?utf-8?q?NPYZp3z+b7EGBUGiJC2gU11R8uvJrmtY+9Fo+sV9NRs24q1e1SB2AkppHDqoyj3/X?= =?utf-8?q?ROpF2Z2JPVt2LUtW4AtML1Uht2qdRsmrwmdAs+Ccj6B3X1XNQydshSCsZBiPUkh/C?= =?utf-8?q?D/82Ud5S6Cer5029A2SpNhop/LNpZPiR0zUlesWTTER7v9k7KmeGSi7kNw6UgxqGi?= =?utf-8?q?HHSRAEAcnoZe2k7L7AZdWylrMCgDpmSmcmGxJ5QjM/yik4Fnt0a59C5hzkiPsEWB5?= =?utf-8?q?43UnlFUy97OWcwqImAUbkn8mLzQyckOAHAliMlY0BOa0rW5NxU/Dr+wptzkamiNA+?= =?utf-8?q?3th0c271eTkiM/gr3pOFLNMiVyGWIjlRNjM6f73JycSMEgxUJoQhLYafLpj+odJVe?= =?utf-8?q?ZRe2b6DVyP7FfXW1wTvABsoNZN7XPELvRE04vu9MbGZKQ/O6w3Mcw/slhPmpSmSRl?= =?utf-8?q?WVffz9uZuG4dfVWCLOYUT2kz2KBAReGvPsksGnnUvdwTbvPjGC1nx8P3L0IpGiH+U?= =?utf-8?q?1XXxntUIqUKDubI8H7YBeeXzJMNxFIWUFwzQcLwhS/zR0KTsunQWwf4CUXyMitvnc?= =?utf-8?q?EB+phkMulbbxt0fUItcJRpHr4ciRfZ17DUyvp+aKS31zNJPUBUFj/Fkk4/xjI9xCA?= =?utf-8?q?3irc3PNLYSdfj9LbViVxSeDeS/Yuiq9asf4La24OzyymxCi2kNlQx+eBtiSXBgvpV?= =?utf-8?q?VipsEjC21KmIvedmCcOa+fVB5u1B5k9vjH1uMVoprnyKsNZesb2VFBOMNBk1dJxoU?= =?utf-8?q?o86JwXbiEVVdrYbB6a8+aPSxoZz256ltaaYsOLxTogzxWsWH23T07BL7SWzddUlda?= =?utf-8?q?AgT4IMEcjNw0fRWXHLH3AII8ubJ0ZS4Um35Njps5fGby6dokATnEPeEbvssjCY5My?= =?utf-8?q?n45Z3Egh9sr0Dvj1axmXH/g7vq9L2IchzEDO28LaY+mhvECoXtr/RVqM2WCqpqcKc?= =?utf-8?q?8WYtF7QFnwALHA7Wquu2OgqUGnchjzcHxMfgTUWn1FCEcC9n2tXWirb5z2+bGSaXi?= =?utf-8?q?z2C4+j37zkewOHMGUx2wxRdVL244R6blcnpZCnYSIvXuaCoxaki5nqrDlFVoXbPBg?= =?utf-8?q?AIQGjNuVI0yqMXGfecciMXqY4UaIZh9t9V6yJrJu7oqPBF9JRBtwjWrFdRiLTKKlt?= =?utf-8?q?X9uaLPQre1OPR8y6yAr2BUweitBOUyzTAWLkQaJjPGaB/J9GoFMsxjzzpcJ3EJYkS?= =?utf-8?q?IcoBJdvMsijYP7Y12aABgGsHfpTeaYNGhuzwyvw=3D=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5167cef5-06e3-4b49-aecc-08dc4f7c7c15 X-MS-Exchange-CrossTenant-AuthSource: AS8P250MB0744.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2024 23:12:05.8256 (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: AS1P250MB0553 Subject: [FFmpeg-devel] [PATCH 16/18] avutil/hwcontext_vulkan: Include hwcontext.h 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: odcGqaga+54Z struct Foo * declares a new type (namely struct Foo) if there is no declaration of struct Foo already visible in the current scope; otherwise it is just a pointer to an element of the already declared type "struct Foo". There is a gotcha with the first case: struct Foo is only declared in its scope; a later declaration of struct Foo in an enclosing scope declares a different type. This happens in hwcontext_vulkan.h if it is included before hwcontext.h, because some declarations of struct AVHWDeviceContext and struct AVHWFramesContext have function prototype scope. Compilers warn about this (during checkheaders): ‘struct AVHWDeviceContext’ declared inside parameter list will not be visible outside of this definition or declaration Fix this by including hwcontext.h. Signed-off-by: Andreas Rheinhardt --- libavutil/hwcontext_vulkan.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libavutil/hwcontext_vulkan.h b/libavutil/hwcontext_vulkan.h index 895794c867..cbbd2390c1 100644 --- a/libavutil/hwcontext_vulkan.h +++ b/libavutil/hwcontext_vulkan.h @@ -26,6 +26,7 @@ #include "pixfmt.h" #include "frame.h" +#include "hwcontext.h" typedef struct AVVkFrame AVVkFrame; From patchwork Thu Mar 28 23:10:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 47612 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:9f96:b0:1a3:b6bb:3029 with SMTP id mm22csp1668146pzb; Thu, 28 Mar 2024 16:13:23 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXTcM3cePBIK0xMyNPf2Bi4DBc4RlXGy37UTtPnjCo4kqzycQRm0AOqu7kJyPeEz7vCXilX9TxxB6sEhcy8djZmh7Sb3UXEnpoOFg== X-Google-Smtp-Source: AGHT+IF16wBdYOuWJIilQzQJlIBxRiFrCv3r3XPz7M3e9kxUlwTj4oL4N6iarXQkoV2MpanXJlmr X-Received: by 2002:a19:6408:0:b0:513:ec32:aa89 with SMTP id y8-20020a196408000000b00513ec32aa89mr540161lfb.2.1711667603601; Thu, 28 Mar 2024 16:13:23 -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 lj26-20020a170906f9da00b00a4e2a64a3b5si539047ejb.1047.2024.03.28.16.13.23; Thu, 28 Mar 2024 16:13:23 -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=dx0qFJv4; 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 B746968D7A3; Fri, 29 Mar 2024 01:12:14 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04olkn2079.outbound.protection.outlook.com [40.92.75.79]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4A9EB68D789 for ; Fri, 29 Mar 2024 01:12:11 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lr15atlR3Fp0aejx2P1F7Hk9wWTfPY0564/MYeL0dsW8ZmH6mqRyx5+lIgNDpsYYSDzR/QPvO02Z2NgpHecW7fdpGnVoeNtADO8wggE77oG34Oh2YZsHizHNFl5wIF1dzP3C1DbWwQyEIFYZhB+jtYECwkP2UK+aWKKjEycalcSSsvFi0/qrothL6H/SHe6CyShmh4x5ph7YCyfkNLsZsLWXln1MnCWsNQ4ZXD0cVDsMY4HxoP4lwDECRF9p+r2/cUzc8t54KXnZ53mhpIne7zFxt3RDYLAVk1x+nn0L2jMtA5M6L0UrpKkK70olRQNIl9sQWlIiwEoWmq15YB8Xpw== 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=A+NDOmLHWl+AgGwZxHf5Kjgf0C13S5f713Jw7h6dyuo=; b=hs9WNJHHWFLwsIKhqXhnr1aSYiy13/kgWqeqCSscyayR54obhz+bBlHBnJxvcf0blBcZbZLsfuuJmWFY+wuXLhw6TNmAVnSIJjCL8vxkHDxAIrnKkdR29/3HMaLq5t2AMXnnak2rEl0rGIRPVhtU9B732yZPVY5FsVFPi1YNvFWw6CeDtpJA49cGuoAkx/zgzUtxjJF6psCnH6ketP5Cr8ol1NPvLzU7NLKiy5QTfqyFU2Dm2reZYhbGJfBmbtGkvn2isUPBXWc+wrxw5FkjkeGnyNBMANa895u00ZOBzb92FVw2XX/5/QtPsrrHy06gA05BqPma5lZU+FpuuB+RXg== 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=A+NDOmLHWl+AgGwZxHf5Kjgf0C13S5f713Jw7h6dyuo=; b=dx0qFJv41z/wYu7tElEGNZbMqTVjIh/NJSttfTVODStvcIHbrjhXDHDEEMnDLNOpHtRUVgYNaoXZyj1urSatAYAJQ3Vy2gpaUDvv1QcPAIEco5URBcjbXCt4EMOykkAFE/sWp6XZcARhhYaRNxfXyN0Zpbo9DjZxZpz9JCXz8mACT3dlwUH4xdG3VT0Odgoret3fJuWThYa49LIqdfMp5WlpLGBv00GhtiuuBfxQc9vlDS2wWhmK15yPqn2fwn6TTibsT3x4uz92vwM2p8BdaTKZ0TAvDau+rXrQh72ic8INw3LVuygOEI28y+xLUQyRb9GudcX+mzdSYm88MJ5XEQ== Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) by AS1P250MB0553.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:4af::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Thu, 28 Mar 2024 23:12:07 +0000 Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb]) by AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb%3]) with mapi id 15.20.7409.039; Thu, 28 Mar 2024 23:12:07 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Fri, 29 Mar 2024 00:10:46 +0100 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: X-TMN: [qcs4Z8fQhduSTLqsGPHV6jsXhwogpaQtak1cohE9zx0=] X-ClientProxiedBy: ZR0P278CA0093.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:23::8) To AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) X-Microsoft-Original-Message-ID: <20240328231047.2202386-16-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8P250MB0744:EE_|AS1P250MB0553:EE_ X-MS-Office365-Filtering-Correlation-Id: 2ac44747-0819-456b-a057-08dc4f7c7cd7 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5TquVrFcFYm8Wfb/B8DpRZxRgEcqcbIYE9K3zg7JaFFrxl1iXAy5YnNZcXysuxwyF+LaDUOJWiUuptKaUQZ8aTxaeVP4S7UdluTMp+ed23zzJ5tx3wh01BkDuSe7+uLn9jXGsHtGWuMnwQrYt6l7f7/Z9w5cXk3GazEi2GlpayQfkskwooSXgY0Ib/TE0uUg/o6suOLO6u7VGaxv4zD6xzEe269IhObH4SGgi3Exo/xpZ5xbBlF9H9DY0A+kj46urY/In3aRyFr+YLQKbpDDLvb4XTEpDAf7c0VWEp1aOIQWhF/veVJ4/LgSNq4s7oUgMF+20gJPp3/oVahfxarQHiCbudAYaJjikG/oQvqEgHCwxpT1Kr4fmLry1nRFsx+zp7KsMHbVTIa2kXrmaQJKJmunVZe0FVJhPqv6UflfHaBFFsroqJap0QmRkv2qExRpiac5DtzYzQeJSeDMaW5ySsuW83YPA2CG+ynzj2uR1UvnlCFOel9w42tAhkWL5uquh5RGQABb4ccCQm69VR7hi06w2lajqjtGt2Pb5jFTRVD5wA/lNcrs6wpC5We+x8WZTr3dlAPBFvN7jT1EvPEnd9Otuqd3LJ/ueYsgw4RdhGV1T0mfqIlwyDIBErA368bucp/MxBafW4FJIs4wRSEDk77/siOO4V61AN4vh55mHtmQxqh3zW39+I6NMORAJuI7 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 7EtRUsnOFxxfmxEPgnxvVls0JPJ2zPk0vPsizX9P1NBWb/dn3HUErR4F/IVNu8cWPZ3GS56dqFAIFZbMptqXT/z4+xE211OhA9EN7DWGSNnJp4CmUaxlUi39pMAfLl48IL+1dyfJ5MLnWCywh7V1Is55uK/fQrrrTl078qAgoARFBwZRz7ZrdoIlhOJsBgWEHyfWZ7xx2xo404F3Ft98eDpAvrth1hGH5nHTboWooxoYsqyVcfBhC46Gv+KNh/kWV0im7aDYZR+kX6sl0fybJRmqsyMqP15Jb9o8OQDIk62C49+i/pMcvMikBAIz5VWZH2ZWqf6G1eYOKqF5noTwAE/LvZGXvNwvnFiUmKupJQDPs6ZKTD6dXwHs3XVtz+cHufuVzTt6P5YGy3q5gABt0EG+bLXNjnNKn6I+uYQNJZlYrsDZxwBhaXKg9Wa1EjDa7SsLr8uaZw56hapXZ+sOshQuq0X418z/ONeJvuP3YFTAZXU2MY8ctoHMr2YM4dpwR7+8Z7aGXT6tnqbXv1GalzeeaFPA/J1HQkDOViR9d0sKarfKpDs3tL/B9yDh+MkfkdJFt8wcohCCL5BCMbGmvTEDm10bhMueKyVk10D5UiGzVw1H/FMJa3iVQV2xwMYP7p2X+yDVApHcKsAkYCwt6X3JLYeLhAaLiG3VeBVeA3+Y789yX+0Bd3NzPs7ybYR84Fmjwo3Q6G1aRNYc9Cs3Nb/P2p/KuNsh30F83hM9iMavUfNjrSqBVEebXDutZQ4kyiiZgLtk0t2RitGvv8PK8xQYb8i1q96iJz0mJbucIoSdzrVndCj5++rYfjxVd5G0kDiIS5uawKIJEosyuL1N4koiB5EQWSP6m9ixQx+h4yVpZt9Tkh+AWqxaprVKkanOseeSMa2IJnCjSluis/rJRQcPdEozTEWBaKsLKMH8SbT51YZwUyjvOZKVpaGJNSGdH6tarMh08qRnO4eUoTv/UsQzG0jnxXKdM1RPz2ELsS/m+Q7P5He1IC4vTfojRrleWwdxCC08m78D1WRZIB/HFlPqOtRIGsJQ/Qhc8mAarGPScCDYAI+IJSojYubSOOJndkbDQxHTzL3/+4N7S2QJ3BIOioZrt6yvCG6uphWy+8PRlFFXFmOZYqe8AfF/H+Qny13xcd1LS1OTB6thC8+8CABOhgmc3PUrkCgutxHCilPuU89hcNPtl+RDH6pgTqkAS8WQsyZfPPfJKm0p4wooKbZ8wTTzJHxAssccueoeDM/PhfZd3CwZRozEeqTojZbq1O4fJEFLpFcKDawNFZa6aA== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2ac44747-0819-456b-a057-08dc4f7c7cd7 X-MS-Exchange-CrossTenant-AuthSource: AS8P250MB0744.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2024 23:12:07.0494 (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: AS1P250MB0553 Subject: [FFmpeg-devel] [PATCH 17/18] avutil/internal: Move avpriv_set_systematic_pal2 decl to imgutils_internal.h 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: hUxHcU5F8bJg Signed-off-by: Andreas Rheinhardt --- libavcodec/bmpenc.c | 2 +- libavcodec/gif.c | 1 + libavcodec/pcxenc.c | 2 +- libavcodec/xwdenc.c | 1 + libavfilter/framepool.c | 1 + libavfilter/vf_scale.c | 1 + libavformat/av1.c | 1 + libavutil/imgutils.c | 1 - libavutil/imgutils_internal.h | 4 ++++ libavutil/internal.h | 3 --- 10 files changed, 11 insertions(+), 6 deletions(-) diff --git a/libavcodec/bmpenc.c b/libavcodec/bmpenc.c index 3e3ca324ea..48f25170ba 100644 --- a/libavcodec/bmpenc.c +++ b/libavcodec/bmpenc.c @@ -22,8 +22,8 @@ #include "config.h" -#include "libavutil/imgutils.h" #include "libavutil/avassert.h" +#include "libavutil/imgutils_internal.h" #include "avcodec.h" #include "bytestream.h" #include "bmp.h" diff --git a/libavcodec/gif.c b/libavcodec/gif.c index 56042d36a7..c36fa66737 100644 --- a/libavcodec/gif.c +++ b/libavcodec/gif.c @@ -30,6 +30,7 @@ * @see http://www.w3.org/Graphics/GIF/spec-gif89a.txt */ +#include "libavutil/imgutils_internal.h" #include "libavutil/mem.h" #include "libavutil/opt.h" #include "avcodec.h" diff --git a/libavcodec/pcxenc.c b/libavcodec/pcxenc.c index cf9b41b752..b763c7df47 100644 --- a/libavcodec/pcxenc.c +++ b/libavcodec/pcxenc.c @@ -26,9 +26,9 @@ * @see http://bespin.org/~qz/pc-gpe/pcx.txt */ +#include "libavutil/imgutils_internal.h" #include "avcodec.h" #include "bytestream.h" -#include "libavutil/imgutils.h" #include "codec_internal.h" #include "encode.h" diff --git a/libavcodec/xwdenc.c b/libavcodec/xwdenc.c index 08554d8632..40bee20109 100644 --- a/libavcodec/xwdenc.c +++ b/libavcodec/xwdenc.c @@ -20,6 +20,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/imgutils_internal.h" #include "libavutil/pixdesc.h" #include "avcodec.h" #include "bytestream.h" diff --git a/libavfilter/framepool.c b/libavfilter/framepool.c index 841caa0460..e8621e07ac 100644 --- a/libavfilter/framepool.c +++ b/libavfilter/framepool.c @@ -24,6 +24,7 @@ #include "libavutil/buffer.h" #include "libavutil/frame.h" #include "libavutil/imgutils.h" +#include "libavutil/imgutils_internal.h" #include "libavutil/mem.h" #include "libavutil/pixfmt.h" diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c index 00fcb31b1c..fc0e3802db 100644 --- a/libavfilter/vf_scale.c +++ b/libavfilter/vf_scale.c @@ -33,6 +33,7 @@ #include "scale_eval.h" #include "video.h" #include "libavutil/eval.h" +#include "libavutil/imgutils_internal.h" #include "libavutil/internal.h" #include "libavutil/mem.h" #include "libavutil/opt.h" diff --git a/libavformat/av1.c b/libavformat/av1.c index cb86e66d09..35c23dd0b0 100644 --- a/libavformat/av1.c +++ b/libavformat/av1.c @@ -21,6 +21,7 @@ #include "libavutil/avassert.h" #include "libavutil/mem.h" +#include "libavutil/pixfmt.h" #include "libavcodec/av1.h" #include "libavcodec/av1_parse.h" #include "libavcodec/defs.h" diff --git a/libavutil/imgutils.c b/libavutil/imgutils.c index 16e3133c33..d246381563 100644 --- a/libavutil/imgutils.c +++ b/libavutil/imgutils.c @@ -25,7 +25,6 @@ #include "common.h" #include "imgutils.h" #include "imgutils_internal.h" -#include "internal.h" #include "intreadwrite.h" #include "log.h" #include "mathematics.h" diff --git a/libavutil/imgutils_internal.h b/libavutil/imgutils_internal.h index d515858413..3e47731a50 100644 --- a/libavutil/imgutils_internal.h +++ b/libavutil/imgutils_internal.h @@ -22,6 +22,10 @@ #include #include +#include "pixfmt.h" + +int avpriv_set_systematic_pal2(uint32_t pal[256], enum AVPixelFormat pix_fmt); + int ff_image_copy_plane_uc_from_x86(uint8_t *dst, ptrdiff_t dst_linesize, const uint8_t *src, ptrdiff_t src_linesize, ptrdiff_t bytewidth, int height); diff --git a/libavutil/internal.h b/libavutil/internal.h index fe0b9d7a24..ac1af367e9 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -42,7 +42,6 @@ #include "attributes.h" #include "libm.h" #include "macros.h" -#include "pixfmt.h" #ifndef attribute_align_arg #if ARCH_X86_32 && AV_GCC_VERSION_AT_LEAST(4,2) @@ -152,8 +151,6 @@ void avpriv_request_sample(void *avc, #define SUINT32 uint32_t #endif -int avpriv_set_systematic_pal2(uint32_t pal[256], enum AVPixelFormat pix_fmt); - static av_always_inline av_const int avpriv_mirror(int x, int w) { if (!w) From patchwork Thu Mar 28 23:10:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 47628 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:9f96:b0:1a3:b6bb:3029 with SMTP id mm22csp1668199pzb; Thu, 28 Mar 2024 16:13:33 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXRfXIWNfGuZMCxS8BF0MdKNU1pyUWR/G1U0+B3DgXZBCwlJS6YiavtsMCBkOyF7YKJb9BPCWrhhHfCWNpD8aUMZpJFkQfmAO+cFQ== X-Google-Smtp-Source: AGHT+IHzjUKwtLPYfyKq7D6CIZ+ViXH5/D3NBUaYPP7w0l++aRsPi3sewvGn93ddTFx/pYCmHLAh X-Received: by 2002:a50:d694:0:b0:56c:292f:84da with SMTP id r20-20020a50d694000000b0056c292f84damr3552395edi.17.1711667613399; Thu, 28 Mar 2024 16:13:33 -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 w9-20020a05640234c900b0056ba005a4bdsi1242476edc.288.2024.03.28.16.13.33; Thu, 28 Mar 2024 16:13:33 -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=Qk9rnXmd; 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 0716368D7AA; Fri, 29 Mar 2024 01:12:16 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04olkn2079.outbound.protection.outlook.com [40.92.75.79]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 62D4768D75C for ; Fri, 29 Mar 2024 01:12:11 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PPhK9KBCK2eCqKApSSyAidotegysJZM4rAjHgIVQvEiSlJkx4DGUj5MFrVL7bb5zk+XCdALGWhguFE6cTeyFpI5r9W2UtoFWN3lLh0Km0lGk+rl4NICQzj26P5J2KA4Rg4VvSaSKyR3u1d4Zot5nPyMBU+C54qZQORLdE4uCF31/cq5MjO+/3mGXH0z6bY9McD5EQ1iXYV7yllWIZ8ebio5aOrfoClBDecYDM6Ly4hG6C3ZhErdqTSlteBe8DeAP0V97pPHZKvML1cviI56Qt6EYOK2yoMZsbl9DUO+UxaLq1QJre0lrHwhBHHpsfwhT1L+/3c8IfutTo+ucq9efjA== 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=0tXzYEki0OwG7SZpQfI//nfupGZYUylXgOpGAiGyCaY=; b=L980XyZqb1/+kOntziyRYrpKxOIPTvF+z755+ftGzizjR6JVDJigEO5uKwqFXNTPs/MAgsL9mQpbgVFPwLrWkXTnWodEOxD/bHxbbsb/UzuXm5r/vpxS2W0+p5N+fFqvTnZ+3VbKBg4L55Y3HZZEDTMEexd+gxLphWdikecJLpnIleJyRJPTIIrIGi+lrlBSkjexgHq6rWX4T6Z8Ut4CuXcaXF7s+vZYNEY3G90Z06DlVEcEzTxuJD7IzFgaSXAVzoaUG1CwdrrmXoolcZJZPV5AvFCPcJyR7//VM5/k9uGWKvyUyHTaTYo/VHl5gXWNP/4+in9N9+2SA/3QMrrhJQ== 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=0tXzYEki0OwG7SZpQfI//nfupGZYUylXgOpGAiGyCaY=; b=Qk9rnXmdbHKtV1w2WL0t+RNlAFwVqnIsWzUlYI/t3J8woIS7XwuqHO/00SBHcR+Spjua/tpfjhFaz7TFAWmeud3fXPJNLSukN9JZV+8JIsuCosAdTWaTU2N9OwA8gGiZXlI0gCyXR4nA0oBP8S4PTCA7rQBonDLKOpV8IXqQ0YThL0Pij/+q/+wkMyT4VwSqOcudZCbTZsZowtYEY7kx2bi9mtGVByOCpl8ZFlcxusIUhHSDslvGJDv/V/MiHCt8eYUKr6W+ameCpdnAGtnUn19g++wLWC9UWm4PIJlXhi89iFzQjZSu5LmhnosKPlyiNgV6nEzvlRtjGe1dLISk3Q== Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) by AS1P250MB0553.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:4af::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Thu, 28 Mar 2024 23:12:08 +0000 Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb]) by AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb%3]) with mapi id 15.20.7409.039; Thu, 28 Mar 2024 23:12:08 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Fri, 29 Mar 2024 00:10:47 +0100 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: X-TMN: [3TLFdGBFlysxkaiRsl+vset2HB29ln99hQs7GPj6akc=] X-ClientProxiedBy: ZR0P278CA0093.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:23::8) To AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) X-Microsoft-Original-Message-ID: <20240328231047.2202386-17-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8P250MB0744:EE_|AS1P250MB0553:EE_ X-MS-Office365-Filtering-Correlation-Id: c19967d6-b84b-4c61-caa2-08dc4f7c7d85 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZNhA39mTYtYYiGjuRadbSTroL/Kcmd5ePoJhbf6eooEvTyaSyOIOe+TL3vOkbLqfv1cEpdyejyulhp3G5RF/sENSZelL7V682Iz7bUGTJ0sR06vpNCsXcwJv/zDJ6mMkm/2FD+x64nU2QjsjjL14JNsenR8zfw26oHplCZQmxVzcPVxKeMOFuHHNx4cO7SMShaTRwm8cgTI1U/ts3KM98l24YSiBJE9u7cTS7mSRk4p8PRbpQM5bVsLwc3quohQj9iQrsla0Qex0dISbylFVEvkyANoCoqZqacEg3G0APDsaOkY1l9ljWlNnZUSjcxUyvTT8t8BmG/EsWMHwJMYJ2XkUjgD+d1vv0t8gOcJXMKsSQuYDPQzyhsK+yHAIN1s2xrmLD1YuVo14rCHgftsK+lfYYrQbz52yndy0od+/bSNaLMkcTWIivRGEckHplhJwP4EqJFPqXONYyXSZKa5rFduWOJJayFu9fpHmzHdu4UYz9wAcPrza1kAeXB0RrcsLa4WtOTqIS8AfBZx261ChWxb6wLU1TV5uAjaTyrqoiDbbMCLDNdqg6VesNzUBaaqB8FGaAjVKOcyNOn5BItcoklQxrE1STFNEK5Wal8wEqbbYO+vzK9DITVYzwuIC/5Nz X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: VKOsLvY9PBMQ0T7v9QdSQgAj7zKrUBEVkV3kpWfpsnOfzuI8tv1vbUiwiLCpWUts3BrZyTPRXxHcHDeuC0JuX1y4MUfncasMoadiekmtMQonZWJolYP6awm1FLyELPlKyQ62Z7bd+hPPk4CFxufWzYXdYJZ1pOKp71tLfjsv4tiRTBZ3lO5U2mQDqvccsyIB+snYDMybBsdZ42MEkTmdaZoYrQKAKsOrmdHB4iQ20oTAAM4ZafmIdbgUQrk/qHf3pd24fFRe5HUWiuM9HXaovGQtBRTNghxL+ug5hntuWN6wBSaKEW/97kxzVQL6UNmifQb6OZ+WA9AEnNEcVZa7A1pZrZSr5Sy2f6/TdYMtyxItW/xmsbT8mTPAANZu5I9dJLaqfSfUHS3car5qVH1KhJEmYpOnSplso0ouOYN9frr8TqisrN9NYzIiZaX0/c6Tzyq81btSFe5osJDbhj1XeVJlwtrWlOmKR2LCIcx76UYAHMR3ME/rwh/Nvi14TNS4KjMmaqyiLCtf7upWpVxL8oECm8Da1ceHlN2u159MM9a6iWr3NXgigPYbuHnfS0xifUZxLQ76k8tx0xAUBHZSuLsCmwz5jfNRPBEI2E5PHDDOg00cnn1L1FV+3mqDfVWYyz9t29p/robG1zrSjhYgElzBMPR25gigV8bbCcipblidXyDUixgxe38oYqvJ9d/QhXwGkc6mj6wocrVCazwWd0Js4Dfuu2qxbJagoixr+PL/ClzO349+Q0X5HfmS42cPJ69mSm6MljoyKrKUlObYqVfo280Oc8bRcwb4MoC03QJQdK8POlg2DJKMGCMumYO+NZ+bH3Ha3m6ASeK1r9eOYz4TBbdRmzr6ZDhtuNZEBHhDrJxYgBSpK/UsyD3cr4ZPGFfAbK0E5vCDWo020SIUGKj1UQU5uNy6OQUuhN9n17O+OgrEQTTPcgqeO8QvLDqDEwbO5Atepa25E5WKPpRRyFz6NWR699fiaVj/F9DFQM70ntg9E+0mrj1XNjd/WqOHazcgg65eaTFVYBJ88PTW+xwfweNGreaDIdvIaH8xVjwYDkXHuf0zYHPH1GorXtZI9YT8YJ55mJU+rbUQyZxumRXgM7YHqIIzFyYHerbs6V1YWXWgroJtFzGkIQ4bXBqMTRvYtPf/EFPofs6anN5FarkAFK4edRr7gWH/YLnMhHv1nSdEKBuul70i4cVYILuUmCwXxFsp+G6c+K0UQ4YTqNer91306D4hBp7SS+QusUEvBQf1ilGCroOdLAomeqwhYsMaPp6jDHt9Evu1kDPrLw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c19967d6-b84b-4c61-caa2-08dc4f7c7d85 X-MS-Exchange-CrossTenant-AuthSource: AS8P250MB0744.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2024 23:12:08.2323 (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: AS1P250MB0553 Subject: [FFmpeg-devel] [PATCH 18/18] avcodec/arm/vp8: Don't discard const 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: V0MshT6MxerT Forgotten in 25e1986e6816fabf7f6065d090994f8ad050e540. Signed-off-by: Andreas Rheinhardt --- libavcodec/arm/vp8.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/arm/vp8.h b/libavcodec/arm/vp8.h index 7c59a7d63d..6f128ffebe 100644 --- a/libavcodec/arm/vp8.h +++ b/libavcodec/arm/vp8.h @@ -29,7 +29,8 @@ #define vp8_decode_block_coeffs_internal ff_decode_block_coeffs_armv6 int ff_decode_block_coeffs_armv6(VPXRangeCoder *rc, int16_t block[16], uint8_t probs[8][3][NUM_DCT_TOKENS-1], - int i, uint8_t *token_prob, int16_t qmul[2]); + int i, const uint8_t *token_prob, + const int16_t qmul[2]); #endif #endif /* AVCODEC_ARM_VP8_H */