From patchwork Mon Aug 7 00:49:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 43150 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:9329:b0:130:ccc6:6c4b with SMTP id r41csp1303015pzh; Sun, 6 Aug 2023 17:49:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEhF/JlEZMaoLED4/B/G8JLdnrIm+CE++cLhcnd7rig5/Tj6QzOfzTSIN7LS00NkkykKDDo X-Received: by 2002:a05:6512:401b:b0:4fe:c4e:709f with SMTP id br27-20020a056512401b00b004fe0c4e709fmr5452530lfb.20.1691369370492; Sun, 06 Aug 2023 17:49:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691369370; cv=none; d=google.com; s=arc-20160816; b=UxywvA9r6sULL+OCBUafHuJS6rnExdCBiUK3fAcFGBfOS9FbtaHMon+uLGfT0tPqDZ fwuwCxrT0iMDdrlmJUn57LMFZntZs+RapXtJHLH8bzRZ90oG+0nN4SVbjiO9aWewC8Fw o/1YWx0JahKcxbS1NRMvhQmJYLn4NtZnMPytV5AnaGEMjxLnbZzbQcQMBRf27QRSar3/ YSiInNqwAZGpkkrwRtEOJSETyFEK0KCK2K83bTjAvPLrfkZhHrf6XFneCPCeneuArn/4 Y0WTC/5J33MCla1yxQiBhxOus43p8BZsTvTwVIIDtJdimxjQDwTmdQ0ufB/0CeKsihUm /FYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:delivered-to; bh=dsdBtZglura2GNlswYMsA4CdEafSV16sYo0qh33jFCE=; fh=S8jATUGL+YLq/I4yBzWofzFAv9JULLlPyXSSeRPfkFs=; b=p2xkM4O8VY/rcza+YjiMZH0PwlGmcVHfYzrkONx1EU6WVuE0S25OKI1lBXduhxJ1l3 upkxRnbCYJZn+RcW42M/+Tq80lMQQoj7BsLGl09F8gLAxw4C/47WPjwwGmRoVLHN34Uf rYOT/Suuro+DihE0b0t/QJ/SC8Wh7QhscCED1D1nn+GlPqEgudHAZj/GBkuqVTAW+4CN 9t2z1nBSxWeJwG4NDeSoYORwmrVCVf2KhIW1u0EynId+CbGxEYiNiAgn/LI5Fall9/sy TTzv9apbHvpoX1GZaE7D57/S08t5epXJhfSzjT3V5r04FWJMe9Jjc01R5DlC1wL3yRPv poEA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id rn23-20020a170906d93700b0099bc8f939b8si3821032ejb.265.2023.08.06.17.49.29; Sun, 06 Aug 2023 17:49:30 -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; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C623668C39C; Mon, 7 Aug 2023 03:49:25 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 100EB68C28B for ; Mon, 7 Aug 2023 03:49:19 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 4B00820005; Mon, 7 Aug 2023 00:49:18 +0000 (UTC) From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Mon, 7 Aug 2023 02:49:03 +0200 Message-Id: <20230807004917.31578-1-michael@niedermayer.cc> X-Mailer: git-send-email 2.17.1 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 01/15] avcodec/dirac: Include used headers directly 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 MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: BqXfmodE8BTi From: Andreas Rheinhardt Don't include them implicitly via avcodec.h. This avoids indirect avcodec.h inclusions in lavc/dirac.c, lavf/oggparsedirac.c, and lavf/rtp(dec|enc)_vc2hq.c. Signed-off-by: Andreas Rheinhardt --- libavcodec/dirac.c | 3 +++ libavcodec/dirac.h | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/libavcodec/dirac.c b/libavcodec/dirac.c index bc51a2fbd7..4736304977 100644 --- a/libavcodec/dirac.c +++ b/libavcodec/dirac.c @@ -26,9 +26,12 @@ * @author Marco Gerards , David Conrad, Jordi Ortiz */ +#include "config.h" + #include "libavutil/pixdesc.h" #include "dirac.h" +#include "get_bits.h" #include "golomb.h" #include "mpeg12data.h" diff --git a/libavcodec/dirac.h b/libavcodec/dirac.h index e6d9d346d9..8c348cdc02 100644 --- a/libavcodec/dirac.h +++ b/libavcodec/dirac.h @@ -31,7 +31,11 @@ * @author Jordi Ortiz */ -#include "avcodec.h" +#include +#include + +#include "libavutil/pixfmt.h" +#include "libavutil/rational.h" /** * The spec limits the number of wavelet decompositions to 4 for both