From patchwork Fri May 21 18:00:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 27919 Delivered-To: andriy.gelman@gmail.com Received: by 2002:a25:bbc9:0:0:0:0:0 with SMTP id c9csp1184306ybk; Fri, 21 May 2021 11:04:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2xao3lT2fSm5JHR4cZIcnSPNyO7ckAVp9+9eW8gY+BHA92UsVuXtK+DjMQ/jqrBocxTzi X-Received: by 2002:a17:906:4088:: with SMTP id u8mr11418061ejj.240.1621620297864; Fri, 21 May 2021 11:04:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621620297; cv=none; d=google.com; s=arc-20160816; b=TLdFOm/wfv3JWLKqoA6A07K87MfCDaCzxdw1Q3/6lUppMXrChZs1ERxPigIF+8A2Qx 4PeJfoNnOB9YS7xqv1xyh2i946r/TM5egs85W3927tH07QXmWiCaY1/H2zIPYHTqfl39 hR26Du+A/fCrHaZMBusmln2eNfJ0uikblGTJUtXLXzcqmJhwmgBtordLjW7QAAkk51RB RADoHmpOfyPbmMqCHNjEMO8Y9LyOTq4TMf3hGIjndDjFUgEQv1FSQkGmxADGr3FjpOlp vYvFKbJnh1G6c/J7ZzyAou3GitgTN8n+wZxOcI5UrHbDAMyisoLBAKuwxmS1xlrjOvhC A0zw== 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=qAf4oojjP5m6K4ZDpOqcoiKjTCyJ7oJz3VIwA+8vSk4=; b=IFWpTybIfxKQrsA3qM/oiNYA3UhrXkoE32OYNOM+r79myG8IgTALAY+5IQ9Og53ivy rGmNvExEDqUP+Kc3LSxTNbhfLeI+jL/Fkj9kh6kxhapcguZYAo1CyjHyJtCAEobhVzG7 KLxTdl4+5tw+Sift7/9fsClVRnvjkiDRsgyPxopJ8gSLSNvno/kExot9GhUXOyoJcAH2 nPa4V07mw30RmoHkrIQG2WqkkvLdBe5g8184zI2OphzTYXl1Q2ik8enF12pK8hewlkSu 0or3Dgc9o1oclNMrocsSyRF8oEQ6mSsxlEGpWEtH8gsX3gbdpclcmFBkFGNOI6A6TLx5 KvXg== 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 bh4si7452646ejb.56.2021.05.21.11.04.57; Fri, 21 May 2021 11:04:57 -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 5E79C689EC9; Fri, 21 May 2021 21:01:37 +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 DBB2D6881F1 for ; Fri, 21 May 2021 21:01:20 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 8991B24042A for ; Fri, 21 May 2021 20:01:20 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id vGtrW22HjeUu for ; Fri, 21 May 2021 20:01:20 +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 3389A2406A4 for ; Fri, 21 May 2021 20:01:10 +0200 (CEST) Received: by libav.khirnov.net (Postfix, from userid 1000) id 23C7E3A18DA; Fri, 21 May 2021 20:01:07 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Fri, 21 May 2021 20:00:53 +0200 Message-Id: <20210521180056.17496-22-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 22/25] lavf/latmenc: 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: bqfB4Yyt02u3 Content-Length: 808 --- libavformat/latmenc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavformat/latmenc.c b/libavformat/latmenc.c index 87a6b81798..21bb614f67 100644 --- a/libavformat/latmenc.c +++ b/libavformat/latmenc.c @@ -21,7 +21,9 @@ #include "libavcodec/get_bits.h" #include "libavcodec/put_bits.h" -#include "libavcodec/avcodec.h" +#include "libavcodec/codec_id.h" +#include "libavcodec/codec_par.h" +#include "libavcodec/packet.h" #include "libavcodec/mpeg4audio.h" #include "libavutil/opt.h" #include "avformat.h"