From patchwork Mon Mar 25 01:51:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 47408 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:c889:b0:1a3:b6bb:3029 with SMTP id hb9csp930072pzb; Sun, 24 Mar 2024 18:51:47 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWKtzb36ebxo61NbzP04ZJCAe5MunRZygqQI90U47V32VSL8XitDE1vpl/NLOlHWT7Pvj/rjx/0BCopaETqcQt8lRSVinAEehN1Nw== X-Google-Smtp-Source: AGHT+IE9R5HU0PSK0ujiYMRFLRYplhHDy2mEEhSVF165LDK9Xzzi7Fl5gMHbZRzDXHPChrLhbhSz X-Received: by 2002:a17:906:3b47:b0:a46:5a46:7512 with SMTP id h7-20020a1709063b4700b00a465a467512mr3818351ejf.74.1711331507432; Sun, 24 Mar 2024 18:51:47 -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 by8-20020a170906a2c800b00a469be3a99bsi2049354ejb.178.2024.03.24.18.51.46; Sun, 24 Mar 2024 18:51:47 -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=iPmzocPo; 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 15EAA68D33F; Mon, 25 Mar 2024 03:51:43 +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-vi1eur04olkn2091.outbound.protection.outlook.com [40.92.75.91]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9208C68D35C for ; Mon, 25 Mar 2024 03:51:36 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UPZWAh178fU/2bVKWSfjwrPFVixGBFKT9//LSRQV2AaI/FHaCpKLUSSnmX9P7kDWpJfglPfPcggEcm+9SeeNgxGU34KYLAtBBqbJv/mmdNLR6WkHyptGfXZmkPTZHet/9rmmE4LpyrO9QNIznecjeZNbzfutCdd2H16BvgtVJw3MJDwS3+VGGlKV8ZdpWigE1L/adfQXbP53ElD1ESO39oHB+Y/++qL5MDbxkmx8XuppvDs1UdZR+ESmQfYH32VTAK/KWjv8XT5n+vnIWNX0I7hhwCKWviBhaFn5t+v5TxR44gRe/agRILHpQ48FCJic/dd0d6xXsSbEdaJGrcM7XQ== 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=aMSuXVpDmzgkmP7x5MW8HGO74d+5HyYgbanKgNJjAr8=; b=ZtdoIIrBvYmBvk1AJdBzIr8W1TehDRlewy/IIXP7g3yTPvpizYRvI4FqKIM/btqjhKVRi47RLXiTsn1DoczZiAyZDohoeLV2G/o6ZSgRcaCeRV38OCfmguQHncw8UkOGJep2NHZPdlssDQDJxJcbHXL/DCJLzvN0O++kYgtdBQOqA23hEH5g0WzGiWA5UPs0IDTRVsx++AvSl0nH3bsYNCvz8fz05qqARyNBdVJX6GmSzheFDC8Wi5DBqJ21D28owtSSKG23UAq4NebmwWVbMPTRhCasD5WUzGPS2uZQnALy8strFtAwvi2H6FlFPqR8uqtBZJcx+0RrDdQt6FVM7Q== 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=aMSuXVpDmzgkmP7x5MW8HGO74d+5HyYgbanKgNJjAr8=; b=iPmzocPojXCBogXrudI33HDDw89cjGnsPJ+TkOK9hOug+BemTuGgQE3UZ/gWqf8JNv/fML9+pFtYf5o6p4PEzEz2tDjFesAny1MAfmbDCjfBr0UMuQ6JbkTWPxDGjb2CtQu51ESWI2StpkSAPLGd9sxtieWhvIA7mN2PVHzL3DTU+NRzsaXK5GQ8idrPfYwxs3FIZ9iIoI9GTtdHdh8Xz7nPbw5FYl0G3IfdxI/UpHvwt6Kb+NmP0DLrj3tHm0fgZiW788Gum9fLsGd4nUZ/VkkdFGVpvwQWSv0ro3IktZCSrkI+MTPDSk966YksuiugzLf5lrRdi1cm+M2SHvS3Hw== Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) by AS8P250MB0118.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:371::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Mon, 25 Mar 2024 01:51:33 +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; Mon, 25 Mar 2024 01:51:33 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Mon, 25 Mar 2024 02:51:16 +0100 Message-ID: X-Mailer: git-send-email 2.40.1 X-TMN: [82q8hjKNx2477D0Rj6YYRJR/6NuDCbL+gdFbxzAYd10=] X-ClientProxiedBy: ZR2P278CA0088.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:65::19) To GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) X-Microsoft-Original-Message-ID: <20240325015125.2348679-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1P250MB0737:EE_|AS8P250MB0118:EE_ X-MS-Office365-Filtering-Correlation-Id: a94213bd-e7b5-4e9a-884f-08dc4c6e18f1 X-MS-Exchange-SLBlob-MailProps: 9IecXKUgicBMjzDtAlr46x5HKEJiZ0Rbs1UUuVUt58VDSrEBeMZjFrPNoTqu6jzRcbX3tP8x4wnmBYIVb/NtY6rjYoPDN5yJsa4K0GMCJnb+ojIfPZ+Tv9RajyuIwyOjix5L9V3v4XLaGDj1AmRbeRDuoyO+6F9K0l4pNDX338Vr12pZHdja5+rAh5x9+gvCfNJ2nOVRoXYUyZYjUhQdV8K0aEXUkky3Pz4dsNYRHyr3NbcHmo7IukXigK3BjdulZ9ket46tmhV8GMd4CIw6awZu5fqBhE2oeQ4Z3LsOsnJlJ9HEtAPCUBySHGRsMIz8Z/ydlYRS/u6fqSUq5CgNTDodV8Rf1PdP0QPuyXSYoxpf4+p2+tYCWfCisx0l/EoMzFVOpnlYCU56niqkZ141D/JfeGmsN0tjBW7m5Zd6fUkfuZL3W9udxbZIG9ur9a2TOC/Sua1nX0E5PXrL9PChGCp0y9IrvXEGphKLwcCxUtHKQ9uDF2fY3QY2TltRwyT0Ww3jkwc85WXAd4XpOjNAnFIJCmmFOPi27E6CH65dzr79V9rCDQfjefvAsY8vAvKhSA6gHlNXMxikcXSTim8NZMJSNt21rMjImeOA9ISgD8uK2beFoaNs2mng8JVkpMdL/yqOpKkK4g7hScYctkgy3C0tHCvlbMSVJCYZu4I9Il5kIJANqBPzDXVm5CjyjCoBSR6VeXHPrVd/6GiPLNIa1VqFAa7liJqDD5Ml61bVHXTrHJ/7Y1rmVg== X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aT9Bbxsc0PefebxgZPJDbNEJz1u3S4gQ7S7Jbv0oSk//ghXB/LNjFPASnqishJZD2Nt1znVJfEBKgbMUPcwTRv8PtNWcob5n1M5Z43GcdFyQaMWoyhifGt2uHXFhDSzahjwCtSzCE4EHTfz9Crs4HDA+JeMZJ9p5QYF+/2e/mcH6L3qH9vtJw2Ally3HI9Fj/Zl3wmBHeDXdM8gKwaBE68UdUILi45jb0U4rRePX/KPRhVPweozUsgmyJU9IxlYRDW9fy9ztCuegF2ursguuQy+GKjn6uxXzILqz/MGmcDqYFbCUJAJTxHJPsqvAw2WQomEynEPEBrM5iN4URJFv0Jygyky4igpNkSuGOxhmkqiSd/qQLTV/y4EbtQYTz6RMgB/j+P7/MMFplouqeftIPvTBQ3kPFxcN8TLgyh+XRgO0v5uy4cJIl9HLVbK1tcJvdG5kmvnjgBYOs5e0FXwYwB1WIRskuBacH0ZYbURF4pfucv55qoet2wEwkWNhx+PbfqsiXG84lwr/tZIU53uHDJ6gCEdFoEIq6udhXbzExzRVIRDeZVX9eM3DkqsTUAGZAbsgJ8PITZ1KJOBtH8aoi3F3rpGuQWPsVpSq0NFJNiULC4OwshaDXZWl0ygNjkT/ X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: OGYkn7Ie2192jsXjsNefm+MO0BMImcqezrTiKi1RPYRf3DXpzhmAjFhjOmNUSK/m9QZwoo6mOyc5QdAlF6pPYu+RztDFFy6b6EhYY7KsY9TXfZx99zuSezaGYmisqcpneJB105bLrnyqYz+RCZMLYbHsNeEwEKQULEwZISYL4VCpAR8ZtQ1M4n3YGpRqpXIjGv05PWe/nTL8P2UOr/vsJxUT1dGVRzKnWyhap9W5XDIOXBA0aemwVgNrhVa7xvmzV340ym2lrzEVlB84z1p7m8eRHrJgogc6nrdtAvx/vimFOr3R2I8DlFCBHElxaR9gDK3B7CKQa2earnNDTZkiPDbZa5VyoeBNok83V8mEBsMzcjeOSuZP9v8Hb35JY2jkrDzrDMGtrbfk0e712XMICmNAK87ugsjvT8KVUrbd9zPoZzfCJQWpQnlQev57f0s/37z8k5zKcyAcohevX2fyOFdcQ9Sq/uiW+hVT019Es3BFeXhV4TpmqLbmzFLx69ubMkdzT/3IK9j0udf9a2tZBd7bEU0/j1pfruqyxHA6VcjoyDoLJdQBCt45EEGhco5pKhoIS3nlHG4ZpvVOYLAsRZen4L5yJW0bepmyW84ZboZLKJaqZeymV1fwRzp87HcdHNmlXDorY7PtFG0zgidMFGPnQEEBBjLvVI16C9ALq4rErKfvPA/tFmZLB6prdqxKkc/Y84OdgK9boSS9he3zqJ32/6ef5fT1JyqVjBL3Pjc+xFhY0yyQn0mw2sByXk8w8IKHuw7dMQMk5Ee2A960LiBXkxT7GRF6rUoBT66NbU8fyniBKMerHMRxiCBeeBqpI4QbE+McuPtjWlw6UBl1D3HWKmeSJGxlX6SWTEWUpFy1ikV9vdVZqVm4CYBLFia6QwkxAqLYr2+rNbzwqKZlhoKIao7PumweAGP5ypaOT91dp2lPTl268CORxCKA6mQixpju2gsOylTHQ2MegbR7Bq/L/NBYvhMiXUoj6rjMfRWNpezbpgdBW+QgIVMCVuimuQt5jxUBWOj6HWBKgddY3GG+u44V6K19q1i/3n6LGgFJnzPrCXYYFAfXhKct8x0eCekdxAlRbx3MHagiqWSmI+oPmaHVuLGKO+IEggUwkjXEPM6JDQvQtQqQM9jRcfTYjQYXBLJS4Qn58RTWZwcQpKfB+B2xq8pVpcnwY9Tzqu1B9cipur1EUaOcHnQYC1e2fmWVzJD7VZOgwGMW12wWxdMXHrsSFOR0hBUp5q3UXwVov5/ZNyb7PX/N9APU8/Dme/3AJ2Il2iBffcCm9WGArg== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a94213bd-e7b5-4e9a-884f-08dc4c6e18f1 X-MS-Exchange-CrossTenant-AuthSource: GV1P250MB0737.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Mar 2024 01:51:33.0576 (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: AS8P250MB0118 Subject: [FFmpeg-devel] [PATCH 01/10] doc/examples: Always use <> 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: OvzY+Uvtfg9b Signed-off-by: Andreas Rheinhardt --- doc/examples/filter_audio.c | 18 +++++++++--------- doc/examples/qsv_decode.c | 16 ++++++++-------- doc/examples/transcode_aac.c | 20 ++++++++++---------- 3 files changed, 27 insertions(+), 27 deletions(-) diff --git a/doc/examples/filter_audio.c b/doc/examples/filter_audio.c index 9e4039b900..8b237e2adf 100644 --- a/doc/examples/filter_audio.c +++ b/doc/examples/filter_audio.c @@ -41,15 +41,15 @@ #include #include -#include "libavutil/channel_layout.h" -#include "libavutil/md5.h" -#include "libavutil/mem.h" -#include "libavutil/opt.h" -#include "libavutil/samplefmt.h" - -#include "libavfilter/avfilter.h" -#include "libavfilter/buffersink.h" -#include "libavfilter/buffersrc.h" +#include +#include +#include +#include +#include + +#include +#include +#include #define INPUT_SAMPLERATE 48000 #define INPUT_FORMAT AV_SAMPLE_FMT_FLTP diff --git a/doc/examples/qsv_decode.c b/doc/examples/qsv_decode.c index 901eac3b27..5a6f3625aa 100644 --- a/doc/examples/qsv_decode.c +++ b/doc/examples/qsv_decode.c @@ -30,16 +30,16 @@ #include -#include "libavformat/avformat.h" -#include "libavformat/avio.h" +#include +#include -#include "libavcodec/avcodec.h" +#include -#include "libavutil/buffer.h" -#include "libavutil/error.h" -#include "libavutil/hwcontext.h" -#include "libavutil/hwcontext_qsv.h" -#include "libavutil/mem.h" +#include +#include +#include +#include +#include static int get_format(AVCodecContext *avctx, const enum AVPixelFormat *pix_fmts) { diff --git a/doc/examples/transcode_aac.c b/doc/examples/transcode_aac.c index cf6edc9890..84caf612ac 100644 --- a/doc/examples/transcode_aac.c +++ b/doc/examples/transcode_aac.c @@ -29,19 +29,19 @@ #include -#include "libavformat/avformat.h" -#include "libavformat/avio.h" +#include +#include -#include "libavcodec/avcodec.h" +#include -#include "libavutil/audio_fifo.h" -#include "libavutil/avassert.h" -#include "libavutil/avstring.h" -#include "libavutil/channel_layout.h" -#include "libavutil/frame.h" -#include "libavutil/opt.h" +#include +#include +#include +#include +#include +#include -#include "libswresample/swresample.h" +#include /* The output bit rate in bit/s */ #define OUTPUT_BIT_RATE 96000 From patchwork Mon Mar 25 01:53:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 47409 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:c889:b0:1a3:b6bb:3029 with SMTP id hb9csp930494pzb; Sun, 24 Mar 2024 18:53:44 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXOvP95S3FNn+tVTOLRXQIWv9sk4KXHew0D139LlrdGV0HQ+S9ebz0p0/uDSB/Bk6Ph8SpxG20PYA5ORsWttEP5bsP92voX4W6HpQ== X-Google-Smtp-Source: AGHT+IG3q4TbAZNxhsrg8DrJTb17Zt7AfAmAyeVWBdHH5h9RfzK0JOLKkkrP7yOtfSLrAb8ccFVr X-Received: by 2002:a17:907:7da5:b0:a47:52fe:ef5 with SMTP id oz37-20020a1709077da500b00a4752fe0ef5mr1718926ejc.0.1711331624404; Sun, 24 Mar 2024 18:53:44 -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 p25-20020a170906141900b00a45aefc7a74si2053972ejc.580.2024.03.24.18.53.44; Sun, 24 Mar 2024 18:53:44 -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=jrQwnERA; 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 4EB9968D3C8; Mon, 25 Mar 2024 03:53:41 +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-vi1eur04olkn2109.outbound.protection.outlook.com [40.92.75.109]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id BBE4468D221 for ; Mon, 25 Mar 2024 03:53:33 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ecO3Q3FcztxBLVo2RAMuoWXSX1QR0Xpmfrng0ROWUjY2ybWsGPLsVCEnN7HuK4fWCoV15bckX5q+iHdWc+Kj4LBBclsZ8xNsPcypGhRnBw7TeDzTj0Id1TbHiwGw1A6ljfXf6QoPvLwpetcKigBFTq33NLLOAvtxGjRjYkchr6jAx3R6aM9hqRhJt+Txifqo4BKKpazh+wnlb+5kKtT0cOwBBe4q/KkhV8+Y47LcZwMT4CUVO3NmjgOSqtnlLdP8wkqA9bJSo1g5PsLFnCGW9BP2tWpVCtcBI0IX1lFtLjyyC5A3d6+ZyvZfbw28xmvgbppyde8ui+8XWRSYDgjiJQ== 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=dgcZQGnmVsGYdLYfRJ6Gd6SIKrbWE6OnPFqyShYpomY=; b=VE7wmfG70pIZGItfKhzhxX4dh//JikqiJfSO8D0aXeVo7CxnS3Ms8rxn0U+vFVcG2WSYTBZAcpSqRbbz+R203yDkZH+6j90Q2BbNJ0s/XSVqeRWTra+x7rKMCJhfkTaRKY39TAqeZhkSx/GC5AbpIEACeLNTbq0WDrnOcDhcLQCWRvcpru6yHuSBZcEVt35+U2KeL/TlGzlr2QUOePgjTHeoE1Om2ITs183UUquuKM3JzmF5jXAfl+9vCxwXY2bvo8hd0ZUdbfypiPUmCFpr1hdvy8J0sLZwyISrftdPoyZE3oCCs9ycAAkM7vBDSASo0jOzTDQpRRityYVrn/5tAQ== 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=dgcZQGnmVsGYdLYfRJ6Gd6SIKrbWE6OnPFqyShYpomY=; b=jrQwnERACDc1puwCr4ce2nkApLP3yxYKpioLxIByo74sdX6mKH9z35wUqlJ3dDav/Smx7rj7xuFhS+5pv2+yut/EcPT+ytLRFHajo4dZPIsUPDfsqFivR72S+3Fh7UfdjZ9/UcApZE4rDOjj1sbj2SifvgpWEbWh5TWcTfApMr27tu+2q3EsZIindgzdbpbgeZ2Qy9EABF9lm9AjTaHoiBUlS+XQcwh5vqZtYGVSWPvrkFq4vZdHN4KI3V38AD3jt7RyYwjZ2nb0p/fdgi8/52Aq7ivtp/w8T9fCaDMzpHJXiMzTlA/rQsgN2Ix+J+PHrA2fV6yjCrPMP7+N4rzFpg== Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) by AS8P250MB0118.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:371::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Mon, 25 Mar 2024 01:53:32 +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; Mon, 25 Mar 2024 01:53:32 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Mon, 25 Mar 2024 02:53:16 +0100 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: X-TMN: [zlER1wuj3Ieo8pJLbRMgMAVWDIELgOBJjEQdvJoqvXc=] X-ClientProxiedBy: FR3P281CA0202.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a5::6) To GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) X-Microsoft-Original-Message-ID: <20240325015324.2348789-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1P250MB0737:EE_|AS8P250MB0118:EE_ X-MS-Office365-Filtering-Correlation-Id: dee5c8c9-ca43-4267-21a3-08dc4c6e6008 X-MS-Exchange-SLBlob-MailProps: Cq7lScuPrnqkjmXb1vlddM5aSa/Epk3ACE7dwxJvEO3aJSq9kp/BBkd/NemDkBr2Epyb70p2GK5jHwqx/W2NbWNJCxK82b3W/s55lCcfSRddHYxaLd54Q2F0PijAAZvBg1f8aNxKtIi6hxUKzapAR0XLAVZ+iH9/5lMJW46yLp21M2D0u6HuqANqg+2FwfLqINMtP20nfP3ZLLGxT+xRIFAtlipVcz3Pu1OXkH6rLaR8O4q52azHDjBt8wKTRH6eK35oLKovfmsLYR8FLSVqLfbOwQdLBPFXqp+vYjG73hTdwqfTee8cRkVcPL4SSTJgMZbk0D0HnPksVCUC2sH+xiEAR4eem2kMizQxemab7oLkbo3sc83RGOB3VgS44MMDGAVTVmqEGJ7tMtp5qkNVbiuY6M/194NTzN/Z2xGfgtDtNRUp8dpPEa5KcCZIUgHs3zHGpDbS0gQjdG7+ye2bsDOstqSKvFflZCaVzmyKXtp7RvddXch0TGYtB+6ynEcyfkmQouOTfpr4BE5mJUG2FhUwZipeLVegNW0awxzhMmw5BUFPt/DA57QaTKOyEaP3Ya+itF0eC/3Fq/lTxYmeJUJl7oaGfT3hW1hWnvda6+JsDs0Vp4dgO0doE7zmUJTb3ZJ8imd7RJD3P7KKrXXldt3hao5JCWwVEAO9K0eiUtTn+U4/Jn2hNeCmfqc+A29c0ZIY4m5rWAcBOIqjAfINQpstNO2iCMT+tApgqzg/xwAdXRM29epyQP1ZKS8kQHrZZBkVnfgu/+c= X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9iV3m2H7w4PV6OGD6M8Li62Kzo/q5gjm6QIjBol7zjaTw/eIBIqnCky9/0eoax5iQiLmW4URQ9cVhDBmMg0Da18EqDoWEnjhPAZ4P5iR44M5fTN1UJyoyY1e2gS+irxIEAZl6g2s5CL4war35bFOcYFVDYTDXglCEl1iyZKC1YNL5jn/Ed+eeFXVDz/vsCYvG7p9ryj7AHUNzmCvbjN7r+ETIhEcSZRP0qC5JxXmPZuJOny1oOvAMV5ipY5jvQXr4uC1sKzUeoXJOrEEyt4MPghwMtssU3J/ZKrlnHrM5GKI244ZjGxdU2B0V7CtoLgnstlyeBFOqjqAoOlfv++SjHYj0JBouWiGDItkzymyjkfWN2xPcvAEiBL72h4T5GZLKrSl8NeRKxA3q+7yr+sy/duPFwn09J2cu70hRXejG9AGrt+A9/zbHh+X9D7ynzVlMtJYIWJkgg2CmqOeOqFBvXKgLu87I2zuA1wIDtY4R9FASQZq/8Ui57BF7YD1azTVP8Q0cr8VVTnjjUX5JPIjHO9ioYzKuE3YnzkMWg3yDVyudMTp6Q73uIauAdhRRsTwWYocZF6ZUuWfLfAJ5ZhpkIl2iOJStg7E6dWqB9WuciM7Eoy1gsIZzwekGeBnCA39 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: kP9HQ1WKzHr8GIcaqGW1NEK23nJ0IPA7uWxic9pkoS3dtRzqp/B4Uu/0nvernuhh/G+q3G0GTAfwNSw6my/oD9Iq95tTva/e16cTyd/pejD1BHarRK/RGd2/g4ZNXQRWGITT7fx5ryZ4M03LuqFDyyKpxkpCmTBiBe5I5Iaqg8WAxb20nPsGGDGqwLGHxDigtqQCM4zuICPVwtoE11oDEkY5rwyNfUaH0Yscjr7pOqvwjsmzjYFu63rDyvXaxftbWP1sYvy3/JKUcJxjj4BvrzaAgDW/2pQuHtoDZzJfcRr7lWt68Uxhi2pjxqFzwxoSJndPExtZNQ00XRPX6/osxfs7/a5wjxw1lGLpUfGvxYnoTLdXvnCny1Zm1UdBHvNz80f20zM69isVOaYS0ikdLCiuwgVU064qdyy8gWVwaHsRFSphFu6J+ELzUXC7kZGHHL2zylwzG9IUKr2RPUrS47m9yaQEHdSdgWqWkniNhZ4N9OquAj8aMtcGK9PTkjmInCG3z/8cIXCTiI+GWbYU3U9Rb205xSWqmJeUNvBMZBF1+wIPeDkMlu9Yt8rNPwroZ2y7bvlO2rVW2O/yc+b1IE0L1EQqifXmAFkPMhZ7bLi2KepH8Ct9zBNMOQ/Ohenh2IFILkpK8Q+IfS66AHIS5q7DjGkGNhUoq9pBOaZNOCAcTiwLGj74kQmPEqIzAwM69ST89DQKJze+89CljQ8pljR2oyeW1/sAVZQRlb9a5FQRmUnj4dFpIQ2Kq+QR/u0y5O1BMgNvx2eJNNdOFuM3O6bFoQINudk6Y+IA4sQpBanbqNzBenZN5YExrMBlBMdaoW4enCbFJ8ZyGt4ZbuAZqo7UzImndsYEsk4LW93KCDivgmKNDeqkd1JmWHnRM97Qqz1KTIGxriJiNvlmOVQi6fnJ1qeLm/A/uAnfj+dcFasWWk9EgwO69TFWCh3cdhAWc1BYCsYQ2j8YNOZo8QijcQ+MYv3JCxm+CNwCILZ5oxHwVtSXDkdEnE7FgmRvmT+ldBBhJV8pFXt0rHv1ktonYYyyCQYvd+4gy1GiFnqkOkISCaMclnpObqtVIRi3B4YpdivtfaMby/W8O5s//Iv8tz1QkO6+ZfFCJ6c3xmU6Dify2wT8l3xYN/3U01ks/+kUs1EzY+POqk/UY1WggIGudt7XBOyDhJG/EADJwQe4ri0D3EfV9NegBNw/bq4aUc4PLYh/HhKmO4tfEErg2AJ7fQFpu3NNCieeZkODLPa7eJExX5Dxl9ShH1D+s+NeW26QMk32a9LkMWl6t5X4w7MTcQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: dee5c8c9-ca43-4267-21a3-08dc4c6e6008 X-MS-Exchange-CrossTenant-AuthSource: GV1P250MB0737.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Mar 2024 01:53:32.3060 (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: AS8P250MB0118 Subject: [FFmpeg-devel] [PATCH 02/10] avutil/fifo, file: Remove unused 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: S9Br+hNvMCdg Forgotten in 4105899245d79976b4a1a230455066417f3f194d, 4c92fc02f850f4f813e8cef8f8f8ed37d498e090. Signed-off-by: Andreas Rheinhardt --- libavutil/fifo.h | 4 ---- libavutil/file.h | 1 - 2 files changed, 5 deletions(-) diff --git a/libavutil/fifo.h b/libavutil/fifo.h index 048298214a..f2206c35f5 100644 --- a/libavutil/fifo.h +++ b/libavutil/fifo.h @@ -26,10 +26,6 @@ #define AVUTIL_FIFO_H #include -#include - -#include "attributes.h" -#include "version.h" /** * @defgroup lavu_fifo AVFifo diff --git a/libavutil/file.h b/libavutil/file.h index b5a762c28f..fced170108 100644 --- a/libavutil/file.h +++ b/libavutil/file.h @@ -22,7 +22,6 @@ #include #include -#include "version.h" #include "attributes.h" /** From patchwork Mon Mar 25 01:53:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 47415 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:c889:b0:1a3:b6bb:3029 with SMTP id hb9csp930709pzb; Sun, 24 Mar 2024 18:54:38 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCW71S3JjRnwrYPEY/qjYNq9onjtwKUDLJLdws4Z78ZyEvfp/OHlN0a1R5nEfixpoIv5kBvM9u7BYrEtxvZ/n+I4XyVtecHrdANZJA== X-Google-Smtp-Source: AGHT+IGyuUjGgu8425pLCH9pTXyRxeqiFlJoidfsqm0FhLuSHEaR7a006gvfeWugfacRVPSLWyrh X-Received: by 2002:a17:906:b10e:b0:a44:277c:1683 with SMTP id u14-20020a170906b10e00b00a44277c1683mr3851286ejy.53.1711331678467; Sun, 24 Mar 2024 18:54:38 -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 sa32-20020a1709076d2000b00a4743988f95si1874982ejc.820.2024.03.24.18.54.37; Sun, 24 Mar 2024 18:54:38 -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=gGvc700V; 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 565D268D449; Mon, 25 Mar 2024 03:53:59 +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-vi1eur04olkn2109.outbound.protection.outlook.com [40.92.75.109]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A0A6368D33F for ; Mon, 25 Mar 2024 03:53:54 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WwTMAOhfaIgbf+8V3j3nUSqkLHhIrtrS5TdYBqqENVTqOE21Q+bBvZM4JksTDYI9Mm46V+9+p6GL6yFvxwamnD8APVWsgxhZFsgq6nL3MzPZAJMZ/f8/d+7ln7s2ggHOlvFKN4eHgDskTp2oF3hP2D/HRiEDgwSAlNHTorxZ0B805FajzSqGnSx7OUSiYiKnKlMZ29vNWi4OSXZGB9HG/tDkm1/Q6hGlcZMD8TjDLCEQYdpeoDd8yROddlGnVig6StkUrAao4Rfr/dN9X+c23+/OjF9thkaOAQ7W4hJt4jN2Rw5WlklOqOdlTvsfcF/slpG7Jc5dE/EpYYTa/VgO9Q== 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=x+Ea6TVQtPQGa+q7ubKfYXINE2boUbOF1cUUUiFvsKw=; b=buWwE2Rx7YqV4D3PEcCIbPG2HKo0xYJD06vSevA1sm86BhLhLucL5Sm5cDMHEJNbmbPLHd0pPQ+sZgBE/9bTwsCVuxsW3/Zy8u5F5i6oZbg62qRgxJ3Qhe56ASvBWIHP5wj3xyUL5UDGo6kbKKJqDZVwSKKdrC0eO7TUv4c7j1cz/qZDQPCdekO7Fp9IxmXRFuAIJP6sNGDli5x115TDjy4OOoOY7XVyJ/lsfytvYWQ1QKYohcMxnv78+/PDcQqfJHgwKKiGZLlSIkWYIoUFRIny48KNLQyNeW3933InAUPzHGjqA1nGfvoAcftxGm45YivDJVnO1JiQSsBHBvZ5Sw== 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=x+Ea6TVQtPQGa+q7ubKfYXINE2boUbOF1cUUUiFvsKw=; b=gGvc700VWF76iuMelPmhqoehCixncYbf6tu/7TDAOI/dmcW4/KmE1gsKSFRLvuZyuWWwyJ7hELMATfnUQhIlr3ajNnXQdRE+butYMj+Ib44dv5HDDKm5TDrZXCq/GyxwgjLKUaRnVG0v1nuQqkuyKponcknLvTA5jYAP7JbGLt4SftN/Jzvp2ISGJ2wbrvKne9tMJwY9ELG5CPnjfq1zDQWPV+2d2pZkjkRNMUypCv+pPvzzW4+ewT6BcDhEOeDzLyMiLQBkL1d/7AscVYVH9Gl3xqays34Z4C4WmfdzNZMzzFbS22QKIPAqIILOr6HZmFJdRfNEPMYkGR65jUpJAA== Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) by AS8P250MB0118.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:371::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Mon, 25 Mar 2024 01:53:36 +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; Mon, 25 Mar 2024 01:53:36 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Mon, 25 Mar 2024 02:53:17 +0100 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: X-TMN: [sr2WAwL7oQVHp+2OGat8uMLDl2/DuKJfZYQXXzAJzZw=] X-ClientProxiedBy: FR3P281CA0202.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a5::6) To GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) X-Microsoft-Original-Message-ID: <20240325015324.2348789-2-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1P250MB0737:EE_|AS8P250MB0118:EE_ X-MS-Office365-Filtering-Correlation-Id: 9d2cead7-991b-4913-375a-08dc4c6e6254 X-MS-Exchange-SLBlob-MailProps: g+KE0M0lPfRvExNdRvPMSc9KK5Rh9ifdgMUKmXRvwD6Pj/5HsB7Kv4+5dND5h3bGEI/Px+10KcXpdXM6ICL4tcoPQfynxFhZsxoUZuORCyLdnp2mTJiov/c6ZprzWLaFPFwTRQ2Pkgd4eGygwAMLK19SpSbGh5TlynXKlFwJ29LhLqOi1Ud9ZbKXQQqeoksY3Ovg5vmlqcG/wS23CRU6jcpbw2Zy8W94hHE7d0wGtgJWp7QxFfRAecujBdbUTnaSwB5+sgbjA31Ney24HigyyCPTIDagENetaClACMqh3Wd0IR9mXqpmODhPKWnD8MyD+OH5Uag0DYzgBEYI7MFcOD4DXI3/VxGBcPYHPjwdLS0DD8B7zwG9ni3h3Qn5afFgZeIUMwR294fnxx3xnz2aoR0v1zlXO9d9p9a+xQfdrQt8jkEWpj/5R6QSVDZ99ElC8ACttaPqGmLsdMHDe5oy9nqTCMkw108EzI0V4Bdyvv6+/PxOt0SWQ8alx6+7ChgWm/uxcRA3yf3941VQMrBgo9Bz1vBrJVuYslgbPe/DlYXo5nVrGKiGIULdvwTJa0cCbt1H9OJ4I3ilmxCe2TtoiEGaLY3y0q8r1//P7u4pNsKrS/qLba3qugB9cQ3FfqrZI32+aOJXZzyiBhktgI1o6cMUVTwPPf8aOTradEjFWKZnUzF1Owy3RGRamoDdPZM8Umxh3HQlP8mHzvZfk3lEe0ac37R419SSpb/Gne8zyHyNjaiPX4cTTZR64mTwJ/Pp/VELzv9Gx6mxyx9ekDcxf+VtBGI/oflFWeLnMF0h95yEj3Z3uQyosMiQZQ4r5Z6VOttOA5Z15pYAO0wHx/KYDOlfaxFPrhMusBmMeDXWZS2s8Oq0A4CqNXTs7a0NJ6PCE3KCtZySxWlrFS7v6Lo02kJnLPwtY66TvADDfZFdV9rPYN1uqQ3wt+i597qX1wKD+jtEaj1yO1GDddh49is8mm0nqAqik8tUqM4mnd85635utTLcG9v/GDD5Ho8vdVT8 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vF4xkxCWi+qFnzWlWrYrCDc0Vho+Xn1DrYBzSdzl0n19abd2xUyFiP+dMjIA+4LJWMBBy3HD91m0Mv9cCMj7JvYUrBpG1+UPrDvL5zPj73i/0rm5OPiOYgUmeMc4rc8CHz9sVx48xSt97xM6cbiyZ9QWp3L7XQVxDCrnrZ3sBcoTOX0KSMH1lQyFi5dcodLpN3PCti+VnFyBcV/aecCrI5eR6dDRUSXO/jvoYDbBWCbkpZE7iX9osfoJoAk4BvKJ0W+Z6N5yeM5AeQFhp0Xa8RMX0Lw8NROesuIKRw1hhbcHRNwmzO9bCxwn+Aa8NbMvV4++mGgk7RzulFj2dT9H2fwxbZGh88kzqApVX3mnsmG/RdRnttMaGK+ggmFbzP244M0u4wEo+iKXeUpGwlEBtY81aPI6ommaWXzwxNC7xt0J/Vcy2RbT5We5O2BY66o7hMJypl+xHe1r7XrKlcG1dYg/8g6xcNMhCMqnh9FDfA0XhcY9zffSBpIz0Kn+B8TzMIsh25MMqntBBI8dbODGn28S7NyLSr+5JohX5ob3czCAysiSZVMQkCZLEZWZ17UKT9OqsL3AbAFE5GEzEkg8eJG38QYCasZwhL2tlzCRuKHne0djESg2xDWP+dGRMYHMwmOxboZp3ZkJPWdNsgTp2gXJsTzprS+Jy7ft3ekJcuSWmd/a8KD8DOwyG2eknnBx X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 603ad4gBogvLYZZO2IPmFIK29Mz5fmZ91ICfFcgLswl+caC1YnCgDtsOK9vSDLNBte4RfqZ1PZmgWzbhi64DNyAdPJ+PTobxpPWYUKWZvhVhMNs2S8ergwEYHkSG5+AcPP1dSI1RqbCK2H+taHQHLKOqoOu5HsQa/htetxe4MD9cq8Ks7fj2tfI1wHGLbls0CrxDCkyoxTQQodxEEUOb6HWGm0VY276Kh2/kAM8XUBYKA0HxdF8GWOO9Z8HMM1P85bNa8ftEh/lHB460c0ETnaaKfSiyvrgj7uEZzoAFg8xNd3IvUnobFvUBITCHhzMb9dVLJDsYcSFD3DVuCuyTzmY3r9HqRlJyjZ1ONK2lIyGkHoMDouE/WV5NdGe5vpDacUZIOdH2WUIxJKMkDjpz3deLJ50YgVLsU3dCxYHmZE0EkvtZTrCYMOGBj45SJZ50ENe8g6CGpVij8RC1WMP6rP1QUgnzGUT6JybrwRMT6KQwtsB8xkeqDxQLu1fdb4rnCdGXXM1h3aDt9TpVwlbVjJxDluwzO+g2ecGbT2rUTsuOel+mlHMAG3JpGsyEr/QRdmsKkDMGzR6rRJ/o0s4gNI6Oqw5kbHtcdypYIGEOYLiJ1PE0S3Ccuqs5DHET4rkyE1LcQN6YkiTzwsOhchebOPrxxX5kZ4Nxn6WgjRQ43RuIMUwXmn6/TyxWf+W4rRwnq+myGpGRsA7V2FUwmNKqRWyqf2JLW0JQ48NGxp5cx10nFN+g4/XelrwToDcMJFjXdEKdiQnMqFUZU/zYWcTLcJAckwi33Q77oUIDYLYGJ5GX+tdPJNQcpsTREfXTjQJ0E/DESrKzww9lLp7qZWU2+QXYzkze8s6xmntSLWxTTuTdWIW2JRFU2PntGJPbR+4oGbzb7d3jTsLEq70NZfv04uKiseN+bpiQ7qmmoyx2RToPIqxHtHJ1dpyQKeLZqRVE32EE0CUtqoYkld0pLi7fSCrTU2Mh0RZujYXkXlbw1C5ewwcgSlhbzR6ALIP72K06g1KYPJyoYLPl/xWQIUtlLB8d8kX7S3ZxLY74DKYRg9cf4EaesCSUB4P1u1KFPzVRkMY2zq1qJKtMdLvssftXBhdkuqnyTHGyEdj8XvDZ2g/209O0mLiB1Fd7c5gn+iGQsX49ltV5CmPnaCMkGm33OWjbQXAzbndqH8fIGIEt00UwIJ0u8ozHY6ntFunc/ZQijIMf1kr3TQqrqCaKbYXA2TEzrqOI7BXOncrcG9uERsQDtsgCvJ6F6B4C3KIUPhfouSCJmKESHf1ugw2fONWmKg== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9d2cead7-991b-4913-375a-08dc4c6e6254 X-MS-Exchange-CrossTenant-AuthSource: GV1P250MB0737.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Mar 2024 01:53:36.8646 (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: AS8P250MB0118 Subject: [FFmpeg-devel] [PATCH 03/10] 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: +h0YOLfKBMCs 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 | 1 + 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 | 1 + libavcodec/mlz.c | 1 + libavcodec/mmaldec.c | 1 + libavcodec/mobiclip.c | 1 + libavcodec/motionpixels.c | 1 + libavcodec/mpc7.c | 1 + libavcodec/mpeg12dec.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 | 1 + 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 | 1 + libavdevice/sndio.c | 1 + libavdevice/utils.c | 1 + libavdevice/v4l2.c | 1 + libavdevice/vfwcap.c | 1 + libavdevice/xcbgrab.c | 1 + libavdevice/xv.c | 1 + libavfilter/aeval.c | 1 + libavfilter/af_aap.c | 1 + libavfilter/af_acrossover.c | 1 + libavfilter/af_acrusher.c | 1 + libavfilter/af_adeclick.c | 1 + libavfilter/af_adecorrelate.c | 1 + libavfilter/af_adelay.c | 1 + 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_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 | 1 + libavfilter/avf_concat.c | 1 + libavfilter/avf_showcqt.c | 1 + libavfilter/avf_showcwt.c | 1 + libavfilter/avf_showfreqs.c | 1 + libavfilter/avf_showspatial.c | 1 + libavfilter/avf_showspectrum.c | 1 + libavfilter/avf_showvolume.c | 1 + libavfilter/avf_showwaves.c | 1 + libavfilter/avfilter.c | 1 + libavfilter/avfiltergraph.c | 1 + libavfilter/boxblur.c | 1 + libavfilter/buffersrc.c | 1 + 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 | 1 + libavfilter/f_graphmonitor.c | 1 + libavfilter/f_loop.c | 1 + libavfilter/f_reverse.c | 1 + libavfilter/f_segment.c | 1 + 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 | 1 + libavfilter/graphdump.c | 1 + libavfilter/qrencode.c | 1 + libavfilter/qsvvpp.c | 1 + libavfilter/signature_lookup.c | 1 + libavfilter/src_movie.c | 1 + libavfilter/tests/integral.c | 1 + libavfilter/textutils.c | 1 + libavfilter/vaapi_vpp.c | 1 + libavfilter/vaf_spectrumsynth.c | 1 + 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 | 1 + libavfilter/vf_blurdetect.c | 1 + libavfilter/vf_bm3d.c | 1 + libavfilter/vf_boxblur.c | 1 + libavfilter/vf_codecview.c | 1 + libavfilter/vf_colorchannelmixer.c | 1 + libavfilter/vf_colorconstancy.c | 1 + 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 | 1 + libavfilter/vf_cropdetect.c | 1 + libavfilter/vf_curves.c | 1 + libavfilter/vf_datascope.c | 1 + libavfilter/vf_dblur.c | 1 + libavfilter/vf_dctdnoiz.c | 1 + libavfilter/vf_deband.c | 1 + libavfilter/vf_decimate.c | 1 + libavfilter/vf_deflicker.c | 1 + libavfilter/vf_dejudder.c | 1 + 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 | 1 + libavfilter/vf_fieldmatch.c | 1 + libavfilter/vf_find_rect.c | 1 + 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 | 1 + 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 | 1 + 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 | 1 + 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 | 1 + libavfilter/vf_normalize.c | 1 + libavfilter/vf_overlay_qsv.c | 1 + 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 | 1 + 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 | 1 + 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 | 1 + libavfilter/vf_vaguedenoiser.c | 1 + libavfilter/vf_varblur.c | 1 + libavfilter/vf_vectorscope.c | 1 + libavfilter/vf_vif.c | 1 + libavfilter/vf_vignette.c | 1 + libavfilter/vf_vmafmotion.c | 1 + libavfilter/vf_w3fdif.c | 1 + libavfilter/vf_waveform.c | 1 + libavfilter/vf_xmedian.c | 1 + libavfilter/vf_yaepblur.c | 1 + libavfilter/vf_zscale.c | 1 + libavfilter/vidstabutils.c | 1 + libavfilter/vsrc_cellauto.c | 1 + libavfilter/vsrc_ddagrab.c | 1 + libavfilter/vsrc_life.c | 1 + libavfilter/vsrc_mandelbrot.c | 1 + libavfilter/vsrc_testsrc.c | 1 + 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 | 2 +- libavformat/asfdec_o.c | 1 + libavformat/asfenc.c | 1 + libavformat/assenc.c | 1 + libavformat/au.c | 1 + libavformat/av1dec.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/fitsdec.c | 2 +- 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 | 1 + libavformat/sbgdec.c | 1 + libavformat/scd.c | 1 + libavformat/sdp.c | 1 + libavformat/seek.c | 1 + libavformat/segafilm.c | 1 + libavformat/segment.c | 1 + libavformat/sierravmd.c | 1 + libavformat/smacker.c | 1 + libavformat/smjpegdec.c | 1 + 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 | 1 + libavformat/tee.c | 1 + libavformat/tests/movenc.c | 1 + libavformat/tiertexseq.c | 1 + libavformat/tls.c | 1 + 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 | 1 + libavformat/usmdec.c | 1 + libavformat/utils.c | 1 + libavformat/vapoursynth.c | 1 + libavformat/vividas.c | 1 + libavformat/vqf.c | 1 + 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 | 1 + 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 | 1 + 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 + 877 files changed, 886 insertions(+), 201 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 2046419819..13bceb3fd0 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 454c19222f..4c7528702f 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 f3c258bb99..653d39f717 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 d4e5f978f1..c3ec1b9e8a 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 ed411b6bf8..3f5d37d1d3 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/pixdesc.h" #include "libavutil/pixfmt.h" #include "libavutil/time.h" @@ -29,11 +30,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 47312c9fe1..0dac86e1c9 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 5f7fcf8a5f..589e26613f 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 3d88482d07..dcd849bdbf 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 901669a3a9..a7dd29a4e8 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 34bcb7cc64..db3d1a198c 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 7fc9737e93..16ba5c072a 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 cda5158117..d729105c43 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 026b998341..3d1d8f6fca 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..67884bf432 100644 --- a/libavcodec/libwebpenc_animencoder.c +++ b/libavcodec/libwebpenc_animencoder.c @@ -25,6 +25,7 @@ */ #include "libavutil/buffer.h" +#include "libavutil/mem.h" #include "config.h" #include "codec_internal.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 1c3ab56460..3ae1ee2c71 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 521c9e8aff..51bce103da 100644 --- a/libavcodec/mjpegenc.c +++ b/libavcodec/mjpegenc.c @@ -32,6 +32,7 @@ #include "config_components.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "avcodec.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/mpeg12dec.c b/libavcodec/mpeg12dec.c index 4ad1eb6572..da9a85f3ed 100644 --- a/libavcodec/mpeg12dec.c +++ b/libavcodec/mpeg12dec.c @@ -46,7 +46,6 @@ #include "hwaccel_internal.h" #include "hwconfig.h" #include "idctdsp.h" -#include "internal.h" #include "mpeg_er.h" #include "mpeg12.h" #include "mpeg12codecs.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 fc3e270631..7a792a9be0 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 f47213bf0c..315b6cafb7 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 7563625627..d2a18d3b40 100644 --- a/libavcodec/qsv.c +++ b/libavcodec/qsv.c @@ -31,6 +31,7 @@ #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 55ce054735..1e861e20c1 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 d6b6e3557f..06584ebef5 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 91929d165f..5168f4d512 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 09ed4d473a..d1581f6025 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 65b269adda..2afdcb2b52 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..3824b4437b 100644 --- a/libavdevice/sdl2.c +++ b/libavdevice/sdl2.c @@ -28,6 +28,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/libavdevice/sndio.c b/libavdevice/sndio.c index 46f287588d..2297ff08ba 100644 --- a/libavdevice/sndio.c +++ b/libavdevice/sndio.c @@ -22,6 +22,7 @@ #include #include +#include "libavutil/mem.h" #include "avdevice.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..dfd5519bd6 100644 --- a/libavfilter/aeval.c +++ b/libavfilter/aeval.c @@ -28,6 +28,7 @@ #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" 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..f5c8e889fb 100644 --- a/libavfilter/af_acrossover.c +++ b/libavfilter/af_acrossover.c @@ -29,6 +29,7 @@ #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..116fcc3a38 100644 --- a/libavfilter/af_adelay.c +++ b/libavfilter/af_adelay.c @@ -20,6 +20,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_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..303b12e14c 100644 --- a/libavfilter/avf_ahistogram.c +++ b/libavfilter/avf_ahistogram.c @@ -19,6 +19,7 @@ */ #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/parseutils.h" #include "avfilter.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..bc47dadb49 100644 --- a/libavfilter/avf_showcwt.c +++ b/libavfilter/avf_showcwt.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_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..3f8df98167 100644 --- a/libavfilter/avf_showspatial.c +++ b/libavfilter/avf_showspatial.c @@ -21,6 +21,7 @@ #include #include +#include "libavutil/mem.h" #include "libavutil/tx.h" #include "libavutil/audio_fifo.h" #include "libavutil/avassert.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..7b558df4ae 100644 --- a/libavfilter/avf_showvolume.c +++ b/libavfilter/avf_showvolume.c @@ -22,6 +22,7 @@ #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" 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 bb5399c55e..51ea6ec013 100644 --- a/libavfilter/avfiltergraph.c +++ b/libavfilter/avfiltergraph.c @@ -29,6 +29,7 @@ #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..f78743ff47 100644 --- a/libavfilter/buffersrc.c +++ b/libavfilter/buffersrc.c @@ -31,6 +31,7 @@ #include "libavutil/hwcontext.h" #include "libavutil/imgutils.h" #include "libavutil/internal.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/samplefmt.h" #include "libavutil/timestamp.h" 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 fd8641ff75..e1707254ac 100644 --- a/libavfilter/f_drawgraph.c +++ b/libavfilter/f_drawgraph.c @@ -25,6 +25,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..3d9093df1a 100644 --- a/libavfilter/f_ebur128.c +++ b/libavfilter/f_ebur128.c @@ -34,6 +34,7 @@ #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" diff --git a/libavfilter/f_graphmonitor.c b/libavfilter/f_graphmonitor.c index e0b20114e0..01c0eff81b 100644 --- a/libavfilter/f_graphmonitor.c +++ b/libavfilter/f_graphmonitor.c @@ -22,6 +22,7 @@ #include "float.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "libavutil/eval.h" #include "libavutil/intreadwrite.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..6c9cbe4dda 100644 --- a/libavfilter/f_segment.c +++ b/libavfilter/f_segment.c @@ -25,6 +25,7 @@ #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" 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..e4eb861726 100644 --- a/libavfilter/framesync.c +++ b/libavfilter/framesync.c @@ -19,6 +19,7 @@ */ #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avfilter.h" #include "filters.h" 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..6b0e9c75d2 100644 --- a/libavfilter/src_movie.c +++ b/libavfilter/src_movie.c @@ -34,6 +34,7 @@ #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" 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..14d5016e54 100644 --- a/libavfilter/vaf_spectrumsynth.c +++ b/libavfilter/vaf_spectrumsynth.c @@ -24,6 +24,7 @@ * @todo support float pixel format */ +#include "libavutil/mem.h" #include "libavutil/tx.h" #include "libavutil/avassert.h" #include "libavutil/channel_layout.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..dae02678bb 100644 --- a/libavfilter/vf_blockdetect.c +++ b/libavfilter/vf_blockdetect.c @@ -30,6 +30,7 @@ */ #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "internal.h" #include "video.h" diff --git a/libavfilter/vf_blurdetect.c b/libavfilter/vf_blurdetect.c index 354a6b6100..f7b02b7d1c 100644 --- a/libavfilter/vf_blurdetect.c +++ b/libavfilter/vf_blurdetect.c @@ -31,6 +31,7 @@ */ #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/qsort.h" #include "internal.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..205bc99a6d 100644 --- a/libavfilter/vf_boxblur.c +++ b/libavfilter/vf_boxblur.c @@ -27,6 +27,7 @@ #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..b204f39fbf 100644 --- a/libavfilter/vf_codecview.c +++ b/libavfilter/vf_codecview.c @@ -30,6 +30,7 @@ */ #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/motion_vector.h" #include "libavutil/opt.h" #include "libavutil/video_enc_params.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..5ea9062bfa 100644 --- a/libavfilter/vf_colorconstancy.c +++ b/libavfilter/vf_colorconstancy.c @@ -29,6 +29,7 @@ */ #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avfilter.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..5e32ba9928 100644 --- a/libavfilter/vf_cover_rect.c +++ b/libavfilter/vf_cover_rect.c @@ -23,6 +23,7 @@ */ #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..99bfd70330 100644 --- a/libavfilter/vf_datascope.c +++ b/libavfilter/vf_datascope.c @@ -19,6 +19,7 @@ */ #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/parseutils.h" #include "libavutil/pixdesc.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..56b7ef0877 100644 --- a/libavfilter/vf_decimate.c +++ b/libavfilter/vf_decimate.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/pixdesc.h" #include "libavutil/timestamp.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..5edadf56cf 100644 --- a/libavfilter/vf_dejudder.c +++ b/libavfilter/vf_dejudder.c @@ -49,6 +49,7 @@ * 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" 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..31e79a1163 100644 --- a/libavfilter/vf_fftfilt.c +++ b/libavfilter/vf_fftfilt.c @@ -29,6 +29,7 @@ #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..81564e4be1 100644 --- a/libavfilter/vf_find_rect.c +++ b/libavfilter/vf_find_rect.c @@ -23,6 +23,7 @@ */ #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..732c7264d0 100644 --- a/libavfilter/vf_lenscorrection.c +++ b/libavfilter/vf_lenscorrection.c @@ -27,6 +27,7 @@ #include #include "libavutil/colorspace.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/intreadwrite.h" #include "libavutil/pixdesc.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..5eed623cfe 100644 --- a/libavfilter/vf_lut2.c +++ b/libavfilter/vf_lut2.c @@ -23,6 +23,7 @@ #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" diff --git a/libavfilter/vf_lut3d.c b/libavfilter/vf_lut3d.c index a312ca76c9..02b1f6c717 100644 --- a/libavfilter/vf_lut3d.c +++ b/libavfilter/vf_lut3d.c @@ -28,6 +28,7 @@ #include "float.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..c4ef1fc002 100644 --- a/libavfilter/vf_mix.c +++ b/libavfilter/vf_mix.c @@ -23,6 +23,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..d1943bc807 100644 --- a/libavfilter/vf_noise.c +++ b/libavfilter/vf_noise.c @@ -25,6 +25,7 @@ */ #include "libavutil/emms.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/imgutils.h" #include "libavutil/lfg.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..6522ef4723 100644 --- a/libavfilter/vf_overlay_qsv.c +++ b/libavfilter/vf_overlay_qsv.c @@ -21,6 +21,7 @@ * 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" 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..27b7ecec84 100644 --- a/libavfilter/vf_shufflepixels.c +++ b/libavfilter/vf_shufflepixels.c @@ -24,6 +24,7 @@ #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 758b6e5101..35ed86cd9e 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..902ee960c5 100644 --- a/libavfilter/vf_subtitles.c +++ b/libavfilter/vf_subtitles.c @@ -38,6 +38,7 @@ #endif #include "libavutil/avstring.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/parseutils.h" #include "drawutils.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..ba3de6dc6a 100644 --- a/libavfilter/vf_v360.c +++ b/libavfilter/vf_v360.c @@ -37,6 +37,7 @@ #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..829ab1bc98 100644 --- a/libavfilter/vf_vectorscope.c +++ b/libavfilter/vf_vectorscope.c @@ -20,6 +20,7 @@ #include "libavutil/avassert.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/parseutils.h" #include "libavutil/pixdesc.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..15202b3dd3 100644 --- a/libavfilter/vf_waveform.c +++ b/libavfilter/vf_waveform.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/parseutils.h" #include "libavutil/pixdesc.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..7d8c8e95ee 100644 --- a/libavfilter/vf_zscale.c +++ b/libavfilter/vf_zscale.c @@ -39,6 +39,7 @@ #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" 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..b0129d0beb 100644 --- a/libavfilter/vsrc_life.c +++ b/libavfilter/vsrc_life.c @@ -29,6 +29,7 @@ #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" 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..22a7f00da7 100644 --- a/libavfilter/vsrc_testsrc.c +++ b/libavfilter/vsrc_testsrc.c @@ -40,6 +40,7 @@ #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" 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 3424791b81..80e028fb61 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 dd698d0d5d..894bdc3f55 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 0ccd4944db..b9f98bd657 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 b3994d12fd..40937df9c4 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..39e59c68e9 100644 --- a/libavformat/asfdec_f.c +++ b/libavformat/asfdec_f.c @@ -24,11 +24,11 @@ #include "libavutil/attributes.h" #include "libavutil/avassert.h" #include "libavutil/avstring.h" -#include "libavutil/bswap.h" #include "libavutil/common.h" #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/av1dec.c b/libavformat/av1dec.c index 3382613d54..f39aecce66 100644 --- a/libavformat/av1dec.c +++ b/libavformat/av1dec.c @@ -21,7 +21,6 @@ #include "config_components.h" -#include "libavutil/common.h" #include "libavutil/opt.h" #include "libavcodec/av1_parse.h" #include "libavcodec/bsf.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 985a9bf022..b50d606ea8 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/internal.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 5b2a59b6eb..4d2ff752d9 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 426c56b9bd..2b638ed2b9 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 ac541a592f..51e64dfdd7 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 2998bcfb48..7395da85a5 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 e50d1a9cfe..8736ab337b 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 dd5819c06f..b95af0ccba 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/fitsdec.c b/libavformat/fitsdec.c index fe2dd5ad5d..2302807b24 100644 --- a/libavformat/fitsdec.c +++ b/libavformat/fitsdec.c @@ -25,7 +25,7 @@ */ #include "libavutil/avassert.h" -#include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "demux.h" #include "internal.h" #include "libavutil/opt.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 f6b44c2e35..97ae2db6ce 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 d5b4c11b66..8ab066f9c8 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 0ec6e0b258..04421e1d68 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 d83716dcf4..a720b7261a 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 633e0c11fd..3e51bf8cc7 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 b57c54bd14..8ebc946b1c 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 89c82483aa..2125044060 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 05f30691ba..f766b102c9 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 c2baa9c3ff..d2bd588f4c 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 1fab0f09d8..e67fb0b6b8 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 8897fd622c..0e9fa04ad1 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 b969a45550..bd3af2ecea 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 8d1135270c..08a8cc5899 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 d5225acddf..906d962c8e 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 ee6734995d..f34468b0c3 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 8399ad7062..111b4a3d89 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 f23eb0188d..84aace0a7a 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 558a6c3b0a..3dfcd1e34b 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 d6a39730cc..f7cc1ba668 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 670964fab3..da8c3b919f 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 e473683aeb..ed89ea87f0 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 f4bd6fb964..483386e7c4 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 c99acbd3e7..f14317a0ce 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 79e09bd9d4..87f57ce140 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 d545694bef..20f365baf4 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 713e174b92..336b6dd937 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 ded194bddd..ba416e6390 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..0c0266d782 100644 --- a/libavformat/sauce.c +++ b/libavformat/sauce.c @@ -26,6 +26,7 @@ #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 bc2469afd1..b05a1e35c6 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 e34d60dcfb..cccf1ca307 100644 --- a/libavformat/scd.c +++ b/libavformat/scd.c @@ -26,6 +26,7 @@ #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 5cbeed6d91..73d751a08a 100644 --- a/libavformat/segafilm.c +++ b/libavformat/segafilm.c @@ -28,6 +28,7 @@ */ #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "avformat.h" #include "demux.h" #include "internal.h" 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 e7cc4075de..4ecfb49bed 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..8fd7659ae4 100644 --- a/libavformat/smjpegdec.c +++ b/libavformat/smjpegdec.c @@ -26,6 +26,7 @@ #include +#include "libavutil/mem.h" #include "avformat.h" #include "demux.h" #include "internal.h" 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..7dff9e9071 100644 --- a/libavformat/tcp.c +++ b/libavformat/tcp.c @@ -20,6 +20,7 @@ */ #include "avformat.h" #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "libavutil/parseutils.h" #include "libavutil/opt.h" #include "libavutil/time.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 9de3689720..9187d79da8 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..4577c42a3f 100644 --- a/libavformat/tls.c +++ b/libavformat/tls.c @@ -27,6 +27,7 @@ #include "tls.h" #include "libavutil/avstring.h" #include "libavutil/getenv_utf8.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/parseutils.h" 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..c1b4e9b629 100644 --- a/libavformat/udp.c +++ b/libavformat/udp.c @@ -29,6 +29,7 @@ #include "avformat.h" #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "libavutil/parseutils.h" #include "libavutil/fifo.h" #include "libavutil/intreadwrite.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 e300392a8a..7697f02d55 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 98bf134f25..352a3bad72 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 4c7f5aa22e..8f769e3222 100644 --- a/libavformat/vqf.c +++ b/libavformat/vqf.c @@ -25,6 +25,7 @@ #include "libavutil/intreadwrite.h" #include "libavutil/dict.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "riff.h" typedef struct VqfContext { 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 668c8adc36..8df960d01b 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 "avformat.h" #include "avio.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 022b276fbd..0a4456b899 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 e2c4c7f93e..ced9f3be36 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 a83618bcc7..65a86bdd45 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 91b9f96ccf..83ca51e3d8 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 685206f416..76080f87e8 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 0586e458b4..661de33ea8 100644 --- a/libpostproc/postprocess.c +++ b/libpostproc/postprocess.c @@ -77,6 +77,7 @@ try to unroll inner for(x=0 ... loop to avoid these damn if(x ... checks #include "libavutil/avassert.h" #include "libavutil/cpu.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include #include #include 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 ab8a68e241..d88fd731f4 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..1e82649798 100644 --- a/libswscale/yuv2rgb.c +++ b/libswscale/yuv2rgb.c @@ -28,6 +28,7 @@ #include #include "libavutil/bswap.h" +#include "libavutil/mem.h" #include "config.h" #include "rgb2rgb.h" #include "swscale.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 57ba24a308..d403e5060d 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 Mon Mar 25 01:53:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 47410 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:c889:b0:1a3:b6bb:3029 with SMTP id hb9csp930516pzb; Sun, 24 Mar 2024 18:53:53 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCU1Yl76Bhky5/y/LLph2FFCOBPwE+Oa+3baT3fHyJUEGzcQETNdFiatISrqg466Q8C2oIkcd3oEphFXEBy+euH0P8rruvc6FzV8pQ== X-Google-Smtp-Source: AGHT+IGatJyMrUaxeCaCxeF61+idhfBkLxhaaJncdjfIHOjgMZH5o/x7oLLlxiLDMIkUIndZFCoc X-Received: by 2002:a2e:8806:0:b0:2d4:7f17:185d with SMTP id x6-20020a2e8806000000b002d47f17185dmr2949138ljh.0.1711331632691; Sun, 24 Mar 2024 18:53: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 dz12-20020a0564021d4c00b0056bfc459b6csi1615756edb.640.2024.03.24.18.53.52; Sun, 24 Mar 2024 18:53: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=WV83wNDH; 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 4ABF568D221; Mon, 25 Mar 2024 03:53:46 +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-vi1eur04olkn2109.outbound.protection.outlook.com [40.92.75.109]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0368068D221 for ; Mon, 25 Mar 2024 03:53:39 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cW0yU1oolKPiOl7+apHsUCoNHw6f1PQuydrR62CflJp/skrYRnw5b8pUHqYzNmvd/iXOguIg1yU2q5o8RWgmj88lWqeatqpOnknW4WX8/sE0Ar80GoXlAmMUzn+CmJGRWQ3P5Ag0tBInjyhZsUwysT0euStmOcuiF5uyVpMMVeR5k3XQ9aS41cJiRsyd3pI/KbK090M4db5z+ekKC5bF1ceEI+olrNgAbJTSyOWgUEwx9CTCEfvonmVeht3XRfdXpVfwI6WkNbZcnfdmMgXXgkhr5srLEtT6EzM8MnSdGC5Hbx/PdH4LwpA2oJzCijS00gl7WIGY18UQurZzlTNlmA== 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=9wTddq2zATDAoUltB1IjFx3YuDR7hxkm+qaQeZe7xvI=; b=d0T1oJ59NqiDh+0JkQ+0xiQcRdH88KDr9rUS+9FZWZ25c5xT0l4s5DzD4H6ci6BPk+Rk2oxnLCYHiRiVa+AET/tHm+NalpflGbQXkFlTJ2PrbjJnANcd0fPkMD9oWAEVVFvIzwyetA6NrBQNrAVrCuJGinDFFVCB7tWNuTMUa4qYj8oOYldi3gcFCTdxha+bJ5MbJs+q+9AeNFrKYIyCBMTEsZdv0KvozSFxz3eGal7mejjhman/VY6WrnkLRdNjmkvZPg4rNli0xEVAuImYxyHs4l8uuRE3xXN5I2AAn3/zJNY0GJQWNNV757mfBtmXX1gJ6byrc+GO7jh3A2PgxQ== 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=9wTddq2zATDAoUltB1IjFx3YuDR7hxkm+qaQeZe7xvI=; b=WV83wNDH5IM3MAVjzcdMF5lb+vne/OzVOdbW5ikv2O+09AYqrR0l7duzaPS7QP8Wx9jVlT1daPRAIBftyKX4PyknMBqCQKPo/oBpPtPh80M5yUMp5DooRtqpTDhD9LPknfwmI4M2Xkiqd5ANl1BDvZ7B3LxeMVfqZzmnKpM/5aXP5iSIYkbWETxWLzHdvg5Gch2wplzTOA2AdN6cGZNA7zCLC5p6/pqJT+hSoXv2gmUPASbObavWYXD0RoliRmPi5ou7yvv2VjRBbc6LGnb/uFWwUXYkY5OUaoBbDPsG/EZrhno3Dn6HIy6eBx9MixK+d2UNZfGnoQFGSCDPwFGubw== Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) by AS8P250MB0118.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:371::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Mon, 25 Mar 2024 01:53:38 +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; Mon, 25 Mar 2024 01:53:38 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Mon, 25 Mar 2024 02:53:18 +0100 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: X-TMN: [EALx3VTbkzi+PEfDE9LMLx7FNNgPsurBfenpQLUwMBY=] X-ClientProxiedBy: FR3P281CA0202.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a5::6) To GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) X-Microsoft-Original-Message-ID: <20240325015324.2348789-3-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1P250MB0737:EE_|AS8P250MB0118:EE_ X-MS-Office365-Filtering-Correlation-Id: 2cdc3ce4-0867-4a76-363a-08dc4c6e6394 X-MS-Exchange-SLBlob-MailProps: Cq7lScuPrnqkjmXb1vlddM5aSa/Epk3A6UL4Jgc7ybq5j7OVA4JxFvWiePVdaPUVsgeq8yb780odidI5CKtRITzij3ZMRVUgTA7CJLKn51InRnR+iG3Ce2LeUf960ge5SqH7txKWokeVUbrofO+wUETRMGUj+jM801xY0mFNThBRoTpCkkJOK4j4vz1RL6yGlmePIBw6G9TiGMy33ALbDhfwNEM9XyVUuSf/pA822ukWFK1qLIlbYzgHW80A+eAWPi8r8JNhZ6FrClMr9RsXwg74I8smI+BJOtg/CbqJxfihd1/u/n/uK3u8DHAYmi7NLO5eQuMkyOuueFZzo/nvVgggvHkR9NcvaQ8HMGuUgHKcwIREbsl3LRvQpJN7MnSiFsCbsKrSaaePiMVrvLb2g8tcCs+sJGNUb49eWbaic3OVZilA337xUa0wg6MHtQpOG40B/Idsu43Rltn1ZglXobbWxqSjfZrzyWGtrGzyCA4x0JjHTor802pazaOQMyrbDU6wyb5DTXm7+JsSeFEAw/chJJqOFGsqKiYqxe8hcO63kePfuMa/LhUVBRHHyzNf0oT8LvurDgTv0G2qFx8VlKLCDC6Qu0kK7CLdngXjiILO+ZQ7xswEhZEkhoQBlTfFUMTlyymoje/STVzjBtpyxRu9chyZaiFg8IizdlAtHvMvfm0nhWuLjU+HNpA7oPRK3FrBOtD5yfeHa10ulsfOlFeLgFhvBPbftKNQeXcBgUEwCdmg5H4+S/6gKPGkArxMtSjJniPqUEM= X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5Nomgi1DGZYK7jNwELaZTuTuUs6GGWf+cBrRtZe8p2hqQE3cOdwMs/GT+Iv3TSYh5KkKBpy1dnMJmbtTWORbXyw2ax8f9uIzaPGREByVn8HgwYDS6kaXPjDhv6saFENVeolxo33A5/20L/ZEXCLidj0ApylcyEp+PPpSOmkekYChHbt5nRi33gGSZkPmXHQgYNnUSf/gnqnwae+psmHSj5pQ2f8zuUzHfgg/73J2xnvD7HUp19mPzfOOs0QWrVCVzpDAMZS/6F37jAdKrK3GfGtPamRDVrew6LnxkyaZEBTm7SOYxmwARYy2Fx8/wXtPzB999FOKb1F1N4F7dswjM3en56U3J4Hlx6P6fqF58mfHeIbq1g12ZzO8a6DFc7HPJx2FeA9Y4MtO33ZfHCta1q+U3CaB4FEjI07gP2aAdN+ofCvKIG9Vpsl4ijq5x0dQBmSA+hhPid72vE1nm4tE+MGJmqco3GvMTCEIgzB7B5C9XgSU9GdfBH/M81rZbk8EbjLUuvNBPi6YpdO94jMUFMX9Tof8QUgPAFXjfTs/LJl7NU4ps+WhEaIHipiMJ38HDvrOmqwzoti62X5/7qmqIfC0rakKgxqGWJv/wzRyn4+rle2RL4OQ8rJTOTza1PmD X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 4zeC86Bzz9A0StGPOFXjGvEEEsUtyLQbJ6AD7jWFb5StBu6ZDYvDS4YYl/PREVsmvs11QFe+ouzTemR6arLu0uVeWd7cUvgWZVS2UICsb+M9WoGVUoPdQhosbDDIV37HyTNJVlzpfTc31T9xYJdJC5Pf+h5/4PKGkjNbq/3CNdBdyJ9kr6EiqID8FxS3n9UAcvov1+8z9bkDXi5kBtN98Cg7p7s/l7azsPHf2eYgj2K1ZkBLGYRpJLDEhzskJBB5NXH7WXLN+rivcYmRmkhJVN798MZqcuWfCSfQ0N3dY1r5/ZZadF8Ui1tKUKEVNkdKU7ZH43pS8QnP2re+3kkTz/xL8i1/HyD4PDCI9eOKRFx6vq5FNy3bEfXqmiIsW1gZLV6KlV2B4DrwOprfKAVBbG89VLvJtwoMAoM5sjY5SpzajpXkI2zYGmffsRoOePYqolMWijrbOcztRgjPrPBkDRbD4GKsIAg+x980ivJ21w3jd2ElwaLugxbG/I7uL3aqPnt5sNeRlRAipeDhhM6PEM12I7KPEQk/jWlz5D+t6WwR8cLKbgO4rwEkhtA2FUarmzMCWXabjQD9Xic6Wt+jolBEIyLK42gPXSSU130R1YEJOEFraRXei+rXwefx8zbLnSzaYVW+4CyDUMMxP1xh1ZkJsgphLvPXADhPdGlhv7k+rG4vOJI2YML0Sm6ToyBK5YHsKAS+2fdggHXmfPwiEZ6Vh6LLpV7XPHHnBaRBPe+8oz74rupmC7bvLVUNJraaonuwaeaf4T8rj4OPiGu6M1Y3/i1HeCnyz5PJUA8czzXKtvMe4T0MmAmWUcueerEAPCIcVrAeHzQSF/NCsWfNWUtcPSoJpQaLhqwwGbK7p+sQl149c4SpLKGlamw3mUrXwWF/5Vz8Cu02RkqZS4cpuAxKJlN0tqUgL0QepSXgSXGsxgavGUkfLgqqWqFMjquPxPsQ+R0TriskmXJRFHqiWoM21u/WZUmnEieyR/4mcGTJhEc93Qdwd0FqlKaOZq/0i7+2mnvsgR4KCQ/2omp7QhouQI/d1UfIv5b1Hjf1nKdLpeOb/1gcVO9i4Tw51QpvavXIpAx9jc4IZTqdMsRFnjdyTjjp63X6x1ksbJln66utKrQGmyYq6nXmVxeXcjc24loCmxkc61+L7lvVg8bg9tz+a3wqV/BTPCOjwYD852L55LjhVH2pnbXoODynxOiLwwUDrMSCZ9mgxFoBwxhCbyET0FADZmth6hqrIBXA6J1UrjbDS95HbKZzi/ql3UNKAnKu0NR9E87B2Dm9h0GzXw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2cdc3ce4-0867-4a76-363a-08dc4c6e6394 X-MS-Exchange-CrossTenant-AuthSource: GV1P250MB0737.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Mar 2024 01:53:38.2401 (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: AS8P250MB0118 Subject: [FFmpeg-devel] [PATCH 04/10] fftools/ffmpeg_sched: Explicitly return 0 on sch_enc_send() success 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: 3LTnTtQdAL61 Do not return the return value of the last enc_send_to_dst() call, as this would treat the last call differently from the earlier calls; furthermore, sch_enc_send() explicitly documents to always return 0 on success. Signed-off-by: Andreas Rheinhardt --- fftools/ffmpeg_sched.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fftools/ffmpeg_sched.c b/fftools/ffmpeg_sched.c index ec88017e21..30b2355eb6 100644 --- a/fftools/ffmpeg_sched.c +++ b/fftools/ffmpeg_sched.c @@ -2344,15 +2344,13 @@ int sch_enc_send(Scheduler *sch, unsigned enc_idx, AVPacket *pkt) ret = enc_send_to_dst(sch, enc->dst[i], finished, to_send); if (ret < 0) { av_packet_unref(to_send); - if (ret == AVERROR_EOF) { - ret = 0; + if (ret == AVERROR_EOF) continue; - } return ret; } } - return ret; + return 0; } static int enc_done(Scheduler *sch, unsigned enc_idx) From patchwork Mon Mar 25 01:53:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 47411 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:c889:b0:1a3:b6bb:3029 with SMTP id hb9csp930565pzb; Sun, 24 Mar 2024 18:54:02 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXJAu79emnzl8uJz0PeR4TFxNI3gO3UDDGzZz+hZSuIJInHm6i3D4drE1e1geH5rsCUdnEzk7hRm8olatn7V8dZcEmotfg/SZZXmw== X-Google-Smtp-Source: AGHT+IEFbCwHm+TCt6GRXN8BKCKWzH44IO6it9RDBacuOQGL/FuXCNw1cg+a87LzqAkcjPQxHi2c X-Received: by 2002:a17:907:a4b:b0:a4a:8083:9d41 with SMTP id be11-20020a1709070a4b00b00a4a80839d41mr23678ejc.64.1711331641960; Sun, 24 Mar 2024 18:54:01 -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 hp6-20020a1709073e0600b00a48613140b9si735995ejc.718.2024.03.24.18.54.01; Sun, 24 Mar 2024 18:54:01 -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=El4LpdUm; 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 7C44668D430; Mon, 25 Mar 2024 03:53:51 +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-vi1eur04olkn2109.outbound.protection.outlook.com [40.92.75.109]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1AB0B68D41E for ; Mon, 25 Mar 2024 03:53:44 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Hzc3YiT8pb1JUxVUR4JH85ljdEIaFLyz67HFk2fxs0rBicerC5My0PM9Wridnvths54TOfh7RN/NCnGdtjdtfV1Lsal/I2jXUphmiFP8IYnb8WZvgKTA1FXNPFRozNVtYEh1yFJ5X7Om9OTmXLO7l7UjURu+3nNVjyDtH0DcC284qKmHrWBAExXluEUjUJTdeJ/PB83cINgu6G3b6sy30vgSK21uYULUih+MnBF/WO/f6LtBoCtnyjXd6FAisEQX6fRRCIQa4CMCW7KE1QzW5WeIZu/MNJFVPvIURftr+hy37ywdLdmJWotlS6PTdv/s4tDiT8p2YWTmWAuEdHKHRg== 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=zjBRZUJLKyFlwEhCnOh/oau2KMI1Xoka8I5mSiK/+3U=; b=UCH5ZcqSP6IgpvQsjpB317quJMEw4/WlaHnSXxoJJksV0auEt6ksWvmD7v5AlPrHwsfH5E2Gih0fdjRDomHWsm9AJUU5iFJ8LwrIyEMH4pX/37mdjn6FTs3/fgYe2IphU6XYGb/Jk2G6+YkQLYV3Ya4J0+DIb2GzHySEFvWGLiSzyVg6lKgfztcnQd/J1gmuFnvQfL0Xr0sUspR9tdub1h8qGSAVXAMg63S5jJR31hfJIqXU9+jR8L+sdopCMphRUCuAL3X9Fji7LhCUVdVacMc4U09/VYqDMdAbaiN77hMY2Tvo5ZzpdvG6s3UGDKemUjmzzPDH9/wcoiSCyux/Jw== 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=zjBRZUJLKyFlwEhCnOh/oau2KMI1Xoka8I5mSiK/+3U=; b=El4LpdUmFuNnw9iz6lBuMpS4WAJJGW/QYHDWKHU40zZ+GEzsEZ/TWTUVsDrSmBDBPYbh8cjaXWfVLsZvo7YyBG21zdECdMopqzURt5Lf1CroGvtsZqVOE04+g/WNhgACuDJd9RddN82SiB1PrxxutIcPxF5sQfQJwwH73ju4GzeAOfRL12pr4PerCJTBmw4q5EY/KAbAIcEndUAcTXB+kaoMhdhKyngEoR46xvnS3+S1Pv9s21jblHUOFdCX7b+pD8wDNiaJk7YcW3UzWieIy4JhroNw00SVkOerH8BDSqKPDZh4yhvltL8jEmTFiN6O7yRvt6yJ6c3UYBmwTl53Bg== Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) by AS8P250MB0118.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:371::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Mon, 25 Mar 2024 01:53:39 +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; Mon, 25 Mar 2024 01:53:39 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Mon, 25 Mar 2024 02:53:19 +0100 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: X-TMN: [27ICwmpxjkiJYIYus7801J3ODpXSbiA7cZsESmLtI9c=] X-ClientProxiedBy: FR3P281CA0202.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a5::6) To GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) X-Microsoft-Original-Message-ID: <20240325015324.2348789-4-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1P250MB0737:EE_|AS8P250MB0118:EE_ X-MS-Office365-Filtering-Correlation-Id: a91ab16c-8e63-457f-941d-08dc4c6e6434 X-MS-Exchange-SLBlob-MailProps: quCBMN2EvO8nEvIMEUDP6I+v1XzAyT3i44V/i6IBIWWKjZkQZXHfWyNSnfVkGFD7wex4fsng4Kn/9mtcgHeTN+s9a/fHFOi715rKUEBKhGw84wwcpkMBWyaC3KQcwGdVnmnsxx7wsAh+ELh0R5y45blKSreoExIUW2T5/LCY2XF4fJFqFX7Y9kb5t1RRJWdlq5j654dIUiWILER18yWt0q49tcrgBqph6X+RRyyDERzaZn8wawvNnmFXidAqfFx69bl4Zyf8LTkkivl2a/hCaaXrXAbHmxVk6qqU4HwIxRYscLFIYy7GZWEBWuiuDlMgZY++wRI+9y20h0jvgnfHB3xMc4RjTpg22HVFp7F64zch5oSDlMjRT+zuVk6iQuQEPJAvppC7wcrdXRp2DlHDiFw/ZOJtgTO3VFbN1XfAQTXeU0zOYeyyQqujf/PEtD9YxkqJv9jJuUykBUFifb1xHCHgA/jn0L4fFGEAOml1gYyBrmybIhPuSXj4w59rZ+/WRk3+jrFfwWB/nEcDaqsdDSVkNd3PXQ4psTHIhyP/aCyO9lH4z/A4lo7s3m/dN0JxEJoWUpTXlurTGN4v36Fe+plKQUamqunb7dH05drXA6hlanPRm2Q+XZI07D0ffcI509GyStHgRkCisiJJcL29wAMTEJy3y3U1XTN+lMVzNXazPCozUV/qDq5XMwLaWJLllNuP1ci4M4gtiB3E/c8HEw== X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TB1G30rtxUEpYt6rkTTdEzSC9zxZEqJiQIjUhITBG2maBN7HJm+kIdloDLDIcm8lDU39Zhri1vmz2z5fIvrsq7ATaTKKTJ0KisLc/n2diR8W0n7Y1r8/KBXfLv3xmogjXu46lXaHCbOJID3tnZkmqsJld/2kIUi2wSuZMekTrEwHrNVy9/aLqgbp3HDP8rdkSGVWWTE4MzohEU+TWtJEypygQmK5KN9wTcapXNZhFqA997HgumvW+mXJy3JpkzkRezQSdyPkMjuBY+FTE9ciP2ZOH+LPMwcP/Vu2G1lfl9S+mvql63HNFviFzlh997Hld9/3rD3iv0pDz9w/PjRff7ixxCT7MBG48RcXEcVgcn5kZyMf9uZTrFFbvYIIjLOwA0PyTXrqq7onIXKnQZYW0TngoOyZ7jE64g3wJUrgHESa47gUMlHtech/E4gb4h23vbWDlWl4E2gF3sjHhCcso1+JZ0MeChwOG4+j3a55icgEXQs8fT7QGu9WPa+8PUCCrW2Zj9P5DBEnhDlma3VPzTPBV0pmf3og9KU2ItnHAUnyLULBkAZ4wMdT78ZCQBEN8HUMl+ZtRxza23H8sDLzp3Pn2cQ7WrWX7aKwNswUbzRzeLMaBSCDD5//I+L6AeA6 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: bqYHrjVscH3Qw1sfZ+owUtzLBvaMhLDqqWNpWeHJmkPbyJ6a3EwM/WssZ9lWYJwrC9QvITpqyvZyCmvY9RbDZ/lr3b+PO6C/T7SqNtO9etChJGQSfkTvL6yWzQNmBep9X7VDFUMpLtrTVdrERMsDMaeH3ZbFmYVM1pLy5tDAzyRaMT4y3OoMzK/L4gmIDkjyoHMLNyHT6w972AnllvIBLI1eVdtu71tPJV6HvS78RvnA91jWvsjCcC8TKaBBiwdPLEGY+yhliZ87zLdrCLQZVoTPDbcahMI8JJNwpUHV7iHJf2xmA3Se1q8ybXiJMOFCtyZgTUpYqoV9PxDZXosy0eP+B3dm/jPnww5z09ySTNaZNAa/Txk250CsI/k7/W9ve/FEZgej+ZJTs0Dkhrdf2TDsAI0s8KCpnnm7fPxNtSEZignEYiLTnNb5gCy8Gt/wKVbQ31Bg4irCtMgb2YiqyeA0mCp602BIf+E+wthdKhXll7DcJTju/KCPXJIQZ54aPiOTh/ETzkG2H8481PoaD82Z7CMYN4PEOcbNa+tzgSGTZlvs3qVLHWw+tPkl2mEkjWefVspYjvgA2BtR4EF1IjFl2iYCujqSqFunywrAoQiDJe9FAeIhNxU2gTmbeKYk+13jxf7Cjswp91iGhQEBi8evy6e/5m8Vt/5TjBf/ZZDarAVr7CtpOTq3ef42u/6HQtL6gy2bvHIGn+t82iCu9AZyXT85K262Vc6+gQXmKodv0tOBSUWQ7IWLw2vWcdL9O87z/p3DBtgfnAxLCt3mww2EVG6HMQY8/n5ULp437zicVXhHkMLg1xK8ti77g7inYsZ1hHeIkp6l2v7Ue60sS0nKu9cYAdebqQ+mOvuKQGA/nngpYa9akss0bESOUq7OK6wCpiGxRvGCHwEZG5uC2aRU5rjEpbFXjQ1a5g+QCLHO53szjKGnehpBkHwaOWGYl4lIjg9lViTb0iD9r5wG6uW/dMCvje6OilFxa1d0/l943rLMNoQQple7N2O6f420qAxea3gV85IGbBzB5l4uvjCCYKZULQwCZsS6bJ/EWhWnztIKI/MhqUh4LtVrG5pXyhl/Flh5GENWcTE2u0InCsccB9d1IFOC7EXPk8Mejm+VGhkzRAlRg0spLh+0H5jpVp3SMySTLIFyxsCy/xdKBLjCPXNR5Lu7g2tiYKmrxAD2Tkn4qUnJiebsUR7jSw25qqRy8+8Z7uAZqeIj5FCBcDS0kbJVUH0R/NY0009shAYtwvVrlhJjWxBWeH6rIQew+y5IgPsfrAb2lPKmsi6ecQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a91ab16c-8e63-457f-941d-08dc4c6e6434 X-MS-Exchange-CrossTenant-AuthSource: GV1P250MB0737.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Mar 2024 01:53:39.2999 (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: AS8P250MB0118 Subject: [FFmpeg-devel] [PATCH 05/10] avcodec/wmaprodec: Explicitly return 0 on success 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: dTu0poj7lBDK Signed-off-by: Andreas Rheinhardt --- libavcodec/wmaprodec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/wmaprodec.c b/libavcodec/wmaprodec.c index 2afdcb2b52..a6c4a75632 100644 --- a/libavcodec/wmaprodec.c +++ b/libavcodec/wmaprodec.c @@ -2024,7 +2024,7 @@ static av_cold int xma_decode_init(AVCodecContext *avctx) return AVERROR(ENOMEM); } - return ret; + return 0; } static av_cold int xma_decode_end(AVCodecContext *avctx) From patchwork Mon Mar 25 01:53:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 47417 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:c889:b0:1a3:b6bb:3029 with SMTP id hb9csp930816pzb; Sun, 24 Mar 2024 18:55:02 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCW0jy5icc8KZWg+fAJQ4/PeW61dTb/ITzjEeYvadzD6JHVmTdSNIljR1gMCoA/WDVW9eUMOu3dcuB/e7gFKp5B5p9cbY115i3/hCA== X-Google-Smtp-Source: AGHT+IG39tnGZa1argDcWRTIrcaF/u3APfZ+rSVQYMXL/K8qVhKiG7MMzwdxBTAopWJ3AazK4Hf9 X-Received: by 2002:a17:907:9716:b0:a47:4f67:7085 with SMTP id jg22-20020a170907971600b00a474f677085mr2367309ejc.1.1711331702479; Sun, 24 Mar 2024 18:55: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 g3-20020a1709063b0300b00a46a6459f50si2052373ejf.783.2024.03.24.18.55.02; Sun, 24 Mar 2024 18:55: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=NK0uLtki; 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 63CA268D4C3; Mon, 25 Mar 2024 03:54:01 +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-vi1eur04olkn2070.outbound.protection.outlook.com [40.92.75.70]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D70CE68D33F for ; Mon, 25 Mar 2024 03:53:49 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D3GutrElmPkdquCeTKy5ESTrrs0EBAEbFZKCJI+3r/vfBN72jLmi+N0UoHeGrTOUgYsrPj7AO4V2RMQZ+pkLKcsBy7g7lP/2pavzTQAFpvkblPjtqya9h/vAv0ceif9mGfRC/00CqrJ/IpApyTx2itGTkM1NL0mwnDI7xiA+POB+Q1cEzajPkRjAq3QMF62oUetPmgud/S1F/CjY8ZT7xrsnxZPpTB7NXcOxeKbcqt4VJ77bxlVqAUyZ/b71XAq4yEo07D3Agghxb+ihPVejFk/YbXsxASXBXFkoT/ZkPYIyvBuTQCbIU8AwFPYT2qjFtfYLCJhMo2NM9ivGgvaTTg== 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=m7OVczz6ePek7nhUSjD9cZAm+mRgGwJPTkKNhtJVYEE=; b=PdWbBhslyfy7oxnOFQmgyhPac9wQkkQ4wMQPk7gPPuBLEIwXYY9YJAjRbBbzgd+K+KetxXOhCtuDe7bBsNLsCcx2nipPdYUeftM1ygE0LEyAcu2WDE3Bcy3HOcb1Zs+yA2XLgOw3pp0feivuTFYpT074g7je/z8L3OECF19tPP1eKvZzKT3hAzG8uMiC7vPn1/aFZYl4Pon20kgHEGnJUIX6sMDjWn4m1Qrc+o0GdiTz/ST/HNStJJw8PdRH1EPEMjbcqizBcK/ODagcEtANP5MIt7+1uBvjmszra51Jd9Et78h2sPQNVAsyVlkOchueGRf1e5M3959qtuVbEXo3aA== 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=m7OVczz6ePek7nhUSjD9cZAm+mRgGwJPTkKNhtJVYEE=; b=NK0uLtkio6w975lz0nSOa+wmzkzhS6sxFD96FjpA7vnfcMAfqTgRc7/X8d6Vh65PstsCaylUxybNYOBTmPqGG6ZFcSfFeC9di7Ve8G81nLJpgtFxdYJQY323OBtgp66yBa53P5Zl1YJnrWNlCMsISlOo61lQVJI8fbxUFQNr67E+A4btjFpRGeBFjwZrOpA4M6TlScKG0KE6jFEejOr3HBChJWFZenlukW3hZD5vhvfxym7G6jdOMZdrOq0hS8E8kUNf/4siPH+3g/fAKcpCeoJUp2+vR43r4b2hpQYaajXB7v34pxh3ufcSAdQb1nEWzYggCyVgdhKBhSA5q1H/oQ== Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) by AS8P250MB0118.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:371::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Mon, 25 Mar 2024 01:53:40 +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; Mon, 25 Mar 2024 01:53:40 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Mon, 25 Mar 2024 02:53:20 +0100 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: X-TMN: [VY767E7UxrD++DEda21Ni5CR0oHc+tQPQ8x1YFKtrHo=] X-ClientProxiedBy: FR3P281CA0202.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a5::6) To GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) X-Microsoft-Original-Message-ID: <20240325015324.2348789-5-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1P250MB0737:EE_|AS8P250MB0118:EE_ X-MS-Office365-Filtering-Correlation-Id: 3f9379d7-53b3-47a0-8a09-08dc4c6e64c5 X-MS-Exchange-SLBlob-MailProps: quCBMN2EvO8nEvIMEUDP6I+v1XzAyT3i44V/i6IBIWWKjZkQZXHfW/J1878ha84BwrMOO79X9A+ifP090XVxAbcjJ34JiyPqwFq/Bopiz5MMXn/EZjM7RB6j2LnygdQlvb7YzDvUP2rd9TX+2CRdYqmsl9/G3nWv3ynja+nbuOfaPaVkeq/2iYamBfIrsBnprB5SBMB73NNYY3aJIJiEPR4GSvhsBWbxO+W7hEr85IWHeIN8NRPuwEN2eZZ4BpoNZl3HomzIRt9hzUcgVrjwo+rxrFSb9J2KVMz9je5qLO2sojzu8smIP4Xsa/VaMIFImIR/uC8kAIvxD9uV9g/QDfnb0fDH9f8LtlagODldv4Aet+WY/fnDtlAbdT89Tpfx3zdhU2gmB/blG+QiDqelwy514Wut7r2AlQCCdQ81MhYQh7ILItQyDb1DSpajUXBA/qcndgOcswzAEQrsMOMtm3kFJe1eVj0up6y+QdpRCwDRxpjNxoe77z5P4bbALfatSbYjK0YmizOcDQecuVmHLwl1QhT97DJKaKZOBdO+Hb1eaN8yb1pGIAvf3LV0HtTweWGNs1ZSRUib5C0NAi4kpUL4g9z9+fm1i2HOxhLuOWh8YFUftOz5P9NLQ4bsVAo2x4PMFltXHEm6OZQywaEC/P7G3ZfnRC+EN5kbUbnw8Ghc2ncUCcXBXSmI/JN3RK6UamAcUZM9QsjO635I66yypQ== X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xIEB+aLYcvnLw7JC27pWJFnFWodJ8j1CcTBgTIpZJAs88L29MDntwIJgzk6oiokdFJFdCMwCL7Yft69E9FjgPeFVAUjZcBXhOZF4jo1KZ9t79E48UYwzJ72gm8wutw9IF//vAydjGBsS1KYi3Yj363+9eHy/UlNPlFuIrzurRE/OYMle/ySJojtjb89KD30iQa9GXdZfO30Am4bfbl1LfYoVZeQ030flQap1MapCLXt8P9Qrk14mRwnwK7MlKiWh70mq6pJqZCb9E0VOuK6Mm3BqigqSvPx19fFVWwPU1ezM6NW6QA79eQHiV1zPSBOAvB2w/3DbuXAetHzTk1x/Fmu6akgIp3iWcx0u6iwhfi7RN78yVqAsKNK5iA+XXBzbc+krsdqQriMBpOAi0FxJP/Fb0V3liokL9SyiopoGRtOr8P6un60aA61biX3xXciATcNjOlYVf2rBUUCCWtcdoyY7LLgLW3Lj7ulxnNdL2QdTkvwwcGFYBZAki/6a7s+oqCtdl7a3jNiPa3/BCEP8afv/855l7dkutjZCl5r1UtnjuMMwDkkSBBQiOgXZTXsM7P/NkXwKEwijNDUsNz+lTBGNGq543Zj0vwimZI9o0bxnf+LwsE7EUm2hDzbllND1 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: So0ovtMWCmLXCznWiP7uSytMBCnyWnraSLajUcPxVhqE0U2rIXTnW1FYifvO4wH9GEhPJejfDWyVe3fc0vqrx/wF6eZa0oMtaKCQFgX+qbMAZGofURqYeQDRxpVKrijQauT6Fanhe5bsasmpCbxCZtmThYLhySPqOtmAjN5YkSAVsztO8tPQJfGCsIPb2YRaGZVU84itKCJveXK1FUmfOcRgEhKksriBSMkh+tTUaTZkwwhQATXwhUgfihOJWOX4tQ68ubl8gsBirgC20dByN+fURoUXTnqt6LfoNkUg50EAodJMeUnED3VFXTx/yAKpWix40JA2CJWyxbZTGWPuaxJ1Qx1R5XX+uf8HnODpMJHaXe6QRw9Oz2AlJPJONOPbucXaD0XbQ7ojyXUc7tbTmCWmRcFEoF51SoqKNDls8RsSIHH01CkOXdbSPIcFrPFf3J8uEM/vS38wcGEBpnmiFEgFLLmQP1zEF8VikVy/CPv3A4jFzy2DDezwXEcglpU4ssjQVjw8gRpYt4qjeh5KybXwv7Xb4FslceujTu7gTOvqJBxv4xRJmTtljQfT3KFqHj9+h5ribr2wVJREWMU0ONtWQ6cjFU7NlrugRhsC5hW5PVdpySI41Sl4ys4UNe+KMB4EngK+0ks7yfyZ2Wwu66PkgITj2eiQ4GgKabmXz4DKJ1WoSwCpTLh8ZlrcIvwFg82T9G9rYf1Wqyd4nKWXnalZ3NZbWhgC8+LvCiuqIf9lx/ghr6xXzNUxaRX+NAX6vsd3aLI9/vzLa/dutXL7ZubZPuKsGFu3fTPgE+lMG3K+KNxDM0UDBwzNVFITIVBzX9bb90d6t44PztTrWMzB8x7Azw57DSaYAXJgKOGg91KgCcTiapDtkCTSM5ibPv0oBXCQp3mkF+Jl/uQ24bvg4XiuuBDYdCF+JGttRpJgH33xZJNUc5kUyKZ2G4Pt8xstt/Umj6IJBd4J+SkeDqWv8nCJoNm7MoRNgmx3uRhxYekqDcVNfEJAo2TFFoVuFROYp0so8XWhe6DDzTPqp05dSs8bd3djZgEKmteliIVnitNOvS0MHiatGoqr2LG+6N/0mD68k9hEia7kpVIouyRkGvmnv0viGxnKAL95tSIlunHt0dYDteJeERiM3gd3bJ2OgdfcgLJtuaqB8cNuotHHZUZyG71uNbZ81OJTgf8To6LhCgbzTD23RE7sXZ229OQ8R3pbCgxrr0YmF1bNxPTcKHlMWtc2t5hYE4pqe5nsgrkGPIBnCq9B3UrhgOWFzU9nXUai994t6xrb+JDVfdXsuw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3f9379d7-53b3-47a0-8a09-08dc4c6e64c5 X-MS-Exchange-CrossTenant-AuthSource: GV1P250MB0737.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Mar 2024 01:53:40.2364 (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: AS8P250MB0118 Subject: [FFmpeg-devel] [PATCH 06/10] avcodec/ratecontrol: Avoid function pointer casts 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: x2VkX31hLTuP It is undefined behaviour to call a function with a different signature for the call than the actual function signature; there are no exceptions for void* and RateControlEntry*. Signed-off-by: Andreas Rheinhardt --- libavcodec/ratecontrol.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/libavcodec/ratecontrol.c b/libavcodec/ratecontrol.c index 1e861e20c1..1ff209c00b 100644 --- a/libavcodec/ratecontrol.c +++ b/libavcodec/ratecontrol.c @@ -79,6 +79,11 @@ static inline double qp2bits(RateControlEntry *rce, double qp) return rce->qscale * (double)(rce->i_tex_bits + rce->p_tex_bits + 1) / qp; } +static double qp2bits_cb(void *rce, double qp) +{ + return qp2bits(rce, qp); +} + static inline double bits2qp(RateControlEntry *rce, double bits) { if (bits < 0.9) { @@ -87,6 +92,11 @@ static inline double bits2qp(RateControlEntry *rce, double bits) return rce->qscale * (double)(rce->i_tex_bits + rce->p_tex_bits + 1) / bits; } +static double bits2qp_cb(void *rce, double qp) +{ + return bits2qp(rce, qp); +} + static double get_diff_limited_q(MpegEncContext *s, RateControlEntry *rce, double q) { RateControlContext *rcc = &s->rc_context; @@ -507,8 +517,8 @@ av_cold int ff_rate_control_init(MpegEncContext *s) NULL }; static double (* const func1[])(void *, double) = { - (double (*)(void *, double)) bits2qp, - (double (*)(void *, double)) qp2bits, + bits2qp_cb, + qp2bits_cb, NULL }; static const char * const func1_names[] = { From patchwork Mon Mar 25 01:53:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 47412 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:c889:b0:1a3:b6bb:3029 with SMTP id hb9csp930608pzb; Sun, 24 Mar 2024 18:54:10 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXWxT6CwQNKGHhhbhpdLl41eICpx/PNZtV7s/LA9VKklNvgVr2JruxXmwYD1ah2MMJeEirUdPzF9U28LD4KxfIYtnFQu81m3JHP/A== X-Google-Smtp-Source: AGHT+IH2ceFhsjVZj6Sl8TEPSgofW5O/HFl2m6k/QQ/8oayqjdhd6IlaHH3clhWRHUJ2iqWjLS3h X-Received: by 2002:a17:906:39cc:b0:a47:969:410b with SMTP id i12-20020a17090639cc00b00a470969410bmr3744375eje.6.1711331650346; Sun, 24 Mar 2024 18:54:10 -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 z18-20020a170906075200b00a46bcf2e1a8si1998501ejb.240.2024.03.24.18.54.09; Sun, 24 Mar 2024 18:54:10 -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=Vl3OZcaG; 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 9FAB868D413; Mon, 25 Mar 2024 03:53:55 +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-vi1eur04olkn2109.outbound.protection.outlook.com [40.92.75.109]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 325B768D33F for ; Mon, 25 Mar 2024 03:53:49 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B9PNfOU/BgA2RDA6IqMWGsNePulPDZoP815Iaz6XunzVXRiUlDCP1prj4hAZ7oUSlbHJPMp8gt721JGMuPd93EOcwqc5WjPUXE2saY3uB+f0vJVbLE4X/Z6N6s0dwjZKgv2dO17HRVmAcPotXlNnZNRzPl+vgBpJSwmHEbTICktbYT0uySbpTWrx04fjRZfUYcU6zsmU/0mCIBK9N95m4Vy5uDYkZhRbO9uElBo4NBu21h6iNhjeaeiZ3ZrXLOZe74mwokhcIp5O6+Td2Mz1xJq714dS4Am1a8qbUFogQiL+ETauka0QrryxkBphWBfQX9p17x5jgr5Mauc1oDsg4A== 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=E1yY+1CErCl/80n+2Z8N5rgmsyHwDzNV+ZnerGbSilE=; b=eKL28hcFrdHqpNy6MlSrKqdpFzpUwwr+LzQuc8szYGci/MzeOoEzxlmKmQCYCTC9AqdYo4iqEa/067Yu6285RRxhQqReDqQgTrrfDEWf4ipCU5ZjX9MygghLUzWG46tC7jq1QhZkLEGho59TAjuuxZ0mYQ89xvUc+fpnzYK3mw/XBEee4aFWts2V/dppcz9Y/mZN20RvQmajrNCheNvwbE0G1F0ty60wlz4WQPajNeiMnfauC0t+RNnaRC6ys9ZyOVdDNNAELenyGv7CHGJhq4QgMtFM4NnF2QbGJZcBrcLuHr+p+bJaJ927vnls5IGH9CfqFAsUq0sVIZtoQfMd1g== 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=E1yY+1CErCl/80n+2Z8N5rgmsyHwDzNV+ZnerGbSilE=; b=Vl3OZcaGFKMjVe8Oak9FWtrwqfIhjObr6pWBc2xUcVUQn+pN+lP+vJ7HxqGTsw9OF+gbLs42DjR/lDZmcGdqRy/2HEZSP1ZWPNVsUZFPTiPPn62jOh0ciSNUsaLONZZZrr7l+hl8MdJpSIUh9OQdUBhJQnF2Wi1GG9snj9a3zrLlYK1+AS0LzIdCyXHkpmo0+65UQv/T0HDZSre+MAA4gQAPuXoir+g0VZ8R3JkK+vzzM0BfnY53uekSFSWYCxnetySX0bwVBHizyoEAD+0n/EI9PDp9/RTMOTplVqFp8N3zmKQl2vEzuFnTyeQJl0Mo6lfK0T9Y6WaI2EqA3qqbwg== Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) by AS8P250MB0118.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:371::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Mon, 25 Mar 2024 01:53:41 +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; Mon, 25 Mar 2024 01:53:41 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Mon, 25 Mar 2024 02:53:21 +0100 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: X-TMN: [ibhnzZ/MAHsN1dj52fKk/F4F/MlBuxHBdagmufNHyvk=] X-ClientProxiedBy: FR3P281CA0202.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a5::6) To GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) X-Microsoft-Original-Message-ID: <20240325015324.2348789-6-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1P250MB0737:EE_|AS8P250MB0118:EE_ X-MS-Office365-Filtering-Correlation-Id: 00e30c0c-f5a3-4e11-272e-08dc4c6e656c X-MS-Exchange-SLBlob-MailProps: 9IecXKUgicBMjzDtAlr46x5HKEJiZ0RbnU5bTaDYtPKHlvEZlw2NMkKFibeameN5jk0N98aAoGTlkqcvjKUd1LQqycx/x3w2+XwN9fN+0UT3CNPrP5wGVLpYAEc84hcveexxZdludijwTZm7dFv71yoVn8lkixeYb3oLQTTnm4J47omOx9f051xF2Sw2MciqsrnEEJzOzWBh+bHD5VGXPfBplbJryDExPwI6HhTRR70JMlT4NDZPsSjG2wT2OQ+96tGHuJ8Kpqwynq3lqBHIDOVe7jwD5h5AviGMBXWrhRc7sWYwTyhdnJBBeyUEf6iy6sHlkBT5fEq5mj/0HuZj6Iwp6NbhWvv4zz4+SUflIOd8TIsBqweshbmgTVffQ+qsMJb+EOJ6wcxlatCuNwXRr+y/2+5i5D385VByle0rES5WXTyFIknoxyNPYDRCn5YdLbIiZZM+ZPlbcvYoOjQb7wfkBpKzLqFpnnkGWdtGqtCtYOjTsU9paV1yHppQ04qlSsJJg040lCRZzqiVTQMzlqnIogRZdbQgGq5VkBTCAE1iF0bJ/jgIKw/I2FV6ux9qzCVHls5EzjaPm3fAhG9VAZZwmBr8dA0gWQ8WYWMKUq4F2hjLxO0M0rmBpLKtpE+8BnpIQScItJTQewaRzpMn0zPS5pCEbTtJtEb/aetN104qaR6X7T3uZSdAxc5iTunKZnIU37wfc3EeLsYVfdcYUOjRziesTlg/sV0SWjgzMPIxeZOeJdpPDw== X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hEgMQdO7sYXo3sXaSbRVXhV3aZB/9KQs0I+JkO49qUna+PttG1zVUc816XFot9IJj9AY9C3prUry6s2q3DSBN8oLpKPOnw3blJ0ZcRRzrwg+UQnxV1nsBLXxhGoeNgUpWNy1oBr+yNOfuJo0v/X3Xuby7YYfsuU2mViuOK8U3hd5z/ABru8O+h6bKxfxf2ZGPDGCiCDO72S0EGX7/V8vM+M+k5EwkTseB4Vvfl4dRoCoGgNdSSbwbf5BRMs4YviOK38Zqk6kr2WB+MEqFgBeEXL/C5kZu5ht096BSICvmipiFbkJ43zXCKE/fQLD0qPLdnYJ8+xz24AjbEBaG+k+q4Ry1ejDlMN2qDwl/EtEPCdim1M2t7MEidGD4GFMzqZ4Ohmrp9cnqQF/a7G3UIvp8TZUTB26QQblofbB0bC35QaV2TUZY53gxQHsogKzqqahhn7bdmL66XKSxt6YvCEKsI0GSqh1n3TL7S5qOijh7BUMKOrAfINnsBiPUPg8NYIqMZ35PpQO6pz+32zhgMiCEEGqtIlqySqpnymdTAAlsC+kgp1rFZuNdbHBfLAXcV2s1wSINOuCXs0IPHqTmUA3SpXzAI0DwvX2Gvsf2WNKRu8B/OkHq4NojQ8hFOXM0Qac X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: U/Mz6eibz/oOi9ylSbhh5aeWUvQbvE53NMMEHYo/KiDU6fGO7kSitFtjRluOUBJ+tu5Zoi6sORAR4ODv7wNkZ0QqC464WdQ7Z8KdyjRCfTE/xn9Of4vxU6ZvIplUf5mksbjiaE2lDl77/zEQGEUvh04LYJSvlKl+jSrbgN5COSf+Glj+p2Oxasl30jvSMvfAxV017YUe2Axo1OXp+uVfj4hVZu1Q8HOlczsAQ1tmFscKAjjEvGIfhOzNP1K6XHQodKZ5EXmXoyq3s5rMUfCfRoUyVTQkQbHkuBlTSa3+Qn9w5V2/DzYN6kKd8aBFFNNtHV1+kXPlRcs/NoumRpGWFlScxE7JaB56QyTnkk0CWei15DYJcB+K8gHe/J3MSeOsJSxrlS6lc4QMiZjjBvyMFmSZKDrYjCSbxPk8KfbBZXZqdsmVz8JQwzLdGLCEgA3aC3oIgxNo/u0+XPXXF6tp93/N1LVK0BIKx2OledKXdwpUXkKmhDh9mmHHAWwn1Q6mYHj3PP0Yk5yAOmYgwjERCziz77nnbFqiw1Xi3NYkDWg1C4nViblUNHK6/uzumsmN9lE9oWfELihVz/6rNOMSGcghABC0a9eisNgQEMRNsVVfSznHcQXxS/h3J7k5gaqR+GPaWbN58SFuI8O8Ey/rsoA69hRroJMnWXL5gkIMxfY0ealrfF+N+3aFaLwbJjK98INbPOgWuUIfz+5J9OYsI4PfcE2VKeoF5Nw1KqrmfOSVCH3L5J15WSIPGwheK77xo4cmZPhUZyat0NpX1dLqQ/mH0o0gqYmeXEsUyXgTIVD06GusKpb5Tl0HTNFqtzrG68LOmRzwrzlCId/6nNHhdr++NnP6CjifK64yY6fb+UlnZMR0yN8U9exPNho8Q4A4XNDV4/K71U85Lqu3hdEimWK/i+nEOBG4qqxTJT7dwAvJGfiaBqGvm/n3TyfqdLu28YGu9C4h6nLwZV1sFnUJxOQUGhFq4rXid/uOTPjGo7NZfkg58zJYsJbt6Gvn4NwjgKOMUnShpUPQGkWoPrm19CUDibiJ+kVnM/qXGWykpR3kMeWRhobabiC5mleQLfOj6geoYnjy0vx5CYrFzpMikFZz1LtN60wyLyK2ENIW7TM8ymQQgaintCruEwfIifECd8cikdu9WnkWMcycTRYzba9BqxDc+gG+b10wUNU9v/+MnyXdbZXiwLY+edQ2XaLkXIDp9hA4sN0oatgnq3VES0pxmLCMcQL7x88Q8ZdElVnIKB2Fv1WU4EbB9dsStsUYDYwsFaQR0lY6ruHhWaKJfQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 00e30c0c-f5a3-4e11-272e-08dc4c6e656c X-MS-Exchange-CrossTenant-AuthSource: GV1P250MB0737.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Mar 2024 01:53:41.3412 (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: AS8P250MB0118 Subject: [FFmpeg-devel] [PATCH 07/10] avcodec/bfi: Remove unused AVCodecContext* from context 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: tIeObpn06nOK Signed-off-by: Andreas Rheinhardt --- libavcodec/bfi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavcodec/bfi.c b/libavcodec/bfi.c index a7dd29a4e8..58158f6eee 100644 --- a/libavcodec/bfi.c +++ b/libavcodec/bfi.c @@ -33,7 +33,6 @@ #include "decode.h" typedef struct BFIContext { - AVCodecContext *avctx; uint8_t *dst; uint32_t pal[256]; } BFIContext; From patchwork Mon Mar 25 01:53:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 47413 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:c889:b0:1a3:b6bb:3029 with SMTP id hb9csp930633pzb; Sun, 24 Mar 2024 18:54:18 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWWolaDyPgXYS5gCg5Ywb+uwa4WCrimUXtTAqiTW5I9bbogGjyxVnqAdRRstQqvcFmuD3CMejZN3EmPogcIHyempTDBD0dv5ZU+OA== X-Google-Smtp-Source: AGHT+IFVLfQki73HKSP8kEWGPppH9MeBwPkE144oGc9cq8uMnze36y0udD43iTPWB+61ZYiLjg9E X-Received: by 2002:a17:906:1986:b0:a46:6fe4:af27 with SMTP id g6-20020a170906198600b00a466fe4af27mr3540299ejd.24.1711331658696; Sun, 24 Mar 2024 18:54:18 -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 j18-20020a1709062a1200b00a4750a73a08si1071222eje.628.2024.03.24.18.54.18; Sun, 24 Mar 2024 18:54:18 -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="h+/CfCae"; 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 CF26F68D33F; Mon, 25 Mar 2024 03:53:56 +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-vi1eur04olkn2109.outbound.protection.outlook.com [40.92.75.109]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 6E29768D33F for ; Mon, 25 Mar 2024 03:53:54 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eYt2ieIZ6FTI6sVRJwDq77wNgJHDwomiQOWg5ou1ndSO0lMtVPRMcttTOvIW9uOF6C87aL8RKkYqqw8xL7vpXkpyzuXu7E6iO2831CJVilgBrsMmWYc75UjYi1orzsB7ZDEJf34GeLoyESHQvr99AomWIcL81y9CQGzrRTmyD1NwlgPhDNrK8nsZKr5cHSHTtOxDBqyOZsPZs1wgaJ9MF+LASHw1xWKfsL/0OyahRgvoK5NTpYppCY0E5Paq62NM1uJnkPP1jgJm4jp5o/llaNw7uaTrDVpQy+p8/qV+P1tgm14QKB7A5UG1xr4xSThSD5fozPok7LZBM4resF5iKQ== 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=fdeGuDqgSSTj2b2wW3Wnoilh9JaBfkPrG9Uxg4qSMGc=; b=l7lfLSBsm/h3YWQbNOsYqmP99+s6abeWFOA/wG8yCog62JhcpJJ7J7c5m3JmHk4RZCjE+A8kh1U9641K30rm3VJm290tNOJDNYCN83R4jFlz0Bndn8KJvP1pWppY7VBvP+r7xbzLgjnv86n0AaeL3pkmjgneH3mwN9tI46auepcIbXE9Wo5Sb94sC3OpT7y2Kn6S1isN63nT5iCELNsEkFircVzO2yEKUCG7ydjeWWHWLB6bYWQJrLmWYhTOCnZK32f+fRFj+YpEPsquvhH+/jWXzr/2Y48/qqeYFAAtGmKsD/UJQ+EN/LJ2YtDCt6mqlCbHcksL5vXHthLmNyURNg== 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=fdeGuDqgSSTj2b2wW3Wnoilh9JaBfkPrG9Uxg4qSMGc=; b=h+/CfCae1uaF8I7CQbuKhgNJrE1MXMWz6GLG4kU/uRUftd7Pdp8bpxaUo4wT3oSqaByKIC9ue4JaFPTrXr/cEUJnymRtVLmEopKJVZcVWNKnQfKQM6JBCy7oP9WDixZY8n9jGNaxO46MmrBpVXAyD1Uy8Tn85eYmEhDHfOgXzphdhAaZ8DooDmY9vXRYzPy4q/pCZ+ZS9pzJPV76QZ1MjEdfDm4RiS7/8JsH9XaBwDx6EHaUdyBrV7DuZWeHMgxu7/43MbrJJkCn6GfVxd8rCHIFQ3YVC4P1zWqIo+JVJJGI/DTICoythX5OshbC/XSjJpqrLmeFAJN7UI7YqbYshA== Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) by AS8P250MB0118.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:371::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Mon, 25 Mar 2024 01:53:42 +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; Mon, 25 Mar 2024 01:53:42 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Mon, 25 Mar 2024 02:53:22 +0100 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: X-TMN: [L/WZ9lHz/TYooZStR7gqQMySjgcvBJl8z/JfXxGOCao=] X-ClientProxiedBy: FR3P281CA0202.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a5::6) To GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) X-Microsoft-Original-Message-ID: <20240325015324.2348789-7-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1P250MB0737:EE_|AS8P250MB0118:EE_ X-MS-Office365-Filtering-Correlation-Id: 35ff8405-e300-4e5a-492d-08dc4c6e65fe X-MS-Exchange-SLBlob-MailProps: Cq7lScuPrnqkjmXb1vlddM5aSa/Epk3A5WuAwFBMvEYcpmxqzN82aetg4qh4huxRuWzblt/pqgCV3FwatKtRUmDV/J0DDojBil3XHfgnYfqv2/fLYKkqTtEr94ML6v1qdeAjzJHp9ilJrHc6FhFtqMa4oZ33eKC73fC2N3LoGpC+9UykBW5iIMkd+KWay6uBrXHaHYhQt3al2NPC8maab3QIjtjAallQsbC0Lg7822ESKwgfvaw90VxjhUtWYCqYGnHCEToNZ3brp99kjaGsPqsz7rk/p9wwOpWYcNSvqfBH4IJcbvlxXjbUkaiSFUi7xU2GGCb6/zqYglcslFTISgE/tnvblvoefaEcffodIYqvfnNtJWUVdxfpfpHSoQizvnl7Rfcf0+E7EtGKEjpxNPamctrnNqFeFpfceR1vM8EwVJJZlkRDSwqBHlMYaVMo5LmCTHDg1CJQWNnejO59O+F0pJCL3ZsRF0u3XmflvFROOOgz3uLVSQcc8D/rPLW0Inotw/CGY7TFcyVNrMPMFGEUJ3h8FDbT0yDwuzpCOwwHWSvnJRL8Eunx3QvIX0wSUJV/C2yEtZJfaRZ8jai1zfv7aUt3kwODAydD5SoK2nYJpymJ19W9hmHdSRfTlDNZ3J38ExA7j9Dy2Zxb3dCq6j2t70wrvEJh/8HD1ExA0D9caYyHGly89Xii5rPj1bPZiMiA7f/tAYvXxulSaIdoC25lKwVuo05CGkfc66zPm1yWChuVWMgKZ4CNKhco2ifftewr2qGcynM= X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MAbgNMuQmsguCflOfqQ0hkSOcK7+olifQKKEvOihzLn9O9wmxe6YcamRK+NwARnh90l5GidOGfBz7qlmIW6MirVHi+NmViwM4pMi6NB8hqqwXzc/TjgFojzKOPq+VbZW7wmxrkjbGijeUe2pXkNNPuU9PSoi2U/DwGrtGhPaLojuNNaUWnZ+Jca77rGKCXswDK3jjUwmbOPbGukpBwpcP5ctua3Ofk4Etfc3LB1dEyh2WdFoyVYAY2ajRYb5A54gT7RNlBE3V47a//oY5GrJ2/3TvGTFIjOyzY8Ua9qLyJgAiPmb26XMXX9qbiAe68dsPWyfSOQ0IVQ5+nOGPTLkx4C5hgnqn+qILgOtbmJKwFJEXOcMmB+ovHFddcY2VEa23cUjT0B71HengbSrmpKmxZf3wQ69Q8lgOrwfvbGLm9YqQCenVFWZrMVo6R1VhsChJQV416uB5ohn6docAN5UAKbqxhXEsGbdIA71tFUANZKwi5DrMqd+ejrLCIdKBJEvx0C/JTV+iVOY3vBMn7jHA0hL1ZEPsCcziX27rCxeTLWWiHQC24ZCVTXzIV8KeJn6tyaQcUPrphxSjKMikZs3xYXuE8jOzu6Jq15fHIScwrp8i2MHdpFFlX/21ceB9pPy X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: NlGwtOxnCa/HFFVJsDetTHvNloYoGxKhk9YRIbAc66xQyiLxCHf/o2h0IQuCli03KDlgt1EP8eGR3sHkBsZG5HLmeYSwI+zZBQDjF2aJqF1IwN5EN4ZyfYYjPQw6q6DpokpzoSwzdtKK6Xedi6vORPJCxRtqI5g7+mrTLn3TF4uznKj4QPPjjowyeDbZRcyy2tf6/hin7dOd8s77gK+ikGGWzqd23teN3spd9YUGLo+uPy4Z0dm2ZjI3PuSg9k9cgA6oTm0cKoxzbW4sCzZic3dFDeepkRgHC/sCEWDbdnZmigIR/uwToJOCIHLbY5SLeyMm49KRF0jzoNxCZXS05oz64X1Y/tpUfjwRt1Kq6ItJR1CTQ5Oy/Tkqn2N2ZnBzqYD+ubHsJ2ZMaD9Gs8KqpMF9mTMeR7arYAEdmeQbaMl3UFGXfbN3yj/InSzBawt4cxqgsdp6YOK36qBlRT1fl2zT9ggCwWU4DLcm3tx1UZG/1jVIY6H1oLOo2Ip6l9vzhXTASPHFC33GgwS9nzwaEDC6aSHetjtsUtPzaJB5Dn3IqR1x/ohoCYybZjzANefqrovYqvdta9FBNFkYWOQSkrIm8Ag1d0u8wB7mZA1MYsS61yygh0vUwDSfIeTe8Vq6jq/Oe5MigVK1cC/kvpr5Mi+Dxa60hIcdTsSAm1ef8OnjfeOdBH6PJdfu9kf4HkE/YkOucU3o/AznennfSF9TXctOyQA400Ajdbsu3wFInWTpqXLcpQnfPKAOdpoQ+ZVn6YTzMv4AmnzUtkXjpkKBcG8RAtG7NB+8rAtJEOLNnQewxGSl3UR3D34GKWlHtTXE7DEDCGGaAwTCA37WFzRlVufsly8wpDDyq7Uvk1fCC4DynY5jL75qdV06ACopWVzqAyVfY/x9o9D0kQ+CU4H0DOAK5OIEoVTUKrCvlKDjOvUd5zs+n5A9cQf2FNtK2gr9kdRSV36SuVkeX/fNAu3kKXKvxBjGxtdGPsl5PnqKqV276t45DqgJsstDBVEP19QwPTWd/2ReFznvZ5jdFeJDfs311bKoJz0R/GZkuabMVkU3A+AjmEMr5nDhiJH6pMKTqSoVIckKJI465gRPxlOZl1UOCg6zW/vN315Na4NgJr4GrbfmMKYoYPZu4tQHJqCSygY2t8IXpbhBIpN5Tec6ybf4/jtYOwt8gVL/wIdknhG4/tYrjKUJ62+ma7iyVLueUR34dwUPB4AHgxBy8ZyqdnUHv9HNB38vOZroaAfDzUk7n2aEBxRb/sVJ1f1QwbLwmvvCkU7OHJcXZt44YbSuww== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 35ff8405-e300-4e5a-492d-08dc4c6e65fe X-MS-Exchange-CrossTenant-AuthSource: GV1P250MB0737.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Mar 2024 01:53:42.2833 (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: AS8P250MB0118 Subject: [FFmpeg-devel] [PATCH 08/10] avcodec/mjpegenc: Inline chroma subsampling 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: 1EOSAb+DEtZz Signed-off-by: Andreas Rheinhardt --- libavcodec/mjpegenc.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libavcodec/mjpegenc.c b/libavcodec/mjpegenc.c index 51bce103da..b6de50edce 100644 --- a/libavcodec/mjpegenc.c +++ b/libavcodec/mjpegenc.c @@ -33,7 +33,6 @@ #include "config_components.h" #include "libavutil/mem.h" -#include "libavutil/pixdesc.h" #include "avcodec.h" #include "codec_internal.h" @@ -596,9 +595,7 @@ static int amv_encode_picture(AVCodecContext *avctx, AVPacket *pkt, MpegEncContext *s = avctx->priv_data; AVFrame *pic; int i, ret; - int chroma_h_shift, chroma_v_shift; - - av_pix_fmt_get_chroma_sub_sample(avctx->pix_fmt, &chroma_h_shift, &chroma_v_shift); + int chroma_v_shift = 1; /* AMV is 420-only */ if ((avctx->height & 15) && avctx->strict_std_compliance > FF_COMPLIANCE_UNOFFICIAL) { av_log(avctx, AV_LOG_ERROR, From patchwork Mon Mar 25 01:53:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 47414 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:c889:b0:1a3:b6bb:3029 with SMTP id hb9csp930663pzb; Sun, 24 Mar 2024 18:54:27 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVX7H0HnJgfyZxB+bCLN/nuiglZqfG4TjiUX8YAsQsqyRtdJap+A/Ds3roFg64RYGQF3/H2Iysnqktlod3rTLFOCcI43V9Ne2Z4ag== X-Google-Smtp-Source: AGHT+IH9dyPIuMQEhRBGFRZ8wa3sbzU16GLfRgXqb6vbRo/GJHYZQokeA+hR4c52rezADO74T5k7 X-Received: by 2002:a50:9b0b:0:b0:56b:b03b:2a85 with SMTP id o11-20020a509b0b000000b0056bb03b2a85mr3384265edi.0.1711331667254; Sun, 24 Mar 2024 18:54:27 -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 z22-20020a50cd16000000b005656776bf67si1975384edi.655.2024.03.24.18.54.26; Sun, 24 Mar 2024 18:54:27 -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=myKFW5ph; 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 0DC8E68D26F; Mon, 25 Mar 2024 03:53:58 +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-vi1eur04olkn2109.outbound.protection.outlook.com [40.92.75.109]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 85F6C68D428 for ; Mon, 25 Mar 2024 03:53:54 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MP81jCAt6uie2eyjtbIBnD1pTI8L6bU7tPG+1MZCqkq3VErkldHoHCTGdctbUH+JW2yUaBgwlypraolGuBVqH2WlOzmLtG+OutU6TjucoD4W2KJ6lGQdSvr+qfAxM2bpyaw4JrC4jt+VcPwuV4d13cR4rZ7akLjTtbBN+Drfst4E6o/KsWt+QcULNj1qApkgId1+v4c9NxnPvIizWg0P2Ne1ORvsw3cVxCByJ1etHD0VCfWtXzym/2geMcMheaF9dYvq/mGO9pfMB7OhUJpnK7CsLWmNX9DGJu/9/JBmYqrQ+Cwppo/5Zrl8tRQGBL44tkrqUp48fa/7zG9ogxH+vQ== 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=35M9ERVh5XW5euR6ETnAW+yeEPCoBdKn5hAe5OudypQ=; b=JmKFS9ZXYr8ypiIfEOdzIsSYkg6OtgXT5t3EJ8xgRvgo020qIxRnF5wuNTRx9aWsgFoayPdp5WJ/tgGpVIEmLQBvcBzs0BgX3aCqn4n0hXh5bhKMKWY+XuDpM79QfFQYPBW94BIUs4d7/q/HHVILRM32mFiphr+Jfx3lUreB2uEDtn0peF3o3WoHKK4VKjXzNlUbOhhWdPLMiT+n6JHX8NNRiSlmhws1GJ3sjuvH2lVYWDMvYdhrgpH8L/0oiFtGo6EFr2r20/ANbTGKWuJJfozNqw9CS2+Bw/nNISUdm0EakXeondp6jTpza3OvTBuRKRADeKrkew2O9yAUJu6dgQ== 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=35M9ERVh5XW5euR6ETnAW+yeEPCoBdKn5hAe5OudypQ=; b=myKFW5phEQnUSN4IH8v52Vnoh5neNN46u/UOeN0B7tXPvrdOgLJdxGljxExR0hrKb/XeX7dtRQRt8apjAvtrWbSS+XKCnUz3B4l6iV+Wg+JbTgVbziCMi/ly8Fnz2DSv3GSz3mOwIF6cwzFXbRMVEa2ldu1kcg8GzEJibw8JeuDnoXz67SKVkD7gxslSyhqqapqTXfEqfgUlluMf6Vdo3/ITK8IcJn4Byria1zoN+osDGA6zwghjpbQh2FlzjhyH1qQTpdh3l+AS3h9iJo5Q9T7CaDxWQZYmELGKVrY/Gdi7sormJ3OY9l04A3ZPMv3ZPjK0F/R/TEQfwUICplb0Lw== Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) by AS8P250MB0118.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:371::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Mon, 25 Mar 2024 01:53:43 +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; Mon, 25 Mar 2024 01:53:43 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Mon, 25 Mar 2024 02:53:23 +0100 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: X-TMN: [a08yfySYNZe7gopJ8R0ELjeAz01IA6OAoTSOIbspYtQ=] X-ClientProxiedBy: FR3P281CA0202.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a5::6) To GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) X-Microsoft-Original-Message-ID: <20240325015324.2348789-8-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1P250MB0737:EE_|AS8P250MB0118:EE_ X-MS-Office365-Filtering-Correlation-Id: d92af4a7-a1c0-4826-18e3-08dc4c6e66a2 X-MS-Exchange-SLBlob-MailProps: 9IecXKUgicBMjzDtAlr46x5HKEJiZ0RbegPkSnuf+Ow2eQUO/HKt3as2IvcDY0Um46VTWAVF15rIs9nmI3y1VmJd2NNXerwURQkTQFbmqzEqQKgRBZdBBt4NnBEzgiGFxvh5CVe0vB+X3IquP3nvngTKqmMOg8OwqP8r39nDok/faq1FSqJsY16te1pUdcnK5yzpo+D7+5ZkTF0Ys9YComaM6epi+UxQUqzcKGgLLlNlYy+17bXn2mzBQyBq17dtU+CYE1kx8GPyA1YbD22t4nSHEevXdR7p2z+UigFDZmozPk2JeeZ6VA+GeeWHGo89CRagK9TMiEdeXhwLLPatTnaeOkyRwvyaItoYrnqw6jsc7ha16Jqv/OcfEkatblsAf/01eenTZM6jgK7Zpw2h1LtP6TNZa7afqy/oH0y7n87hHnrGCh92sq0W5sdhpwBb3esxK0vHjawy4BRB1OW+8JOSCJAbCJfw4G/jUthFhS7C+nz93BeucxK32bgBF9RRqAyHf2aUbkHVeIBIOOsXeTcetTrS5NgQ+B8PAp9NP4asZpGXNKjaibE2l9T4DS5fFyXbZyqQxh2fr/ozTy0vKC7QtrcWi/Ush0raBtF9ev62GWbtIWcS585cltbGYXm98fSS8z8j7ajqqLlwxVLXM7jqk33l+6LAsAxwygB+ryYIS2Nna10rrNi+KvoRpB0g3MV5MAjDN1ZSNldDjyrqibEvSRVRKegCjnAGp13Vc//BFjNwQPJU/w== X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 68rH36ERb8+DqNOU5JUAiV/ZvarcKNWYzCEM28Qy17w1djGbRSTCTJ0k0XNk7+IjjMfozldfw8EiO06qXlXleBODwbm9JCX4tilK2tkrQO27YwmK7xhkWofo7rnzP3kYkArjP4puwEaa1j8UARSQPbmrNy2ZrUn5eGEvfZme/BYppl39NRM5kxCKNSqDp+2Bohiylr3/u/jx5/487UEE93o5S6Gt5IYMnYURnqxbozImvTAEmKw5Tn2dpbsEfAO/k25GRR4SR173WKeVxcopGYic/jSzm4DaPVxId9jPyWkjkkAQ2KrkvaK855k+o16ylE9AqXE/yStGfnDr9jTmfmrJ7xqqRcbGvL5FF6EZgqqr2DrXCu4vVy25LrYyLCh2eNQPAHQLGb4Y5F/ao4fdiFHzrn7eqgqECUkfjIvOtMZi+xUNPNsZoUKy1dgIzYVZ3M86kT6lThKyLimccPzinUGiPpTyxmUPWqBNOS+72T6T0ZbxsG50e9mW/sGdtdxPMEC/mVD+ocunzsSr/docko/AHQMZVCwus9vUAdJMYzswoBQuZG4rPO5fbfZcOQ6+K618BcuLaNoB0YnypEFEsosfm9az4r53578JKw1ErZlsRBtIY1b6N22/GkIxHWqv X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ceTKR7IKqsg9iOEgbB2zcY7ghOIRe5gd5cgk9PmPHk9gmc1vGDRM2A+Yxk7SZutAMyaLANzKqWt4lVOQHyjJ2NOFrprDA6pKoPyLKx1oje8GsAehCwIN4p9jsqRqMGYEFW61maZAfmkSWtIlniV2d/K07Q8Ch6AIN65Y3vVd9/DUKwTY4xHBJAAGmd/kSpCKbB8OMQfSe29g2QNSdh+wCWap3aSVbvRTnOwKgZV3UyprMzfkOcSef/dNgxJ8mKnT52hbM5XG2t3YFmUIkB70RaRt8+OOtLStTbR2q9y1t97YnHXNFVv4Gq3dyXfbCf5bNyuR2vyuYgIl+pU9q0Ck2jqX1XYnPkRT2cFq96BM+csZwj7kvLZDC6PzQhG9sdKkQWpA4/21XAK6b2Zbp002GB0IT3QD13JSS0+XRL2FZt8oQU9fOFxWSUACbDt+FjejDtBZflhgpUNXEo0UHULnCAcLywPZqfo2FhNT6YHLbsULqYN4X5e+mtW3F5QMR48gwgMrGXZeU5nKzaozDAl8AOmBXkHg6YcDB9Lv37Z8/euZsiQlmjytlc98g1rq65k0DNRa+88uf5nOyMLaqC+FTTESiX3aJ4s/9gCOkFEFt4o3W18NuQB/Pxt0cyEMC0Ozsn4//xdNe3hf4wJBn1Nn8fbSmDjx6/2kV8oJvW8M218ODfezwym2krpt5o7nPqI8uiLYjHcrRRn3dxHX3ET3zDqcUQ+vqQtXHCRryBwv80PXJd4KpttvRurik+ZL6KfsJc34WQ17R/3Q8hTstdYDCjbo7TPNQ1snrM61xt/XIQpub+w6T64nwHRa4Yp9gcjrAtRdbZ4vqCy2h+Po7txRY959SohI4UpfP5IQl1lY1a9ELIrFLuH4xPrFKAoVbts/5ifnl7brwFAh/9l376HsvLOZ9U3jZ6HytMKQG5aY37dHHtKJyZVdqO+HhRcLOIlUk6drexiD5i/s4a/OMHDcHRV0yU4aQhbNROy1x2r7RYYvrp/V5f5jEfD7VlSi2ENzADe/ydpo2xO/tkhVrVWA/B/jR/YHNB7W7OZErhMhqXUyF3ADXG9/OyEO6sRKcx7THn9lhXEQeMYMA9I1bKewIZ+7ESYSSUmS8ck3WbYYXUWCjA2Xq2fPO9JTMpb3Y6vp7GrAYHJ8EHs3vrzaCJIEI7DqBsfmaGfs0xxGD/AtKW8Tb3qZXaZKuMv1tJNu/dS6ZsnfvHgyj+GAuD01PJuGn/PTL3ajWAvvb0dKGB0bWlleN5gRh6TifV2xr7JKLfgoO1D5n+6NYEPzuIynUYa3ig== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d92af4a7-a1c0-4826-18e3-08dc4c6e66a2 X-MS-Exchange-CrossTenant-AuthSource: GV1P250MB0737.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Mar 2024 01:53:43.3068 (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: AS8P250MB0118 Subject: [FFmpeg-devel] [PATCH 09/10] avcodec/magicyuvenc: Don't call functions twice due to 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: gErQyzIYWm+x Signed-off-by: Andreas Rheinhardt --- libavcodec/magicyuvenc.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/libavcodec/magicyuvenc.c b/libavcodec/magicyuvenc.c index 3ae1ee2c71..93eabb9f9a 100644 --- a/libavcodec/magicyuvenc.c +++ b/libavcodec/magicyuvenc.c @@ -211,10 +211,13 @@ static av_cold int magy_encode_init(AVCodecContext *avctx) return AVERROR(ENOMEM); if (s->correlate) { - s->decorrelate_buf[0] = av_calloc(2U * (s->nb_slices * s->slice_height), FFALIGN(avctx->width, av_cpu_max_align())); + size_t max_align = av_cpu_max_align(); + size_t aligned_width = FFALIGN(avctx->width, max_align); + s->decorrelate_buf[0] = av_calloc(2U * (s->nb_slices * s->slice_height), + aligned_width); if (!s->decorrelate_buf[0]) return AVERROR(ENOMEM); - s->decorrelate_buf[1] = s->decorrelate_buf[0] + (s->nb_slices * s->slice_height) * FFALIGN(avctx->width, av_cpu_max_align()); + s->decorrelate_buf[1] = s->decorrelate_buf[0] + (s->nb_slices * s->slice_height) * aligned_width; } s->bitslice_size = avctx->width * s->slice_height + 2; @@ -493,7 +496,8 @@ static int encode_slice(AVCodecContext *avctx, void *tdata, static int predict_slice(AVCodecContext *avctx, void *tdata, int n, int threadnr) { - const int aligned_width = FFALIGN(avctx->width, av_cpu_max_align()); + size_t max_align = av_cpu_max_align(); + const int aligned_width = FFALIGN(avctx->width, max_align); MagicYUVContext *s = avctx->priv_data; const int slice_height = s->slice_height; const int last_height = FFMIN(slice_height, avctx->height - n * slice_height); From patchwork Mon Mar 25 01:53:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 47416 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:c889:b0:1a3:b6bb:3029 with SMTP id hb9csp930792pzb; Sun, 24 Mar 2024 18:54:53 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWcLJPz0Y1RqONrE5l9KsNCmcBMkp749k2j4IoLeogBpVURr7i/G7LPwPnno2e8FHam0RC/fkL2V4r4lfUsyxedAg4GBbAxZWZKCA== X-Google-Smtp-Source: AGHT+IGoTbITSR3172yeCD3PyjQtoR+9CAuYWP6R+It7sJFXOq/Iheltnz8sw4QR2/t5BTgKEx1o X-Received: by 2002:a17:906:60f:b0:a45:e3ab:152f with SMTP id s15-20020a170906060f00b00a45e3ab152fmr3809476ejb.21.1711331693121; Sun, 24 Mar 2024 18:54: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 y10-20020a170906470a00b00a471b4c7f8dsi2037957ejq.9.2024.03.24.18.54.52; Sun, 24 Mar 2024 18:54: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=NUFeqTr+; 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 7952668D4AC; Mon, 25 Mar 2024 03:54:00 +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-vi1eur04olkn2109.outbound.protection.outlook.com [40.92.75.109]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C6E4868D428 for ; Mon, 25 Mar 2024 03:53:54 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GhSN8ZkuvoH0poY/XmVYX+Xs+3MrlNRaWVOk1+AG/KUFS+fMRd5wIaIy6Po7ySo5OQRubOx/gn1DqgbUvOwIBAsOq+g2LzswAIBRacFI2G1Tk6fOZ8e4L/Cw33KuG7liCNSsyNmZePBnkx50XjKLXW/wC1DdaN6iX4jhI09uc+rWPYvsgduIHR23sWQdN4eTpRCJ1rKpt4CmBGf4+jd76qDgn0a+8MCGL2eAMfzNFLqA7IX9HB/DVZXIT2gC0ZcUPVBmMUaZC+Zq0OBYxSdLl21dQcoX8GtVAnZU/clGmPmfkUrPmXKaZpgqwp2wjpIL1WbWC+gPu+qTeCnivLI4xA== 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=xxIgQs5dO/MkkPl4mkKdieHLXA/gLX79BBqP8hZyxPY=; b=EPC3OsTwQSSyOujPiIypFFGVx4zeY6lOYTFvmViskQ6LCkDi21N9jOSZ6mihYNQzQ5tBPYVxFJ90dlPIsc9q16YdKoI1Bzizm+f0N+WEq+6r6xToX1UJztUHfPCmx9IZS78gN00TvC0CvVLYybJDss9RwcA0XsU4Zotf/8PhYsmEd/d8iZ/LTx9EZ3LdhtFeKygRBDnPWcJy+NVmtscjkBwR3XhT/b9u1cJ/+gYLQKyo51VbZTXd6U/MBFURa5rJi3dN0RdHQBUVn3a1hjLwHdTzJZ55ZqHxzT8UtUjaKZW3TokMDt/4wfXH1+VzpQC6RsdPPuOdUfm+LAGwgIDLtQ== 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=xxIgQs5dO/MkkPl4mkKdieHLXA/gLX79BBqP8hZyxPY=; b=NUFeqTr+j8kU/xeHoxxUMH7vrgR+quDVTYW47gY77rSActB0wMUmz1AkyTecJimD6SDkZll/PJZLSUKCwTYwIglgYL0gZv5pcxjCZblTH5Sdh7XpT92OgDTwU4jJ5ILxk8szWLMxczjmbBIwV/3s9yTavzitsS+0LIHY5Lrj0GY+HITeHtwK9gCFMqLeOGNAQZbzeuF+J2CKWjwbrRvXNEQa77u8jGzxnGUVOh74loTSIeHCT3PdxsgHMjRPCw3vcDncYENSQZzoEx7GpdrWRaIe3qXMLuTT9OdjKx0/ByYSfiaIhjzKOF7zTEtpV/wmWzhN/f11bX7PMayDvVU26A== Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) by AS8P250MB0118.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:371::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Mon, 25 Mar 2024 01:53:45 +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; Mon, 25 Mar 2024 01:53:45 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Mon, 25 Mar 2024 02:53:24 +0100 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: X-TMN: [rgMViAGqHqOxTqSYaT3FWIU/gW/6ueEWN6EB8/CQWIE=] X-ClientProxiedBy: FR3P281CA0202.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a5::6) To GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) X-Microsoft-Original-Message-ID: <20240325015324.2348789-9-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1P250MB0737:EE_|AS8P250MB0118:EE_ X-MS-Office365-Filtering-Correlation-Id: a1595814-73da-4263-c34e-08dc4c6e67a7 X-MS-Exchange-SLBlob-MailProps: Cq7lScuPrnqkjmXb1vlddM5aSa/Epk3AtthDcWoL27YETCV5Y5fS2C1B2tKSB3uDMM2piUvdIlY1+04cVZ0z5Tf+tx1k11wcqAMn5AGJ4hdRtK/xJDxlFjF4Ds0P3SGyVayfmpe1E+DPlMnDBiWt+OW+eOciiZGB3CS6N7wvx/fNRGFfyYsgZQkelDRdImbn0hjyvWOqVrft/yLjfqxDzMAi4P6o5Cu4lcvePRLfcbyxY12aPx1FoOD2wHzhoK7uSPahIG4+mSsPJagR/YnzxLFI11OLlCkP4g/ltzEmFIWL2BB15ZfYDdc9nPLHIzX4qtIhQ7ljdAMsiXMYLC3E6GtH/8Zcl/VvN/68+YYMtf9U7XGFRGEh4qeZMf4olPPlHooeuX3YMDc8j01fD8W4ESGEmv9POl2DjeKhLORGWWlGNguNg4eIAa+m+dc1mVNT9JWF1MyttO7iZMvKG4w4ZDXFbsNOA3bAhA8T+TaPmq6TbE0UJyMiKTjgkqxRgxi+lqI8DKfX139hHKgYGUhot3J2rSc6jiWUYPGW76ZGIkQplc2d1nC6SkwhBbCgzZN8Twlxc6ovHqdU4kjxetD1GyCv0va1iG+mrh6KhaWUU33rUGVobmtiqe39283hpLfQ2Per9uxnHW9VJWszeA6oKXxuxGxI4cZhE/Va8gsyE20XplKXsCZkKwSF7aBSrpO0HYYdlTSe3AQ+fyQmkpx6pcuaqY6bybPfQPufY12yuZNJ5tWrL4EGQEzbd05H8wjkmwxqVQBdhPs= X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: R5Xgtbcj4PSOyu4nGxRi3O8mbNjEeoJLxkMxvTzOuVEh+2Dm9Z5VsALwJdqAnbHf6yRr7XpJIQqc4oBTfRok0yKtzte+7m1U9jNzSDLJrq3KcCyJro8JIQs0ulB+emsnee+oanJMBIp239yHv8XRvkyuU5FpRXFIJthYSrsf5uVjir1rklFNtKHysejEd8WgtkfNqoXX3HW7p7oPblXc9G9Y0sV4da8e11LVp7wgVxBmoRXh2goHDYD+AOx5atTxT7hwx23Urm8uF854AzMRjEleuFErPSh3vk20Z7MAupo1ZtArqiSYoQWfYpSYqulnBVRjoQ8VE+yRYiW6bXVpz2dvPiYfiYvOviK9bC7rmlNgv5KQNWDhSQ1dYy5LO2t9ZgD8QOjT6f0YDTnN1wsP4tnmhbuNpYpxUFmTzw7Gx9TUxRnPT+gqqTyfPnFdkKjPxEeoirheZECougQ33pCdgSgeZyizzexyOiyKlz1rFfi3bAvkUEJRe1BFjguofeJ1WFrgrzjTl+nTv0FEWhd7HBzHVwzfLt5gPW7YLdQkLuF2qkm57ItJeINWGnKm9Ly80VnLE6EkpyzoF0XgwoT+wkCYFyWzDsWNMmMAFQCRgDTcLBdlpigcrk6VDeNJ9cw7 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: IczPPHWBWBrkEY2QIr2B78tSmJA/bW8TeQHyE8AmavG5vnZ3jkcssJWsDXZUC+9wLjfjlRT58FK10C80CKNBkx3Ifj9YIXZtr/valbbFbO/lGdfgr63h+3DwQ3vnktP1pBWKVqGTTq04p1i/oKkLAz+VBqEH5O3w7pxeX3j8xs4CNb11Obh2mU1Nlq5VblYCQLX8teq/WrDqAkL6xJHJNw1zCIC9WTEKb+iKfMCGXtu1RmW637FZkk90383Q3sUkQZa96WB8cTnbvnSYpcDQm4mf6oHnjSigFmz/qdd9/UqWWV/oa6bd2Zvc6HtgsFnvilpKFYgQvZkzfBKifHpw4yskIM9/Cta4QGdhfHKYAEUI08YKJUe0YWS8D6WpXvUPdkU6kQIqAqhBdhBQ2pLYbSpK8crjPU7K82VzK/LHvQIcNLFCE/iAJ/oy1dexgIpBow4pvwt13cCal+CyrF7BRnzU/aQrzjdsm0cj8UtcFXkrF8jlaSwv/Mm6iXUjA0mBxxE92AVyGu1AGP+657hvW7DUHuK6gyGoLsbEh742ZKFkIgByrEDLtn69KGZ8TeMlpqkdJJYyK1rgKBhgpqet60cdoXCgFXqVMQv9La+hbIqJiF8l0B/ScMcp/ETFp7BZZMEDyzadq+djAqLKdVai7hb9IncwFisNd2UgesrqUQib9u8b6O3++Lo7bkXURTeUsWlTtDk2La5bKO/Jsbees8Lpg+rd1oNMrEYsv3o4wEDc+JGmpzq3wQ32jocgf1spgiV36XdtH1wpSTyFRTYK2rXy3aYVWBP78maPCjVRUgdvNaAq4UGjaZV7C6adiXGFoWjfIMEEPz6QfXGvp1dmZJuvPtsvG9dFsR1+YH3FrHic7e0KB3726difXP/OltR+9TVdvzSJ+spL6gonMGYB7wZe7H3WzkjEHfE+2fCC9QtSXY9tO0I0P6A9hrHkPPEHFTIYBtYbeU9z+cIynt/61G5PIfpww5CVPgyJM7XtY7oCwRxFCLlgKh7xlvH1BbHVSdqj00a0goYx2tPq33/RLbvIqhNluvDAlSc8PLBFMoaWaL7LLhK87phfvc2yI/lEO9Y/jUJoTTKhuGHsnD7+RUCbLSwjuVyajq8y/2W3zsZ3YIjKitMyE2H9APsvPvFUOWTXweDpZqSsTNoJNPKrJVF0KkSD3fRt4KITVvalUEIRWELanpyMFGk13KSwO0/5ZGFDpremUHf12zqNDT0ciIBJ9P6kl3mjAGpe+s9vAxT+iH/VnaR+BrfEqh/suIIHroE1N76oC+HEJ1eyHfMBLA== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a1595814-73da-4263-c34e-08dc4c6e67a7 X-MS-Exchange-CrossTenant-AuthSource: GV1P250MB0737.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Mar 2024 01:53:45.0874 (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: AS8P250MB0118 Subject: [FFmpeg-devel] [PATCH 10/10] avcodec/profiles: Don't include avcodec.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: i1eZ0MgMxYex Forgotten in 8238bc0b5e3dba271217b1223a901b3f9713dc6e. Signed-off-by: Andreas Rheinhardt --- libavcodec/profiles.c | 3 ++- libavcodec/profiles.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libavcodec/profiles.c b/libavcodec/profiles.c index 5bb8f150e6..052b77926e 100644 --- a/libavcodec/profiles.c +++ b/libavcodec/profiles.c @@ -18,7 +18,8 @@ #include "config.h" -#include "avcodec.h" +#include "codec.h" +#include "defs.h" #include "profiles.h" #if !CONFIG_SMALL diff --git a/libavcodec/profiles.h b/libavcodec/profiles.h index ffc8710ef2..842201718b 100644 --- a/libavcodec/profiles.h +++ b/libavcodec/profiles.h @@ -19,7 +19,8 @@ #ifndef AVCODEC_PROFILES_H #define AVCODEC_PROFILES_H -#include "avcodec.h" +#include "codec.h" +#include "defs.h" #include "libavutil/opt.h" #define FF_AVCTX_PROFILE_OPTION(name, description, type, value) \ From patchwork Mon Mar 25 12:56: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: 47424 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:c889:b0:1a3:b6bb:3029 with SMTP id hb9csp1167242pzb; Mon, 25 Mar 2024 05:57:04 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWomZzdXUY9b+W4qNfasTM5q93ss3GcR/kA+WnVifm42LkGFDOlqQ85fI8GwCY3N+qGRUc9CMIG2tirOZf6ZFSKL66jo4zi/V7tOQ== X-Google-Smtp-Source: AGHT+IH9/7fM3bM92it6NlKf1BJWLAHkRzyF2Xd+yJPmrwRRfIzBy1nAmGwmK7JJAYqfmZhUF0FZ X-Received: by 2002:a17:907:26cb:b0:a48:56b2:da0a with SMTP id bp11-20020a17090726cb00b00a4856b2da0amr2560116ejc.5.1711371424434; Mon, 25 Mar 2024 05:57:04 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id w9-20020a1709060a0900b00a46cc1790c0si2608172ejf.218.2024.03.25.05.57.04; Mon, 25 Mar 2024 05:57:04 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@outlook.com header.s=selector1 header.b=QkeK9etI; 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 BC9E468D4B4; Mon, 25 Mar 2024 14:57:00 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01olkn2087.outbound.protection.outlook.com [40.92.66.87]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 483AF68D41B for ; Mon, 25 Mar 2024 14:56:54 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VIs5FH+5ycuEyRDcw8NxdVJ4wM46y9IYIK6/xpLQBxUjQCN5+ALXE7KQJ9HOe7yB9E54why2o7nZnUlb+GuWPHbpMw4lUVeXdKmw52XDiXWtdphcve5OZVc00iY9cRHuB3AnazvBoFD1eywYyF4C10Z5NGq0KPGIDKGjBLwvyWuyN69C67Y7Gz71Vn4n1nZaYrSW3UdsqgNA6WhQsWVbleruO87cElYEDJDmemh4ktfcLDuY67y742Aa6gUQoE/IATMmDgG4INUT7kkIK0HVxzBMU6A89GhX5tbUHX/4V383/WBtIjxmn/mleAFQzb7BqwZyOw2O/KCG5goL0X6nNQ== 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=GeypbCCNgS/oM6h45FMDg3wZZI+b+mxFbrrbEH7R0Is=; b=oI6xaKF+8e0udJ+Plg/GgqVs7SY73T3nBeZQpthjlrk30yrboBC1zR886WNo3lWi4Cu4C2xRom8mxN2FuBoXhyImoEpBo37Oly3jlhg7eAv60Chy/yMBz6i7foG1edYFBvG0e9XHe6JZIF+yw7CT3jbvEcNoFSjh3PJANX2Eoyxt7mLQG9LkDIrXDXvb7a84M/iP8fRCVuZh4MVlF9pObabcLjW4DBJEeEdrW7imVXI8Fu5gljgTYVuEFuBkPQvTO+7sVCRTvy/9IXKp+Ytq0Fy4JnTYIvPkAQuzBc10bVTCF7Q32Ot2YypqSRAPhoDvvhfcmkbqepIV8ybjN75XJQ== 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=GeypbCCNgS/oM6h45FMDg3wZZI+b+mxFbrrbEH7R0Is=; b=QkeK9etIn4ANQwNZ3swKHvItE/K4KeeOJ71Bww/kl4j/7yyWwJM6bHfCrD+iUlaWyVloOhfnZ0YO/u86U3Zu1tVNsuqIMqsYLFVzIWGG5Xpm515BevUpjtO9vnAVGPbTksURB6CDAMdvCPLsnVgK/sEmCT+Kb8fyImmCE26ZVf/7KGMup4qN1sPUzKZKoeRLS4y9F0LxNslZzkoH+aoO217JcmbaNEEye56OZjlt3yYVYZiJlqiQSs/RWr1SY7ht6ag/782U0sprQoexxp2J4dbLzB+RIEftD81/PQP5b/DUuw9XwHVj3dl+pFl1FqLMaYAfXK3kAP8g0pI7heUIRg== Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) by AM8P250MB0157.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:320::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Mon, 25 Mar 2024 12:56:51 +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; Mon, 25 Mar 2024 12:56:51 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Mon, 25 Mar 2024 13:56:43 +0100 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: X-TMN: [KAOHrhWUfz9RLebBbGYASdDrr/BuiJVRspizCHr/VeE=] X-ClientProxiedBy: ZR0P278CA0181.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:44::14) To GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) X-Microsoft-Original-Message-ID: <20240325125643.2510112-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1P250MB0737:EE_|AM8P250MB0157:EE_ X-MS-Office365-Filtering-Correlation-Id: 3b0faaf7-a16d-4743-a915-08dc4ccb09c9 X-MS-Exchange-SLBlob-MailProps: Cq7lScuPrnqkjmXb1vlddM5aSa/Epk3ABh79suC/+CPRkQhSsxGNl1Ufgowa3Tn+Wf0hhD0F2zVbJGbz6B3CLuMKkN4BgBbl7dL73MOnIl22F5LOA5PWCaeORl1fWDbwWy+unobzAoS1sB1m6wa8j0LVvV2pgPjNTNMqj4lwdDOH/oRCMLzfpVd0N0qqnXg/1AqTnr7aYi7GMzmvho6zoXrgcbIYjBqrlWaj/VccNQabyLb0lMaZweqObsH0olsjEl89jmIC/rqtDe/N/Rao6RsmJEeZQiydgx9hwBXyRrvEtxsmSFVpFSP+HBQVrFGfpaUCQuV7tyetR4NlASibe3OYt7tkKnDw8JHazz2jB28V7rw42ZpT3FZ0da9neN1ioQyGz6Lyw+ZUi0CM6cQ3i+pSkr+Nvfd0WV1kgrUS5fC3hMhlSvJJV83jn6A8WDAmzHTpfjyQsLKSzJar1Hvd848V7cGL3An8ztR0GXl7kpRCP1oCyLxTFB4vDzY9iIHl+eUDE0+cG7Q1xnZuLPiZ1Q4ebNi+5NDVSNlmtdzOKlc7NqNVoWs25GCXlIXvVRdV+HEtW5ZSS06hpnK3ivxejoJ6tpLNmAj1/ovfdOdgGl43dYRGz/axUSU4Qd/vLQBD25GvNVzjK5kydWaumDBMsl4VmXeveSBVkdQ6QSEISpsjVEHSP17RYCxVhNLAVHt84kehONAoZxu93EG1QLDsRjJOR9H3ADDqiZI1KPsKOXE4k9NwDrY8wSAf3ECvM9wS7S3FpxaCo00= X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jJJATUwXtMmnma1+0h1Kc6LTdxYI4lw7XFXoSHnWGu0iDmbSs14ggmBMT97yuTaHcMoD/gpy3BML/XG9qZOhPy9eqh70aOD26y4OFwiIE2mq7XdbSBwBr6fYdMViqR6DhKJuUGmUBGgL0l2DfV4fThP4HJPkHMb1eSFs+FugFymisd7rz9yE5L3mgdxej+sjvk/unh0wtAPMpRn6CeQzxBLNQ6DQB5WAIGgaRH22VBZPhMKRYxKFET5ZGsesmQWtodM4v3gBGwUd3502of3nKLKhVmYjflmo1Brfy0k6J1rktNh1zZLjR03pvWh5EuycGApTpc8QCN3+7fU6Ef5kqlv/FyFCCuLiQBHeGRXBJ+yi1cEtFkMVE2sbriJFo0iNnAVNey93UtaLbACuM8bpTmiTp8Qn0SE8l3WadfGm4HuPaAUza/CpvRaycYA93+fsBfnF0HWc+qGAwb+zYHkHbBlWiyFvCE70Jcy3FloS/ENGN8BY0XIZPRyPeZGimqIbaJru0D0YSALJw+B2xIZSQ9n0ZLZJH9r6hDtsxNrsTANpJiYikGJZMfNLGZMzTDzcxxFErsoQMfW0vRFFST5Sd5bE4Ik9Ciz6QWDJAI6NPPKy3eYsOh6Jo6VZPQrsuG2c X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ubizSAfJe93Lho5r8kQbfStlcZTPTBnpFizZjl2xIJDkCvK0DANf9U2XSfY9ebEgbDlIkARg1Rk67yQn8Wmg/oz4X+Vu7Owk/bk3OUYrFf/+zTh2Xk2QY50c4yEWRCTyReTD5lqDnpLpLUreC4lKaJGSTTthUpwquC8gy7nfKSFHxxUhg+s+GuS0KwC489kPcg3hpBSFjev7TUmsLNfnz3iBg3g5sx3gMGr5jzL5FCWfpzPAxoQdkS6+jZ9FOUJwV+R70b3gyf+6lkasNnGWeKPhrrirtqoZxyz+bksjIck2mHNu4BaN5Kbq8zAO2eZH/9IjSPgIH9gvniIyiXBRfaPjyCTIKUdXsoKgerkmrpvKbfs/ol4gpCeeu60eXS9vH3BVoVvB11t5IX2htsGEE+QO3XvS4YJGUveTFa35PogaDbNwFo7mI+Y+16OTDJ0jYWbNJLcoe9qu3B9HjcVXhxUixOXe8IWb2RecD0wvclrEdzuBiFqJ9QfcLTUf8UPtARyeIFQw2xeHb4X1Wa9l6rbJesbLqI6A8rmB9PXetZsSbrxKX/rIjEuBAA9v4W4Hhy+APG07tKTLKuROkKbHfVho5r7Sq3NWwox/IMpuYLvBrbcCPDks13WuLEZbcwGsoBuAfZCuOs9yujK/JMv+f9Y79yrVhHVN3OE9C54q3jQpshwIZAuXDntBFbPzIdQ131niaFBkVjL9htdLh28x9PcVDa0vFufj05vveY8gtgB0R2NRU83Sf8Vjwf4w2WR+nFZsMc1uiGHF/uvte7NiMJMcycSPZLTxcFTUQDk1cDhrwqqU6gyLc0TEiotRG8eBS2XwpPX+ZDehu6hIbSvGAzVDfQlxerarQ2fEExUQnfj1OLzsgUZDVW4YfCUvmLHOi7kEUDaECJoi7IufPYOjjCF7slq8zvug7T60WmnO1GB/iAljEBrD9wA8rW0Ypt9CXmsCIEa4CDo845p3YsJcW5GaskIOLrvIaSUt5rWp2X+qx0d4uhHxUr0il9rqPEWP7dqtyTJ+3ra0DNdZ68joiY/TsFwybm9v+taB0rA+yob3apjEGQdHHn2I56Jfo9kIS/V6xGmdyeOYeq/Hl6OGBHhz8w4Q1oBeOYSrclLv9Cjwq+jqxQnMELIoKqAm+7859/1NNAiTADDADFX6oPkZVlZRjz77DJ2eh8+QnPzfDVoIm0nlo9Kg46CytwEnLUwSaRbDcZgHU99DU0JTc9xHIxfQnMO5P6ZxhHeYmHe1WW/nGeRcYwL0BXisGa8zgs9CJ2ssdV1rPILwXcpwDO55Yg== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3b0faaf7-a16d-4743-a915-08dc4ccb09c9 X-MS-Exchange-CrossTenant-AuthSource: GV1P250MB0737.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Mar 2024 12:56:51.1647 (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: AM8P250MB0157 Subject: [FFmpeg-devel] [PATCH 11/11] avutil/opt: Avoid av_strdup(NULL) 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: lhvU2/tjUuV2 It is not documented to be safe and in any case it is nonsense: Currently av_strdup(NULL) returns NULL and in order to distinguish this from a genuine allocation failure, opt_copy_elem() checked afterwards whether src was actually NULL. But then one can simply check in advance whether one should call av_strdup() at all. set_string() was even worse and returned ENOMEM in case the value to be duplicated is NULL; this only worked because av_opt_set_defaults2() does not check the return value at all (given that it can't propagate it). These two places account for 389114 of 390356 av_strdup(NULL) calls during one FATE run. Signed-off-by: Andreas Rheinhardt --- libavutil/opt.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/libavutil/opt.c b/libavutil/opt.c index 76080f87e8..3130606337 100644 --- a/libavutil/opt.c +++ b/libavutil/opt.c @@ -309,6 +309,8 @@ static int set_string_binary(void *obj, const AVOption *o, const char *val, uint static int set_string(void *obj, const AVOption *o, const char *val, uint8_t **dst) { av_freep(dst); + if (!val) + return 0; *dst = av_strdup(val); return *dst ? 0 : AVERROR(ENOMEM); } @@ -2032,9 +2034,11 @@ static int opt_copy_elem(void *logctx, enum AVOptionType type, if (type == AV_OPT_TYPE_STRING) { if (*dst8 != *src8) av_freep(dst8); - *dst8 = av_strdup(*src8); - if (*src8 && !*dst8) - return AVERROR(ENOMEM); + if (*src8) { + *dst8 = av_strdup(*src8); + if (!*dst8) + return AVERROR(ENOMEM); + } } else if (type == AV_OPT_TYPE_BINARY) { int len = *(const int *)(src8 + 1); if (*dst8 != *src8) From patchwork Mon Mar 25 15:11:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 47449 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:c889:b0:1a3:b6bb:3029 with SMTP id hb9csp1252837pzb; Mon, 25 Mar 2024 08:11:38 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUCnSUHnbgafvWasqTAXc6my+SNVoqSjGllMvyEeJCFVC1nb8dQYC4XTmeTIk5VJPzRUOFlZLItOBCy7lD2uzNEkAiGMjxATJ+6Xg== X-Google-Smtp-Source: AGHT+IHS8WHsUzw/j5HHMvm+8E7jSanZYZ62nLz0dEtDV1+8T8Bx5VKdIelsMSubQ9G6IP7fonQB X-Received: by 2002:a2e:b74e:0:b0:2d4:6a34:97bf with SMTP id k14-20020a2eb74e000000b002d46a3497bfmr5245026ljo.49.1711379498264; Mon, 25 Mar 2024 08:11:38 -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 c2-20020a170906170200b00a4535a6cf2fsi2478558eje.407.2024.03.25.08.11.37; Mon, 25 Mar 2024 08:11:38 -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=LqxS9oJ3; 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 8691F68D55E; Mon, 25 Mar 2024 17:11:35 +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-vi1eur04olkn2017.outbound.protection.outlook.com [40.92.75.17]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 111E768D300 for ; Mon, 25 Mar 2024 17:11:29 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=la7kN5kK/83SFzSSK2AbAJ90gDDRabDYc0H2pkGghJPibxibBfUNkcLvUm6aN9JL+OnPnLpHcVgj/DXJiZicE14GLuDpzQjmrfN/groD0gMuHbnVo1pA7wz/COntAk6ySp+x5hfqC5qeCkmUltlACLR8GGOU5NebNyVIZjv4o+d8qoheLqtVILUJ0NjFxWniNIO4Lu6HCwI+TTD0DMZ0O63yl3m7IhRbbLii3gv04JNF/6uAruCsCW7T2AvjKERhcbLl1WMU+os+xUCVsu4ROaXUyUzFNFhQGLCRjD7sO72xyC+sy0ldgHS7zKXy9SrJ25n2flzF0T53SFUzRynyyA== 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=khcZzeGXOlvwMGQRrs8GWzxXS1w3EAXlxSgspYxMVp8=; b=eZWZ0c5Sq+BjcL+eNSho3lH/IjOTGlyPlg5p7TZkeq0yV+ghgKisiysNizlWPZPFnPTEpDmU+tKHA1Qymxiux1lBKTx0SDW0PnREe/ouaAGvX/B/PR10E8Xa4yHBR5xkvuAGq8MgUK///JSryvx8RpbAtqlJ7d9dQAsjQpB7oDK/Ys+0HzLJeFaHlWXO1kgtdgXlzWz45BdViQAJFWuI9sDXsw3H7kO8BZH+j/lM/ymq6O2s9CC+3NbzbVUqo9dLmcWsfIYYJacN02F49Q+Su6AUKjL7r9M1B3ihrrYQV0kr9kBD55nks5SyDrc11OXQs8RsvBVkRp/uvjx8+G7llA== 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=khcZzeGXOlvwMGQRrs8GWzxXS1w3EAXlxSgspYxMVp8=; b=LqxS9oJ3uD0WfRpWTXVDNbyHpkse0ac6evryTDO5DJPqQ766MWHj1+a3yIoZsSVAJMVzcnmghLQOAVVYwdg95YRRe4g28mHHEliwoxD3PWdL5LK+dOma/sYqgmM35xVU9a6P/i7lRC+2+UpovYohlLTQMjJzn1qBjmIOvFIml9rP0sfKu+JDYODYEnZymm5aHwI7hFE4f7KfV3RTM4WTXFiXd868r6gh1VwoHksQE9qSK0jCzHi/2uVTj9nOLDBiyKEkUq24JRjI5+TLhOd8As2PK8BnipQEFb0u4cnx7spdqt6RKUcFDOODDPOkduJ+iKhcR+RNCZTDS4MgHFvavA== Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) by AM8P250MB0124.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:36f::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Mon, 25 Mar 2024 15:11:27 +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; Mon, 25 Mar 2024 15:11:27 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Mon, 25 Mar 2024 16:11:20 +0100 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: X-TMN: [mFxbNxG0AzbkvElCmZMHfWtQHChoU8ONbbAgukHhJiM=] X-ClientProxiedBy: FR3P281CA0181.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a4::14) To GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) X-Microsoft-Original-Message-ID: <20240325151120.2936564-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1P250MB0737:EE_|AM8P250MB0124:EE_ X-MS-Office365-Filtering-Correlation-Id: e39fe5c9-ee68-4540-133f-08dc4cddd7f5 X-MS-Exchange-SLBlob-MailProps: Cq7lScuPrnqkjmXb1vlddM5aSa/Epk3AqOlh6LBJbZGaXEk2GZRDduhH721ZWvlVlTbEwkevVh/h0LsQB2dxeSJy0i0RKzyNw5K9PssEysxjhWl+gxWjhxEXLNPT2YXDrH6oeRvR8DCYimd43QElKrRDDK6/yC1Y//FByL3jCqLxgvLKO+nF3p60X6Wy0n5NdfEcT8kgLRCDRNAJ6FzE2S+d01pBy7x5E3K0xshlP3l+DjTj8X6cUbh2ZYYwzuF6UHRyHsp1XyQORatKEb3e261+CXB/sj5Cljq3CpY1JhBhJF1gGKtlEHXeoZ5WSTJhfYy1zmypUNMjreBlKpLTvLqM4Zc/fdTIRirmHJWEMaucB/mvO4o57vvenZa+Uk3h1k84e+VzsrsOLWX0KREjKzsMeARwl9Jj01x27tG427MTkQ3FwTDR7WCBQGLC/BNn+P3bdTeDdHZBARL3WAMJJZ7RIQFSXlXNE1nrWpySBe/uuVsp+NIzDDQJ0OQCp/wjAI7akxf4rQ5/p6Mkg7gK8oFXY1L2b+PN70K8uo4olWqb1+VZB/7sdTzFH/4D/dU7bba6+nBG3iXbhhGd0sQl6XA6ePcWwqgwzehJ3ERWanKXRNhP/OOBYfIVEwklT98V74esNMbkato9yw+hPo8ee2m7QmBdxO6EB6EefjLWHp6C9YgVYzcDDBt531OA13a4n7f8/WmVtkv73lvYBivNr++tcwB+t7m7MiDDcGybkG7ydXQ2Zety84IPnDZ6P91LolHm5RTr9Kc= X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UYtqVJeyj64KEUNYwSkGOjE6EYp60oh18lfIj8Wo55oLkFxkpYlSsJE6BLAO3Wpl0sPF3buKECNtJnbLfbaU0Gx5LijPRlpfUM7hSwg9RZsnoz6sojkn1Xl7T0RQq1K3le6Ut3Z4T1UO0HGgZGgrhW9sXGoh6dFPRme1f02RxqIZjsEfmvGYW1/Y4dBJuKZz5RDUEAETqYrTJ3VHWSfTURtm1OKwbNo1g/B04BlWfX+3lhFW6U4VX+ysdRDPWg7jeEqePO+DVnkyg8O00RRslVMHXG6+3Lv++/WK0zN1ljdbcYKmdxJ40uD+ggo/lH1C65sStVM1S8DvMOMu8UgvbmIGk6e0/h+MKkABU7YFG93iDWxtYbyHZqDipMdd5AZDk5IoqpuMEjez8tBWt3UW6QavCJKJLZXAZsoY8KkSi0fvZK6Ij7/AT0bKRbsZopXuaEzr/RDTpSra9mV2F/FuDVtEMzFsrksjZG1a2BX4D/V80qI6EuBx2fqxKnv/cRgk0lRm4wOzxOLUHoxmKOwumcY6pjNKjxtQlVIIyDB49sScv8PsvpPWzBTaSiIdWRRjJVRZ7K7QXSdpa0idPmSGGVeohUxU11R28WzUpZ1OXtvYh1wccQr1V0G7sTbbChjF X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: oSdlUOY5eCl2MmKPSrECbgdb8wtY7ORptvfh/SHQ/psLMQOHEs5der4ZlcIkdVa8JCZoVz/BpMtebEfkxZHHt2PlK1Bbd4tG9L1GOwQ5km/cDqKuYT1ikKIj9JHAUZt14skRxIlNtLdtO66HBQEgDIXXVLbnWW5MiRQvEC9YYQ++3i1vtJi1GgWMMJSnaRLXWR+W4s8zEJ9mMzF34yXR94cBkekw2CdWQteQfo01frsAbEWdq7ReuMqtWwhAkowWBC7TMLgOIEJJ8HhssM9unMdi94CewohF8nFpt4i4LoAPTgb84idWxXijWimjimnxZTdXDOQ9BfwXip9g+PURnXlD0R1vO0C2PewqtHxNmtA1YNtJyLqJ3J62PjDKeI1Wvg5vL7DLiE5H8/ioM3tmFl9zT/vJawBRSzYLt+4cldrqzybFGWPZDslWMW6MkrV3AgPwpOuY2nefHdQtlxqbLvSDNeNkx9dTjq1fKgA38v+kLy6nlfA9GsLrgUmEDnewfO5B+cv53/P10FtwAmWZWi4lmvPenpNzrlpjAc5FIGPg1F48SskRjpO+J6JUd+5XFriFwRPGBebfVwR/OsHhdR8KyeHpCpOXYqnm6Axct8oXNsDcWH/ShHafvJDzmmpP2oLuiNhaK0txLMDM/bOnenONYX2qBKOGEumPBRcXxk15aDoyG/AmYU1cagJQTDxQchGt/ojUIk3u9mXRsQXptZfhoWXUSNZLRm12su3Y81nn+aHebvfmyR43Qx/7puJ7+WQnwlqB8gk4ZDSXMPlJI1LzWfyxZKz8Cld7ANrSIZnpLlrurDbUgRSJyyVkqMTQSPrNbcjqT7WRRmUvgEjF8dmrpUfkzK0KLee4/koAMrjircrb20crucU5oJ1O9EYswB4f8cySuzDgu/wZc04eWHuXWkz9Jn3uHl/w90FD7MIL494igxObsK2UR+0JBXoilRS+VuRkr7JCTpt2m57PgAcYrUXm78fTX6xSY5WGn7ptHoymGy2f8qDODOc4HxgRukG9JH8aPzq6ZcuVIK7otwGTv5I1OdJD3tGn7cmSwoZfg4ogtmYCHqAGvIvfJk6lPBdBMIQf+ClYfxPjaq0Xt93GgzzJHzcwJccXNENKssLJVR0CxQb12bAHTxCm6NMJpzCCRENWnnHvEsOYiS7WcZ5YhOYURuVy/DVH6fULQLckrNnVxaEShJJZyeEwkpbux3TzvFb9+sxxdUzGzITE+m6U2O9sGjOJuY0rPT3DkFP9xuszOTSCYM9Q++nURPRHRMdtysYeOZfQlPRgF9uXiQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e39fe5c9-ee68-4540-133f-08dc4cddd7f5 X-MS-Exchange-CrossTenant-AuthSource: GV1P250MB0737.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Mar 2024 15:11:27.7826 (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: AM8P250MB0124 Subject: [FFmpeg-devel] [PATCH 12/12] avutil/opt: Don't cast when the result might be misaligned 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: XjDJ6whMvn3E A pointer conversion is UB if the resulting pointer is not correctly aligned for the resultant type, even if no load/store is ever performed through that pointer (C11 6.3.2.3 (7)). This may happen in opt_copy_elem(), because the pointers are converted even when they belong to a type that does not guarantee sufficient alignment. Fix this by deferring the cast after having checked the type. Also make the casts -Wcast-qual safe and avoid an indirection for src. Signed-off-by: Andreas Rheinhardt --- libavutil/opt.c | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/libavutil/opt.c b/libavutil/opt.c index 3130606337..5fa8870707 100644 --- a/libavutil/opt.c +++ b/libavutil/opt.c @@ -2028,18 +2028,19 @@ void *av_opt_ptr(const AVClass *class, void *obj, const char *name) static int opt_copy_elem(void *logctx, enum AVOptionType type, void *dst, const void *src) { - uint8_t **dst8 = (uint8_t **)dst; - const uint8_t **src8 = (const uint8_t **)src; - if (type == AV_OPT_TYPE_STRING) { - if (*dst8 != *src8) - av_freep(dst8); - if (*src8) { - *dst8 = av_strdup(*src8); - if (!*dst8) + const char *src_str = *(const char *const *)src; + char **dstp = (char **)dst; + if (*dstp != src_str) + av_freep(dstp); + if (src_str) { + *dstp = av_strdup(src_str); + if (!*dstp) return AVERROR(ENOMEM); } } else if (type == AV_OPT_TYPE_BINARY) { + const uint8_t *const *src8 = (const uint8_t *const *)src; + uint8_t **dst8 = (uint8_t **)dst; int len = *(const int *)(src8 + 1); if (*dst8 != *src8) av_freep(dst8); @@ -2052,12 +2053,12 @@ static int opt_copy_elem(void *logctx, enum AVOptionType type, } else if (type == AV_OPT_TYPE_CONST) { // do nothing } else if (type == AV_OPT_TYPE_DICT) { - AVDictionary **sdict = (AVDictionary **)src; - AVDictionary **ddict = (AVDictionary **)dst; - if (*sdict != *ddict) - av_dict_free(ddict); - *ddict = NULL; - return av_dict_copy(ddict, *sdict, 0); + const AVDictionary *sdict = *(const AVDictionary * const *)src; + AVDictionary **ddictp = (AVDictionary **)dst; + if (sdict != *ddictp) + av_dict_free(ddictp); + *ddictp = NULL; + return av_dict_copy(ddictp, sdict, 0); } else if (type == AV_OPT_TYPE_CHLAYOUT) { if (dst != src) return av_channel_layout_copy(dst, src); From patchwork Mon Mar 25 16:33:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 47450 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:c889:b0:1a3:b6bb:3029 with SMTP id hb9csp1304929pzb; Mon, 25 Mar 2024 09:33:29 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWBIe+V2pSlqrWYIxjQqGaz8DrTKF9Gr9FdK3fE0WytuKMaphZYgxiDEVFOCaUK8zkfLonB5k178UzmZqhqgGW+pktHyGQ0LvIPoA== X-Google-Smtp-Source: AGHT+IHwL4o/AFF1c/mtOzGUR/WfSns36gCghKqDIizDdUaFQ7r+5cCHqBcmVdy6nXhXXqPXJbww X-Received: by 2002:a19:3844:0:b0:513:c5db:c770 with SMTP id d4-20020a193844000000b00513c5dbc770mr4365362lfj.1.1711384409295; Mon, 25 Mar 2024 09:33: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 f2-20020a056402194200b0056c181cdfe6si682070edz.51.2024.03.25.09.33.28; Mon, 25 Mar 2024 09:33: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="lpgOE/Jt"; 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 ACE1468D44E; Mon, 25 Mar 2024 18:33:24 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04olkn2083.outbound.protection.outlook.com [40.92.73.83]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DE06A68CB2B for ; Mon, 25 Mar 2024 18:33:17 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T2JOLnPbcHF+sKQqqpCZZU+/Xi2ISsb5ZyZTndgHRyxGnDlJF4mwieCU+BtrS7dc9LHcQIEHGi1SJ1neEIPszjD1LDLD2f3pNGcaMKv5icug3MLNgZ4It93h/WuQG0uyou5WnuJfdPFA1L+e93z7txG0jf0226QEJTWXHqU/637ybF7mjjbvEeKadQ5bN61/G6Xkhx7ViRp1ht1ZKH3stauB9HMEuZAOmSPyEDHufjP+JzW9dDHmUGfUlo7gjo0qh5TuVPuNNbfb5+bpPSno2+QDVTAzknrJ8ZHusFFbCjjbMhDOYWBqqXqTZuXyHhHWrUu212QHySAJ8edsGXmegg== 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=mEVCQAnA1T+d+e3laLgrZyjD5tluI2dFyiWurTELBpI=; b=RFchtVsnjjWYpFdk/V9qH9O1fCq5yvavMXJR9CMnfyR27D0wfO/X4BzkQq4so9xGBXZJFPW3AP8AqFZFnLfES/wVXaPfEOvkgdCDIY+2wwdK1omn9JvHdIWg7TZF40ftCCvs746RkqeLJTzvzRG+xNMZ8unihorZpwW3MLAyKNbo8Re7YZTR+orw79sDJ/P1jVAyA3d2lGgmnangBbUO+noQbAEinsoMWMKLi9o892b3AlOehFrRwQ+/JmUvYBqLar8K0wBH8XavYwbJFsZDmmBj0twtKTlmhZfCYWwKguAv/UH67xA6gIFZ7L5EGr8ZVY38xBDGTbMDtqL8hsKHoQ== 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=mEVCQAnA1T+d+e3laLgrZyjD5tluI2dFyiWurTELBpI=; b=lpgOE/JtP1geb3s9WpX5+z/pDVzhwVvCFABmL+sMFRswHA5goELmFL0OFU/o3DD3T9xfXgq875cZI8hphVii4fVjmYCMcEbNPMNac8ZaoT8LrXH2v9fK1Stx3T7VUSuKZCJdSPjnZAZLWCVPYumqL9/jNFjIM9vXXO0ZWWvTSL9+ze20Lirkd3r531a6LrjbNJVdo3fwoTEc8uIUCdDKsaIFhWE16A/RVB8iFTplveyL0j1hJ1f70wBTLrfO3hG169WLbwNY7JbC2E1DAvuf5oq2wcne5fjqKNi151O4ek3FAlfuZJoUUxF5y+s515zn5fSBZsmIFr/dusR7o2LCdw== Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) by DB9P250MB0546.EURP250.PROD.OUTLOOK.COM (2603:10a6:10:338::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Mon, 25 Mar 2024 16:33:15 +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; Mon, 25 Mar 2024 16:33:15 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Mon, 25 Mar 2024 17:33:08 +0100 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: X-TMN: [JSR8aisCi2K0ivA8jeJQxipvs6v/jlK6+cbUXtWOJcY=] X-ClientProxiedBy: FR0P281CA0165.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:b3::13) To GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) X-Microsoft-Original-Message-ID: <20240325163308.3344912-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1P250MB0737:EE_|DB9P250MB0546:EE_ X-MS-Office365-Filtering-Correlation-Id: 04ccb2e9-b86c-4856-4ee7-08dc4ce944fe X-MS-Exchange-SLBlob-MailProps: Cq7lScuPrnqkjmXb1vlddM5aSa/Epk3AxjTjHd2hjGxGNeUeSHpop/PE4U/PDv8CdJG7KWhfYiBgoNvpzzbOTAXYSf+Va5TrhA1+e6JplfIfLpKNY622aV041vVUF7utYNc0Xq496vpVySX3uO8INQqk+FSObHpvH2TdxIbTROWaIRTmBQaTiLZQelxpFxEAzbIEZc34hC7IZECcQRUEkG3xbyn9Pf3Rvnqa6rhF7zBpkofpny1WsSX6nmXfU6PiiC6k7qzU96G5DVmJ/j4ZK+g5o71lc797BhmhxL6r92p24y+XQwho3LnjNd4IW/bBVhYoUpzSqqGUoDK0cd40vhVyunMoO8ZRMC+P0RwUQ6am8EFZf4UAazvrYNuzU7Zkc3v+0cc65Dx8gWJaucBYB6gGBUpzbPGnAukpiGrJ5GKiJAXb4IxWGPf1jHCPCsT+qdjZV2NmFrgjqzWFkxneXQ7nDXpTgN9BH+F+GIvzkds4KOZEdB44nEcGTfxwjLfgXBLhdg5zUmF84t2TahL8Qc41UVhmRvMDUTGbhQ3cOjt0KcUfKz7AFOsc3eNm6s8g5C14XXlk9WU1qagXx+XlHEczZzWZqcm3q/49rW6nr2kxOTP1DiTgol1lBqG9abhSQGdeUwbQghTjdwUxWA2AYlm09ydkJU2W42ekdCQnQ2+i5NVGsxxnO3q+2yTjdMc9P/WhluHxyDHtfFJx2csnuB1yJ53lZDl3ciw+2kKSPng+dzFWvlsJlVTXThCorvNG2wK5WOnfPwk= X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Bmv1Y4xYEf3cfQM0JYxWie0BGehD7ked4A3/yAy1h48BRT3p9XixrJJOUUHnYtO+3J88ROMVwctMc1ucKbXkiTag4s3J2744o5Wnmsp/h2evfOy9Zv/BJoJvwHwQhcdHsnbPh3OmQ0+1lYrI3E9nJiC+3d7zLo9kBpNZPfsl/W+3ArRDvyMlThyIxaVXRr6lXPcR3/A2DdNnBWGelXFJJs0E/dBSzAFY/TaItza0lJIK3l3DZcllPZjliVFSbM0p2DQgGWnepVoCsl9CljtKTQlOSOPrcsm1xu6QWREIDmvR7iTK1TCg4Aml7yZxM0qnOYBeTz1SVzfNP4RvNS/SXCLlKuMCcw53g20pr3zrhxBHVoYlYAYOYa9jDYUXrlOgAqMl+tdloBgrQaJ+BeWSVLE3QVRh30FiJ5xTC4XWntWnh/T8YOorTPmBimZ1w8sV1LHnnsjNVxqFDY4q+geRGY0G8MIPXuobdJTQxzSSulNQffB2gZ4gdGTh4Tt8m/t8Wzd+GRXfJ7igV4Hx9kFZHxGyOzhAjir2N52P6SHp2JvJ4EYPnPVRn9keCehgyiMtwRGn8KfzkMXDXZvEHqwHTxZc/1v/6ECZy6evW5NSsGkQdGJfmReON8w8GptJP9Nu X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ALwAiFzGGvK/fbIoip3OwsDBu7aTmEhTvflaKGW6WiDWvw/dxgT6Cxse/rtrzCJVyG5dVHGCXb2NMwGvwfiytM3k6wglDpnt5IgtN+eQyTxkq1PclY0IW3N8yyaKlJ51s2jmJCbh9n9mLUX/EMIZK5gMUWj20EWKBd50h1iEFhLMLNx6WYUrw0e6+kBESyZ9lAsWN88dZKzwpsbeoQ16QNomRdIFGaDbbTrH33CtgJzFvdsOwXKhNrhyr9z/jHgE64d6agorxRROg7lctDL7YDSxer/4ZbGH8YaVkHuWtmNmH3a1O/pdSFLb7UL6HLfabD6+gMZ0FwL2SKobTVaLF7vC8NZWQtXuMXJ9SP3LuXH1QqPnngLWyrTxsumqGGjvsxf3eBvey+GRKWl7kfGI33bOTfWWkc37/DAF8yN/ISDCjnK2YKnjYAz3uF6mU0dTM9jueXYIZFf6gCR5ubbC7AgDNWDotON0L0U2yIxAb2B4IIpItHIqScuClP+xcXpK8kXfX0/Q2bSKjoc0uqjiWE26RZBsOSdjcFlMNaT7uyNiCRd00dvmE90i0Shg5Gfn8fotUad2fLxcDxAz7qqYLyCRgBLqKT+XQ7lhO0V0pJYNBb2UoZaJZbDDmVSmFqjHteI4DFhVfV+opcndoov4kdc77CVYWq/syiCG6oLmcCRooIcrIdzn5MFoRA6tbonIF/Vk4nfiv3j22F2IimnIh6PI9RWx29Va1Gc4NKBcB4N6ma/4ZO7Ub5PxFhWbXrcnTh20iUEe7520bnHkBh+0U5AV834iwCeRxygy56AoK00IbHZRyzPxik1g579H9KvUpphu6ACAHIN3aawssuV3R3tqZUyRCg92Wmy7QpznihRFAwT6NQ/Fe92jA77kbvKhn9V9XVwJa9RiGEwhjZ2bIuvs7nCqY5refQZlrobVaeo0zzURrKgqToiYy+OZD+zYO/RwnBzeMTvL6iJTCo0IAtNhlanR6Cf0+WIpKMgpHHb6pxeKvd2KCG/E1psQDNwozxaT/DG1btZc3Z5Achx2Bvu+snqwAVcuPTvnOz7+EcqE8oadOQLQOPNxZ8QsiTrYclP14VInAmyQ1j/LVa6OSK4CeWBpjDFN39dMH5teZ3uZP10BOxaWEwkkKMlcV47oV+0apEe8dNCL3NL0T7Kxngt1KVtJmG+9VFU+JggVuxTvFiuhzNArnoWop5LvU/hxXDPRmTyn0aNHTmQCerA63Pvj6ehgQydILt/XKWWPxNxg/l5rnHTwCvSCN5hjKAOGcZAe11opO4YJVbdzgtYN7g== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 04ccb2e9-b86c-4856-4ee7-08dc4ce944fe X-MS-Exchange-CrossTenant-AuthSource: GV1P250MB0737.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Mar 2024 16:33:15.0794 (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: DB9P250MB0546 Subject: [FFmpeg-devel] [PATCH 13/13] fftools/ffmpeg_mux_init: Fix double-free on error 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: 3rXpoMHlx4z7 MATCH_PER_STREAM_OPT iterates over all options of a given OptionDef and tests whether they apply to the current stream; if so, they are set to ost->apad, otherwise, the code errors out. If no error happens, ost->apad is av_strdup'ed in order to take ownership of this pointer. But this means that setting it originally was premature, as it leads to double-frees when an error happens lateron. This can simply be reproduced with ffmpeg -filter_complex anullsrc -apad bar -apad:n baz -f null - This is a regression since 83ace80bfd80fcdba2c65fa1d554923ea931d5bd. Fix this by using a temporary variable instead of directly setting ost->apad. Also only strdup the string if it actually is != NULL. Signed-off-by: Andreas Rheinhardt --- fftools/ffmpeg_mux_init.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/fftools/ffmpeg_mux_init.c b/fftools/ffmpeg_mux_init.c index 818d76acda..83ddb21844 100644 --- a/fftools/ffmpeg_mux_init.c +++ b/fftools/ffmpeg_mux_init.c @@ -832,6 +832,7 @@ static int new_stream_audio(Muxer *mux, const OptionsContext *o, int channels = 0; char *layout = NULL; char *sample_fmt = NULL; + const char *apad = NULL; MATCH_PER_STREAM_OPT(audio_channels, i, channels, oc, st); if (channels) { @@ -854,8 +855,12 @@ static int new_stream_audio(Muxer *mux, const OptionsContext *o, MATCH_PER_STREAM_OPT(audio_sample_rate, i, audio_enc->sample_rate, oc, st); - MATCH_PER_STREAM_OPT(apad, str, ost->apad, oc, st); - ost->apad = av_strdup(ost->apad); + MATCH_PER_STREAM_OPT(apad, str, apad, oc, st); + if (apad) { + ost->apad = av_strdup(apad); + if (!ost->apad) + return AVERROR(ENOMEM); + } } return 0; From patchwork Mon Mar 25 16:38:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 47451 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:c889:b0:1a3:b6bb:3029 with SMTP id hb9csp1307938pzb; Mon, 25 Mar 2024 09:38:41 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWAlXhgRCmQr7D6kkHd5VpQQydDPvROCEMOYbzpc1Y3lSsmAcQjzmAjY0Tk+fMCdiQxoSE1kCT4DsWKFhiBRFsJgvUkGJ4I82UP1Q== X-Google-Smtp-Source: AGHT+IEhd1MOs4TTc2/Woh+uBoLBniO7g0Aj5ZdNQDAS0qsiyq1rQzhajJ1vWoHyxPp7602uZGIz X-Received: by 2002:a17:906:6a07:b0:a47:5104:c39 with SMTP id qw7-20020a1709066a0700b00a4751040c39mr3787788ejc.0.1711384721613; Mon, 25 Mar 2024 09:38:41 -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 p15-20020a17090653cf00b00a4dc79d3edbsi177834ejo.1017.2024.03.25.09.38.41; Mon, 25 Mar 2024 09:38:41 -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=imx4lbBB; 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 4D58D68D44F; Mon, 25 Mar 2024 18:38:38 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01olkn2020.outbound.protection.outlook.com [40.92.65.20]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 98FAC68D25F for ; Mon, 25 Mar 2024 18:38:31 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iatidnk4Tm0pw3PgK2TkpGqOtT9SbPqpw0Hd37pc6GFUP1W7vQzxfs3Wb4tGEaPgB7ys75dSaowzznmkHPflKWW3Yrudl+o4tA8z4lB9yoW6u2HgJgK+foYdaX6NCHLIAljY7cKuB/uYbyelwOWRhOUYIvdRenmmsWc23YO6HBNfSykgWEJuQlsEHmR5xLlhqSnK8zVPBpDtKD80ttIiCQnBm0lb0zSwvHKyIaVoR6GXt1+6r8frQmGMBiBk5P+2B6GovqiYIoDkPJzsKftkPjsMXIKnE3GlHA53FMz6SeQNF26vlzDarAF1dGwN+deulduwc4rj2My7y2EyhNlFkg== 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=vkcseiTx6LGjl0VYWdjXF9f2zeNRcDzwCAC03tcI/18=; b=Kk6ZxPoUddKrI/MCNBbJ9hXalNDP2Hp+94o4TW3bYxvMk8FEyB41TBZvdlwwmrermJHl5NXTaEAwofNmO8xlEqIiK+qE4OTbYAS8+NWd+6DLGRXv/rZIs+AYMvgm6MMsCSrPMtDZnoOtelJESpLkkQlTYL/DQfCHMb12cbRfaJaCUek4EYKhWeHcHwrx5dangvR2zWM/tduAjmoxy72GtQEwlQTm9fmLzKKUxO0Qt649YENJIG+0sTSbTK8hfHVXJdXOSspjXSh6VeTxv7jMMSqkWxb2rfIVx0puIrvpjLiuJgHhQEsZfWkBt7pXZo0wCc2CyfUv0LJ7PD40r7LEmw== 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=vkcseiTx6LGjl0VYWdjXF9f2zeNRcDzwCAC03tcI/18=; b=imx4lbBBB4MVfS42l+MCah1v31daRUKOKr4m8Nze6qMzK3OQLFTC9Wr7mpSdLF7tnZdG/JHFaWLhK4YnkTD+FKYXeHBe7mlb+3Ez7rdGrd5y6uYVVx4eADmJM6Bq8O5iblbIAsFC6HbePYCtZABvBlb1BIWKQzwdVHo1utx7/NZ9dlsXPdElUU8dPKY2p+5T7bWmAOCpizsu9eppPkFZElw+QV4NSddxWPNgoyO6lf8hTk6cI5eE5mgtrV7iGm5vGt3SbTm/dF2Zm5/t2u7jK9AcJq9tu4poSrr+b03oWyyM/48jLYglf+b1qxN4ccGxc1e/yYb4ABZ4gcwKT5lYrg== Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) by AS4P250MB0509.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:4b4::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Mon, 25 Mar 2024 16:38:27 +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; Mon, 25 Mar 2024 16:38:27 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Mon, 25 Mar 2024 17:38:20 +0100 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: X-TMN: [RURa23KQKNZwwUVEj9e7p+Wz2zb+uwqE] X-ClientProxiedBy: FR5P281CA0027.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:f1::7) To GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) X-Microsoft-Original-Message-ID: <20240325163820.3345640-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1P250MB0737:EE_|AS4P250MB0509:EE_ X-MS-Office365-Filtering-Correlation-Id: 71645fba-d18f-4896-d14c-08dc4ce9ff31 X-MS-Exchange-SLBlob-MailProps: 9IecXKUgicBMjzDtAlr46x5HKEJiZ0Rbv3dRhldmIHspGVUGktY4drUKzFJR3UJAU1oACAD0xMfwV/jObI0GpxFCoMCk64oxeBDa+DXXkHU1IwstIrhHsA2oqMt2YGbM/vOAZzPwi6iDZtGneE/gNrz+S3FliQN3rHdHMXPzwnTie6bByqFiok8OtHACgJg/u8bw/AUizQLOKUw2a0qBQ7byt2AZrBjLODw9Ewb+BQNraW/YaDYBlww7jVAsgj7ZIzWvod/rYsNsvtnqJlSriPynC7uD50yYkUFiP3zKYSfRSFJOOLJkr5SWANqWlLrXPCxj9a1HH130UiBQhSq1r9mNPwWx9iH4TuutuXeIifENpbNYaBYzu3aEYOybai2WehRZDngZNmJBVJW65l22N2EX4yTco8W+owfF3Pl96Ndti1VbvJkyqfoEoO2zi/OSKaFvFQNY8lONFDAD9mK/GGCq38wKJWXfRMchhxKfYIIiu5FZPWzme2blA6QWIl5dCtZi9UuphCbVga8bm2nANRvRTLuQWtEFIST7QrELuWHzk7ha7jYYRQb8x2Xheu0UbdT2iuOcHtByh13ReGgC5e6ixeuLAGSNSiivrr/JU/fy7f+Pp37Fg5untSDO6DVYuhGay7N5t9G+kHhrgCjYXXdA1qeZDbkcqfiVm4MRz6mfhopEIFJMjz34YRvHumENDvneojKwHYI9bHTWcSS8DW6GoNk8yC1y9y8Yt7GLtUrt6NK9qCUddA== X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gjIFMSz6/Ku/xeX8vxdOH9BzONzepdV1g+/uEIb3Ba0VZoHAt0XgD4C9r2amhgbMRewmc+LkEr+iHPcPay31R/zjz7jP6w1U7OrI+wXRspCv9cQy3dSFef5wXpz9BwRFBdu4jQaIGzgmrOnCIviZUKQPW+Y69OvVztfTlpLfU2OJSvWWWMt59ZA1iHeCMn4hudCSe2IhIWwIFFN4We+qVnpNqcR1XD7IrohvpBaiCt6AcGcmvzZjbQgDgKZYLWNcMgbSk7zDtV0Q/poBtUXfvHPKi1kVzhukH30zTporK1trs8QCPyeODyC3+l40ynPy8GXJXnjtoLhz+qZSKu/bjNqFxc0RLFKwjYta3sxEDMtZdT0NviRbKasxR0JQqx9bB/5AR9ro6Qg1R/DjfF+EM2owO+XnkHeCPmujOdpoK3OqEdZuLEMJ1d/Bi1yH8z8XX7r1QwvmQCSDwNo5z8v/25SVx4gHyPYy6km6a8y+Wb/xL9b/i741xWx7spY3HqGgucUgd1p6TdI1ZkG42VlcdmI7+I2fsfP1GzgYXck1Pu4w8p5BCb6s8OkfSDNXmXPdSfKx6gDLxaCH/mtlx8zMv/jC7bMYiBcUbGDFqvysWuNM0WgyOwtakgR3uPqYADQV X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: fiGmYVv0iLfwI0qqVBaU1QazkB1E5kwN1d7joNRSdLO34KLLQP3E795h+G2dC/eF7ztSzapRpoDFwbMLLV81+RgElNWuvTsn0fJF2+yF9XmSSflCd6AuWyaEb17v5kR0XYAT3ToxE+QNIAenuJxfj8aw8hsiF8MQDeqyfyaSahb7ZEu6Gdz+oBJNjwKAgbarRENc10JdrZwhPCELw14/3B8lkGznRCRjFwfoH3VfqT+xqrQsNMJIdj3uvHUsNEg7mkAWqcuYqNUn39zLT3HF0Xpn6RX0NPUHuiYW+K7/6BmY0HcLaCZ4qyHvQh7Nz3tgQZRqJWOzlomwZTOZJ95H2eDsZHCQk0cQtgy/eoxK3g/3R3egIqoWiXKl1ujkZIp/Tfzv5WR9/KQl+uxCoxOfGJJenr9H5gkVQhGteGNvniX1GoQs1Y8YGfNH55ZZoPTiuui3w0KYq9MAOZfi4cqiruMvWbDgiCiX1IwfW4zcnSIi4HPLg9q2juh716lJON8Boh321+T6Y5lhNc1JjyNmwSL5VkalJq58tkkSc5bWrZW4itRBnhc/zjvjq8T90rvQqybRaB3zAu9oEr/9afXZ5wzPRW5EDt+b/Xt9n+rWmSmNUFA8bjsRvO5BedD8vP6tsSwZfxVj6aQyBoCmqBU+mDuEyXGj+3zDMBRT+uJHTdQqcRuUTUkQQBFvT0JtiN3Xjru2/8MWHN7VWbU0T+GRdPE+4Q6U6Mk9pRqnX/YIxZC+sWAjoencHCBkx6PBB+ACF93Z6jH7BnYaMwBLUdk1J6ZC4IuOvXs58OSluv24hukqoxD2oSfE9EFGvjf2FSJ9ZbDlaLYYVJ3JX2FmDL7Lb6vQj7Wtbtg2GPjyv0MlYE0blyl4AZUAkPrfwbnWCRWLMXqbn3N8Nr45AO3nngauRauiC/o0IOedScgCUSwMF4PWRPUW2fNogXh8C5fS68/KaMG5zGnHw5XlKrJSkA0vzhSkFF66rOTVRi7Cyl0v3p8g/N8LeWe49U+63y/jUhhm++6Zo7Ghs48+QFhXbh9FnHeIZRRWB9aBVHX74ch+iMLG2lE4JqWEICnKVnm7+eHrdUP/FhCAF77VGMs/qbej8zidqqcC0/xt8jZ+LsfRflYClP0psFkvrfy+n7+KarWK9xGpilgATgXzAqbfdgFPmbgWc9OmR1b/OxqQzgifisGuCQGPco/VK+8E4FoaZ//88JraP9kWu1gGaROGaYqxWq4Zsy3fpfZ0fXibKuTkoeGqU/jMOljjkTFdKjT1g3OknuizSung8mFsSP5eQUE3Aw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 71645fba-d18f-4896-d14c-08dc4ce9ff31 X-MS-Exchange-CrossTenant-AuthSource: GV1P250MB0737.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Mar 2024 16:38:27.4846 (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: AS4P250MB0509 Subject: [FFmpeg-devel] [PATCH 14/14] avutil/avstring: Avoid av_strdup(NULL) 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: XCZbW7XQyOv8 Signed-off-by: Andreas Rheinhardt --- libavutil/avstring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/avstring.c b/libavutil/avstring.c index 2071dd36a5..8702fe0455 100644 --- a/libavutil/avstring.c +++ b/libavutil/avstring.c @@ -299,7 +299,7 @@ char *av_append_path_component(const char *path, const char *component) char *fullpath; if (!path) - return av_strdup(component); + return component ? av_strdup(component) : NULL; if (!component) return av_strdup(path);