From patchwork Fri May 21 18:00:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 27904 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:b214:0:0:0:0:0 with SMTP id b20csp743812iof; Fri, 21 May 2021 11:02:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjHHxRw9yZzF4MRexW8Zwc+UoihfXJhMlfzYmMT0sEg5qGUsYcLtrbMBebhF7UlUCAFlBJ X-Received: by 2002:a17:906:2bd0:: with SMTP id n16mr11861348ejg.110.1621620152277; Fri, 21 May 2021 11:02:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621620152; cv=none; d=google.com; s=arc-20160816; b=K4Oy2rixWYHHtZmo5qSeoApzuS3wcdUdtyr5dONuBlP8s68QXPsQDUUpCbNN4l+y0d SEC3oC25U6PhZSI9sjMmrXjpp+xmv76XAdBAofuOXXFx9wqWIDthZPbg2wkYqQ+Ig9p8 2+pnJiBj7HX0WfF0BjoLfTKtBDevsCqC/cdeFOJBWxr+F40Zcec1M8l59vYnEsR3KMON BedEAx7Ko4Vpu38s8NvCGVtBCZlmMDnNTCD9HGHxW1WJ2BRfa+opukLc7WATT7QOTUNX EwZl0pqbWIy0YD3Ss5R7TW3NSy7P6HkYFKXzRVXnkCgpTVZusUmvkvl3ev8pToSJfAtB +G/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:delivered-to; bh=SZHr8MPisvfbNfKEaKuT5uTAPIp140CkYnpHaMS/U9M=; b=iRbsB3Z+4s7NG7aBxbVE2ZnaulsSZcPXajjZcqkRDqqVkZ4TQFliAQmc8igXhLJ7Hb pjrzqF69M4BOhf1LLNZjAC6UFEoD0XttOWPKX1KlwIU4mNpop2PM2SP71NNoD+HrFhSa 7eIc2JxU+9/lLcO7S10CHQfpr0DD1qp/TDuRQ+XEZ1HnCZL55wiVNbqcvpCPdrDgrZyR pqoImfs/XAanHv3QHTQdwGGx3Hyg446frMw1+HItb5LFKgHDVFiXYzcbggOdUnT4YPJH NGtFNWBh9qFFrxsiZyYOnTOBgo1kfv2jVTvxAK4U83A1rjstOx/TN7ne/cfXb3O8b0S4 f8vg== 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 lj11si5948952ejb.265.2021.05.21.11.02.31; Fri, 21 May 2021 11:02:32 -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 2D4C0689B11; Fri, 21 May 2021 21:01:24 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail0.khirnov.net (red.khirnov.net [176.97.15.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 47EEE6882FB for ; Fri, 21 May 2021 21:01:18 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 825DC240697 for ; Fri, 21 May 2021 20:01:14 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id JWVPUw0bMLX6 for ; Fri, 21 May 2021 20:01:12 +0200 (CEST) Received: from libav.khirnov.net (unknown [IPv6:2a00:c500:561:201:5fb8:4bfe:b578:641e]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "libav.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail0.khirnov.net (Postfix) with ESMTPS id C69B8240694 for ; Fri, 21 May 2021 20:01:09 +0200 (CEST) Received: by libav.khirnov.net (Postfix, from userid 1000) id E10843A1421; Fri, 21 May 2021 20:01:06 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Fri, 21 May 2021 20:00:39 +0200 Message-Id: <20210521180056.17496-8-anton@khirnov.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210521180056.17496-1-anton@khirnov.net> References: <20210521180056.17496-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 08/25] lavc/cbs.h: avoid avcodec.h dependency 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: E6G9OFGM2/RA Include only the headers that are actually needed. --- libavcodec/cbs.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavcodec/cbs.h b/libavcodec/cbs.h index 8b432393b8..509f76b9c6 100644 --- a/libavcodec/cbs.h +++ b/libavcodec/cbs.h @@ -24,7 +24,9 @@ #include "libavutil/buffer.h" -#include "avcodec.h" +#include "codec_id.h" +#include "codec_par.h" +#include "packet.h" /*