From patchwork Sat Sep 2 11:31:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 43463 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:4f16:b0:149:dfde:5c0a with SMTP id gi22csp111777pzb; Sat, 2 Sep 2023 04:30:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHPRef5Of1VqIZPK/deRKQN3jCZ1mUR66COZIthmPCEGNo55Fl5fEcCzcLw/2iYHmzK7b/7 X-Received: by 2002:a17:906:3145:b0:9a1:8812:a8a6 with SMTP id e5-20020a170906314500b009a18812a8a6mr3296164eje.73.1693654256660; Sat, 02 Sep 2023 04:30:56 -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 x14-20020a1709064a8e00b009a2154511f0si3912968eju.197.2023.09.02.04.30.55; Sat, 02 Sep 2023 04:30:56 -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=BCE10+MA; 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 6C0A768C7A5; Sat, 2 Sep 2023 14:30:51 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04olkn2052.outbound.protection.outlook.com [40.92.74.52]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2D15568C795 for ; Sat, 2 Sep 2023 14:30:44 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hCYnKruJJiy187uwAqW3QS6cHxfzCwbZB+Dq4bDSpk9Y5n9XOMY8UfYDAQCFH6IwAs75KuFmV+tMicSeOukxsAG4JkTvWHTnNF7AOX5/z08yLrr80/x/tiq0u5bVET+Izf669r89ZPjwyvTe8fmTYv773wbq4D7vPv4jsUlQR0MeM+iyOxXDrf2UN4RqGvxK7WSNBXh1M/H7Ea03oUiOfjSJiGhko5sCJgjda465Uiesbp6A5oR9+9pzvM8oQX/PIt3aQjJB4dzcgBjPtUFLb5CFB3F5Ly/tCJd8X0Ox6OVksGW9ulrBG7Wl/yIkVsFLw0Lt2gHFPFQsuHFa6lVilw== 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=g2EV45DBBs5m1ISTwHkKE5lW0eCLUDjRZMhx8XHOYY0=; b=QlpbyVZmeR8aVRC6k9CYijxIliZ4QGHOq8j5LT4ASDUidBLAADsMBfmh3jRa4KyI/HDqGEkmLOzx4GZwfCQhVGw+74V3u2S/b+/6NHnhVJSqwlhT3luzP0MFmYcpkyxvmZCuLAYrvcc3Ud56Vdz6fiSLy3bwjmA8xkJGPOM+uO9rZ0U6uMfSLofn9X6n0+6vL549s/Z9y62JlREkT6QO2G66ucC0bVDpwrSZT6959qVXMJZZ2KSwqm+zFCCDzcx+/VGw/SBstClzSAq90iEYhizbrcTSWTKFaTYgLF3W33q/dKmaMwEMx27P3E9uvazSrpDVRXWC79b9hgFwUj3aQw== 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=g2EV45DBBs5m1ISTwHkKE5lW0eCLUDjRZMhx8XHOYY0=; b=BCE10+MAxCj5kxh5Zwurq9n39lAYdtdfDSAa+FOTyvoIiqurhGzj/D4erLcWyQRi1DxNiOqR3hLSZrOzGKH4HfWf7S002+2ekQkP4bQkevqhauXex7PrzbTJ0ymw4Sww6axe4fGmhnBkghuLcsgxJOFfQJ496Z4DtJEsI1/RySYxnoHeMMX1aw3f/0On9hc9DEIM+3U73Pdjj9uHXmkzbSrC8ay4S987CYrjeIdI7DGLL5SAv0Axvgjue/WR2lcyTv2EEmks1QTvicAAN7p2zXuzLtiho1XYdUXPlOiwOFbaKpG6U+MqTszpMg3O+oaQDohY+yudPQgJWUKvYH3izg== Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) by AM8P250MB0358.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:329::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6745.28; Sat, 2 Sep 2023 11:30:41 +0000 Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::5e01:aea5:d3a8:cafa]) by AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::5e01:aea5:d3a8:cafa%3]) with mapi id 15.20.6699.034; Sat, 2 Sep 2023 11:30:41 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Sat, 2 Sep 2023 13:31:51 +0200 Message-ID: X-Mailer: git-send-email 2.34.1 X-TMN: [HdPiP6d64JfmvNs7UcRuK9pbeb8KW7D6ELgKLXJyu9s=] X-ClientProxiedBy: ZR0P278CA0049.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:1d::18) To AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) X-Microsoft-Original-Message-ID: <20230902113151.457826-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8P250MB0744:EE_|AM8P250MB0358:EE_ X-MS-Office365-Filtering-Correlation-Id: 927ec117-199e-4aa4-bec8-08dbaba80995 X-MS-Exchange-SLBlob-MailProps: ymJijV9pwJlwq84OAZ9+HxH3L4ePU4ZThGCbII00Z/lvaCs+Y/BYyxEt27x9oViUpkep/SvvSThZkMc3/+ZCHabGqPCjB2tGZQmZin5BMNdIMJNdxZ/lj3Pn+/Q4SuANsdc56VQXV3A1z6LCWuN9qepSLX/+q5rxgplf34zqas5Mz3/DwXjW5qqw6n0Zj6MuQkpatvu+E4CIPXkagkpuDTryyMOmUNTHg5BT5drib92HBcdtzZzXHhseQu5PbTZpMfbpwAM9KZ0c3Rh3EiQ6mBqFhoR0JvAPUCsvTYC0RTnHM5Deux7STwPtSETNJCd6ligh+n2J2eFrAtvDOblrW3gcB/ZWbTwTS/wjf5uOJbtQOMmnoGqc63vQAZY4wa28cOA+K/1+wpVSsV16BMX0uBKfocbP5Nz3kkxBgdBOBAbXWBAbj/XtNvAx68kStv2YzMz8GsZGoNU9UBEnkcjGhksTC353i+SjXcPQ+jsH2zGWnU9a4ZnWyePuFyph+n97QvjnxvPhbPtfpFUPc+x+EsTjDqv+Q2JUZvrja+p9YF679xWgeGFCz+1RrVPKU3Vw1cLUMns5Q08VTzPat3WOcAjWV7uv3MpkhR1Qm8sRDyw+Sv3EX7I/BzziNLnHF4BpU8U52Vp13dPhc/1A14jXsQWZ14OpYAF3124bcGe6LZY2QraACyCjOi01RSIrl847+ijvD0Ve30xQ0OGjyjiRu7vFrsor1ED7rylWHbM1pRBV9V7SW7aj2LfqkJ9YeUi+n1VHVTdDm778HNfY3sR1sbNSR6q9+WEBGee+f1TFwuWpGHQpo1v8WbmzKtUEEqB7 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pUifyIQMEzSh+jdQb4RRzOvIscFaOdWRRaPn6uft9RY00nPzpZus6DF3aDFfwb6zRZ2pr/5NG4gJo8lP8l0dXsvji23tZrBYIlyGYCkxsGrce0HCHTpGZVVyNqQVFsJ6HnMTlUfBrz+QkA6i6bIjnmvlJGPXpoYSGvcKcJxet3GD64nE3p+jBxb5gl5yAWJzE8+assJ+N0jU7145x61nzWD53O1QuZAyTV84pu0S/1o+PmZDnVsrbR+MV5dHZ9jplxKUOQNzDNZ4Knm9er5gNDcjspK7/TLMevP4HCa3rus+E2bcyemwiI1ITTeQsPPcjnsc7bupySpvg16Xmv51ZURI6alDPsQakLImlH9iLO1Acr28vA80f8EQbNV1RHR/DAIF1HLuGFmQpfyJaYIDCLeQu4Xn29kHvvk94TU8PDF9+TGX4b+vszVOM5AoIRKQrKrEv6N1N2JhwIQuK+e2cWTsaEQiQ9B14aQB8tlYRWQJfIS80HMhq81RtKvKn2QjdLcYo2AiIbALRl8h8kILirENEHypv/nYphsX018y4rPqrMpNBdnIl8DDcsLDAwVBOl3OjVAVnIiXfM+tpTbFneBoCfIEr1355J6/hMt+vHdBJBuDn8vK9j8oxBKXiyUj X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: jFQeQTOH50gS4rQEW5nczP33tcr0DUWMEeqaGbb8iZNx1SDiLytuEQE0tQ0Hq8HMT98jsvWvpgljWskjq6zRf+AKN3HhZAo5ZGQe9hvGjErL/vxsH489UpDECyhjk9X7Oa+iaiU208PhTkjtk8VPZhOyS7px3RtYEdQrhmAF1k19T+crAH20nrFfX+rz4t8mPXRRkRkTNlAJZ6DZ4gEKzPG4tnw/as2j7oHNFhOCE0pKQPAVQ3cFoOyNbB+jVykhY4W35nQQzkL5F45DV2+eB8uevAq8kEXkSovA7cMU0y9U6hMEmhv+kgwUL6wj5UCWclxs+7YHa6boX01p/5M1K9KkhHf8sKgXX9ujFu8JYFIDO6cjs7zb0byN2DJi9O8evB0SWn0L8sYr08CiaSszJ0Pj2xn+R6ijV9WUYfFSdBb56B/K9i93LcHnYq10rcEIMgpiJ7aZxGbM+r99TYhzPY54RfDKSM5bvWFnQUQoFW4pF3rgaC4FVYDLfRcwpNbRBXZ+o/Em+6VDObkG0x+Jd6qkGhewy5M1Vxpqe5Yk4ke7675TWLnQheQtuZW4mnCfHMXHHW0BxRpD2zHYFOHD5GyJpvhrO2MKAZa3zKbd2bOsmRiq/bhrLs1iAQEx9Z4tLY8CQJMhTgpmOnLdEOsinpnlbonQJFk2DLjRC99yucLCURNEG/p8p2Yg2h+xSInZT2YRaAYSXWXOj5zya45DRn8a+s3WziYiiNbFICGYKnF+rvHI/SXOcDsQfJHBfYVakdqpoaYcp/7LEjW43G7HSv3UAWmaNh3xoW3rmPS7PVMlWHCjUaV58gGbgw48etOirTDKjJDlIyLe/1E7HPfUPh26ZtQBtDyxIaPxIWf5aIQraDXx5BgBmV3JokUAPTc3jQQZLvKJMUuBE6ZtjO4OziDM6i0M60BtQfPVQSToSbCvmIi3DYQNlqvQ1OTsS4JZsteNSURFSCXz05FBSgsBfyTFNIckrkDZLCrEgtvDB9jR7Pd98OJqFn6fAZwLmpdgMkkVmsnGIKRGZc4/9mM4whyNZqjowsJoRsUa5RDXDPLWqm9PGCTiDnBK8/7vmSViaSTXoPaFm4Y1XPNqYjpWi4ZFNe9Lm6g8wNo+q9oj8rCdxgJfjOYBUgDwEtNGL/f+8K3UyCrUi5LAEbtT4NPm1mQuuBmLWmyCqCkRe8kjuEScEhGl4B/A52yZ0udhXb2kEsHz6XiOuurrISeh7aGdFKeTWA7qmzNbXTKws+tBlOMIs9DXIkR6NBYGQbYsYvL2 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 927ec117-199e-4aa4-bec8-08dbaba80995 X-MS-Exchange-CrossTenant-AuthSource: AS8P250MB0744.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Sep 2023 11:30:40.9998 (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: AM8P250MB0358 Subject: [FFmpeg-devel] [PATCH] avformat/avformat: Avoid including codec.h, frame.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: uUA51xc2/kgE AVCodec is only ever used as an incomplete type (i.e. via a pointer to an AVCodec) in avformat.h and it is not really part of the core of avformat.h or libavformat; almost none of our internal users make use of it (and none make use of hwcontext.h, which is implicitly included). So switch to use struct AVCodec, but continue to include codec.h for external users for compatibility. Also, do the same for AVFrame and frame.h, which is implicitly included by codec.h (via lavu/hwcontext.h). Also, remove an unnecessary inclusion of . Signed-off-by: Andreas Rheinhardt --- libavdevice/alsa_enc.c | 1 + libavdevice/opengl_enc.c | 1 + libavdevice/pulse_audio_enc.c | 1 + libavdevice/xv.c | 1 + libavformat/asfdec_o.c | 2 ++ libavformat/avformat.c | 2 ++ libavformat/avformat.h | 29 ++++++++++++++++------------- libavformat/dashdec.c | 1 + libavformat/dashenc.c | 1 + libavformat/dhav.c | 2 ++ libavformat/ftp.c | 1 + libavformat/hlsenc.c | 1 + libavformat/hlsplaylist.c | 1 + libavformat/http.c | 1 + libavformat/img2enc.c | 2 ++ libavformat/internal.h | 4 ++-- libavformat/mlvdec.c | 2 ++ libavformat/mux.c | 2 ++ libavformat/mux.h | 2 +- libavformat/mxfdec.c | 1 + libavformat/uncodedframecrcenc.c | 1 + libavformat/wavenc.c | 1 + libavformat/webmdashenc.c | 1 + libavformat/wtvdec.c | 1 + libavformat/yuv4mpegenc.c | 1 + 25 files changed, 47 insertions(+), 16 deletions(-) diff --git a/libavdevice/alsa_enc.c b/libavdevice/alsa_enc.c index 62a20c7ba4..4c7805065e 100644 --- a/libavdevice/alsa_enc.c +++ b/libavdevice/alsa_enc.c @@ -39,6 +39,7 @@ #include +#include "libavutil/frame.h" #include "libavutil/internal.h" #include "libavutil/time.h" diff --git a/libavdevice/opengl_enc.c b/libavdevice/opengl_enc.c index 1b0cf5aa8f..80feda7072 100644 --- a/libavdevice/opengl_enc.c +++ b/libavdevice/opengl_enc.c @@ -49,6 +49,7 @@ #endif #include "libavutil/common.h" +#include "libavutil/frame.h" #include "libavutil/pixdesc.h" #include "libavutil/log.h" #include "libavutil/opt.h" diff --git a/libavdevice/pulse_audio_enc.c b/libavdevice/pulse_audio_enc.c index 3d8323233f..9e594c6424 100644 --- a/libavdevice/pulse_audio_enc.c +++ b/libavdevice/pulse_audio_enc.c @@ -26,6 +26,7 @@ #include "libavformat/mux.h" #include "libavformat/version.h" #include "libavutil/channel_layout.h" +#include "libavutil/frame.h" #include "libavutil/internal.h" #include "libavutil/opt.h" #include "libavutil/time.h" diff --git a/libavdevice/xv.c b/libavdevice/xv.c index 441f854121..b3d79d57a8 100644 --- a/libavdevice/xv.c +++ b/libavdevice/xv.c @@ -32,6 +32,7 @@ #include #include +#include "libavutil/frame.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "libavutil/imgutils.h" diff --git a/libavformat/asfdec_o.c b/libavformat/asfdec_o.c index 2b407c016f..10942ecfa0 100644 --- a/libavformat/asfdec_o.c +++ b/libavformat/asfdec_o.c @@ -19,6 +19,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include + #include "libavutil/attributes.h" #include "libavutil/common.h" #include "libavutil/dict.h" diff --git a/libavformat/avformat.c b/libavformat/avformat.c index 356b4de931..7ff0cf3429 100644 --- a/libavformat/avformat.c +++ b/libavformat/avformat.c @@ -23,12 +23,14 @@ #include "libavutil/avassert.h" #include "libavutil/avstring.h" #include "libavutil/channel_layout.h" +#include "libavutil/frame.h" #include "libavutil/intreadwrite.h" #include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavutil/pixfmt.h" #include "libavutil/samplefmt.h" #include "libavcodec/avcodec.h" +#include "libavcodec/codec.h" #include "libavcodec/bsf.h" #include "libavcodec/codec_desc.h" #include "libavcodec/packet_internal.h" diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 1916aa2dc5..10ee3c87c6 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -307,10 +307,8 @@ * @} */ -#include #include /* FILE */ -#include "libavcodec/codec.h" #include "libavcodec/codec_par.h" #include "libavcodec/defs.h" #include "libavcodec/packet.h" @@ -325,10 +323,13 @@ * to avoid unnecessary rebuilds. When included externally, keep including * the full version information. */ #include "libavformat/version.h" + +#include "libavutil/frame.h" +#include "libavcodec/codec.h" #endif struct AVFormatContext; - +struct AVFrame; struct AVDeviceInfoList; /** @@ -1569,7 +1570,7 @@ typedef struct AVFormatContext { * the same codec_id. * Demuxing: Set by user */ - const AVCodec *video_codec; + const struct AVCodec *video_codec; /** * Forced audio codec. @@ -1577,7 +1578,7 @@ typedef struct AVFormatContext { * the same codec_id. * Demuxing: Set by user */ - const AVCodec *audio_codec; + const struct AVCodec *audio_codec; /** * Forced subtitle codec. @@ -1585,7 +1586,7 @@ typedef struct AVFormatContext { * the same codec_id. * Demuxing: Set by user */ - const AVCodec *subtitle_codec; + const struct AVCodec *subtitle_codec; /** * Forced data codec. @@ -1593,7 +1594,7 @@ typedef struct AVFormatContext { * the same codec_id. * Demuxing: Set by user */ - const AVCodec *data_codec; + const struct AVCodec *data_codec; /** * Number of bytes to be written as padding in a metadata header. @@ -1842,7 +1843,7 @@ const AVClass *av_stream_get_class(void); * * @return newly created stream or NULL on error. */ -AVStream *avformat_new_stream(AVFormatContext *s, const AVCodec *c); +AVStream *avformat_new_stream(AVFormatContext *s, const struct AVCodec *c); /** * Wrap an existing array as stream side data. @@ -2076,7 +2077,7 @@ int av_find_best_stream(AVFormatContext *ic, enum AVMediaType type, int wanted_stream_nb, int related_stream, - const AVCodec **decoder_ret, + const struct AVCodec **decoder_ret, int flags); /** @@ -2352,7 +2353,7 @@ int av_interleaved_write_frame(AVFormatContext *s, AVPacket *pkt); * See av_interleaved_write_uncoded_frame() for details. */ int av_write_uncoded_frame(AVFormatContext *s, int stream_index, - AVFrame *frame); + struct AVFrame *frame); /** * Write an uncoded frame to an output media file. @@ -2371,7 +2372,7 @@ int av_write_uncoded_frame(AVFormatContext *s, int stream_index, * @return >=0 for success, a negative code on error */ int av_interleaved_write_uncoded_frame(AVFormatContext *s, int stream_index, - AVFrame *frame); + struct AVFrame *frame); /** * Test whether a muxer supports uncoded frame. @@ -2759,7 +2760,8 @@ const struct AVCodecTag *avformat_get_mov_audio_tags(void); * @param frame the frame with the aspect ratio to be determined * @return the guessed (valid) sample_aspect_ratio, 0/1 if no idea */ -AVRational av_guess_sample_aspect_ratio(AVFormatContext *format, AVStream *stream, AVFrame *frame); +AVRational av_guess_sample_aspect_ratio(AVFormatContext *format, AVStream *stream, + struct AVFrame *frame); /** * Guess the frame rate, based on both the container and codec information. @@ -2769,7 +2771,8 @@ AVRational av_guess_sample_aspect_ratio(AVFormatContext *format, AVStream *strea * @param frame the frame for which the frame rate should be determined, may be NULL * @return the guessed (valid) frame rate, 0/1 if no idea */ -AVRational av_guess_frame_rate(AVFormatContext *ctx, AVStream *stream, AVFrame *frame); +AVRational av_guess_frame_rate(AVFormatContext *ctx, AVStream *stream, + struct AVFrame *frame); /** * Check if the stream st contained in s is matched by the stream specifier diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 29d4680c68..f4af625814 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -20,6 +20,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include +#include #include "libavutil/bprint.h" #include "libavutil/opt.h" #include "libavutil/time.h" diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 17fe5f430c..69ceae2cbf 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -22,6 +22,7 @@ #include "config.h" #include "config_components.h" +#include #if HAVE_UNISTD_H #include #endif diff --git a/libavformat/dhav.c b/libavformat/dhav.c index 4e720f2a26..2ec4857f29 100644 --- a/libavformat/dhav.c +++ b/libavformat/dhav.c @@ -20,6 +20,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include + #include "libavutil/parseutils.h" #include "avio_internal.h" #include "avformat.h" diff --git a/libavformat/ftp.c b/libavformat/ftp.c index 883668b37b..f9b069a59e 100644 --- a/libavformat/ftp.c +++ b/libavformat/ftp.c @@ -19,6 +19,7 @@ */ #include +#include #include "libavutil/avstring.h" #include "libavutil/internal.h" diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 27d97f5f72..004bd25359 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -23,6 +23,7 @@ #include "config.h" #include "config_components.h" #include +#include #if HAVE_UNISTD_H #include #endif diff --git a/libavformat/hlsplaylist.c b/libavformat/hlsplaylist.c index 0e1dcc087f..2bf05f3c7c 100644 --- a/libavformat/hlsplaylist.c +++ b/libavformat/hlsplaylist.c @@ -22,6 +22,7 @@ #include "config.h" #include +#include #include "libavutil/time_internal.h" diff --git a/libavformat/http.c b/libavformat/http.c index fd931c2d8e..c0fe7c36d9 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -22,6 +22,7 @@ #include "config.h" #include "config_components.h" +#include #if CONFIG_ZLIB #include #endif /* CONFIG_ZLIB */ diff --git a/libavformat/img2enc.c b/libavformat/img2enc.c index 9b8ec06cea..526a11e5ee 100644 --- a/libavformat/img2enc.c +++ b/libavformat/img2enc.c @@ -20,6 +20,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include + #include "config_components.h" #include "libavutil/intreadwrite.h" diff --git a/libavformat/internal.h b/libavformat/internal.h index 53e70ccb53..051e8e2893 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -566,8 +566,8 @@ void ff_parse_key_value(const char *str, ff_parse_key_val_cb callback_get_buf, enum AVCodecID ff_guess_image2_codec(const char *filename); -const AVCodec *ff_find_decoder(AVFormatContext *s, const AVStream *st, - enum AVCodecID codec_id); +const struct AVCodec *ff_find_decoder(AVFormatContext *s, const AVStream *st, + enum AVCodecID codec_id); /** * Set the time base and wrapping info for a given stream. This will be used diff --git a/libavformat/mlvdec.c b/libavformat/mlvdec.c index db3b77bb9b..b706898cb3 100644 --- a/libavformat/mlvdec.c +++ b/libavformat/mlvdec.c @@ -24,6 +24,8 @@ * Magic Lantern Video (MLV) demuxer */ +#include + #include "libavutil/imgutils.h" #include "libavutil/intreadwrite.h" #include "libavutil/rational.h" diff --git a/libavformat/mux.c b/libavformat/mux.c index 415bd3948f..fff8094341 100644 --- a/libavformat/mux.c +++ b/libavformat/mux.c @@ -24,12 +24,14 @@ #include "mux.h" #include "version.h" #include "libavcodec/bsf.h" +#include "libavcodec/codec_desc.h" #include "libavcodec/internal.h" #include "libavcodec/packet_internal.h" #include "libavutil/opt.h" #include "libavutil/dict.h" #include "libavutil/timestamp.h" #include "libavutil/avassert.h" +#include "libavutil/frame.h" #include "libavutil/internal.h" #include "libavutil/mathematics.h" diff --git a/libavformat/mux.h b/libavformat/mux.h index c2de45400c..9de5c2852a 100644 --- a/libavformat/mux.h +++ b/libavformat/mux.h @@ -96,7 +96,7 @@ typedef struct FFOutputFormat { * by setting the pointer to NULL. */ int (*write_uncoded_frame)(AVFormatContext *, int stream_index, - AVFrame **frame, unsigned flags); + struct AVFrame **frame, unsigned flags); /** * Returns device list with it properties. * @see avdevice_list_devices() for more details. diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index 34230ece98..110b69b7c1 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -45,6 +45,7 @@ */ #include +#include #include "libavutil/aes.h" #include "libavutil/avstring.h" diff --git a/libavformat/uncodedframecrcenc.c b/libavformat/uncodedframecrcenc.c index 4c37ef6e5b..529b2f36cb 100644 --- a/libavformat/uncodedframecrcenc.c +++ b/libavformat/uncodedframecrcenc.c @@ -21,6 +21,7 @@ #include "libavutil/adler32.h" #include "libavutil/avassert.h" #include "libavutil/bprint.h" +#include "libavutil/frame.h" #include "libavutil/imgutils.h" #include "libavutil/pixdesc.h" #include "libavformat/mux.h" diff --git a/libavformat/wavenc.c b/libavformat/wavenc.c index c12c090934..82acb9ef0f 100644 --- a/libavformat/wavenc.c +++ b/libavformat/wavenc.c @@ -32,6 +32,7 @@ #include #include +#include #include "libavutil/avstring.h" #include "libavutil/dict.h" diff --git a/libavformat/webmdashenc.c b/libavformat/webmdashenc.c index 0d6c4a2072..31ea3c6e8c 100644 --- a/libavformat/webmdashenc.c +++ b/libavformat/webmdashenc.c @@ -29,6 +29,7 @@ #include #include #include +#include #include "avformat.h" #include "matroska.h" diff --git a/libavformat/wtvdec.c b/libavformat/wtvdec.c index 98128b7201..b29ea7a923 100644 --- a/libavformat/wtvdec.c +++ b/libavformat/wtvdec.c @@ -26,6 +26,7 @@ */ #include +#include #include "libavutil/channel_layout.h" #include "libavutil/intreadwrite.h" diff --git a/libavformat/yuv4mpegenc.c b/libavformat/yuv4mpegenc.c index 968ba2fa13..1d641eb9e4 100644 --- a/libavformat/yuv4mpegenc.c +++ b/libavformat/yuv4mpegenc.c @@ -19,6 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/frame.h" #include "libavutil/pixdesc.h" #include "avformat.h" #include "internal.h"