From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 0443A46C2E for ; Tue, 18 Feb 2025 15:41:39 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 55CF068BE8A; Tue, 18 Feb 2025 17:41:35 +0200 (EET) Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id EDE1268B37C for ; Tue, 18 Feb 2025 17:41:28 +0200 (EET) Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-220d398bea9so78616025ad.3 for ; Tue, 18 Feb 2025 07:41:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739893286; x=1740498086; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=htUNuh9gcUbBC9+ylKZj8367QRoLfTXdh1cS6z4l6BE=; b=gwWJNfx77Ha+idIFtWnhqF06EA94TB38BGyLGvK21EGM0hQeYkAIGFVqjUI/OR7beU GiUBLhhB6pbFL2S5AHpcT/6G4qJhUp58vVrFKaCgtmk0fHt4cGaIxZC5DbOuB3rWqr1+ JL3dwPLH28HVLOwsmCupcHUAKo3NeKMWP2pis7hlpsMu0jqcwBqGtJA1Yc3JxCMWRdgr Qp7h9yzcctNzZeaJF24GYLNBSAeOx5FJYj1M7NYfLjQpBZKN+dgVZoK+skIt1BJohVma f4HEQY0qWbm9oI829vMOJy8oyqbN3GcO+nIxD7jzTIRYm7jaAjGEYUlN1nHgn1XNJ+Z3 2Teg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739893286; x=1740498086; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=htUNuh9gcUbBC9+ylKZj8367QRoLfTXdh1cS6z4l6BE=; b=W8jiPSun+tX3goAT9pmcmt+JaXi9d8B+nZPU9w51T6xKAv/KKCePeEYa1ULmUzJTy+ hbRHVEyweqgI+tzjpoxWQwZbZPztlMYMGue9IXHvzF/9Bt9ECIwxgkZQFxJL9wtx25Yj DDU8NUsko7CwSeDAKDnuLB9KPcvuQPISs7qvfydHelBgnbPX+Jtbv69cu2b7ExeRPvZn ebn8l04/TbAkv+UT3cl1hfbAt3zJf1O8xuwuXWG5i4EngmezAvrHucEjxpgDrvIJpAzP L7aiNXX305ipAY9FhZI//SGCBQzNg5jyPeABvb6OyJc4Z1c2LScbCN6GRF9qgJ+CDzSN gpbw== X-Gm-Message-State: AOJu0Yw44RG8EbtYp1NFmsV8W6X6WB914rQt+AIP6gZeqx/3yXoGtdcT xh5hyBkmIa/Y3lr6cKUyXM5b3CLC5ExxZbD10kzxejSELL8nyp6Z6CTKV2fm X-Gm-Gg: ASbGncvaAyLt6QEsnpASmP7UILUsh4gzCoZrx+DQK77LJiIBIrw+/UBsq1NQvgxocXy 1ufRhCKv8SK6iMw2PoFidkRv9TQanAMabGWyuUaYmhIJLOsCt6DeIuU9rXXi47qbXZUHkoB9yyj ozkXooAdBk2c4lZvVBPhvtZ8uMLrPP+o8rydxg3fD8h7jo4VMKge9K1J6QD6kvpN5R8Wh9IjWIu mpPDsiANEzQcojfhRnY5Mjn5m1eONUgyborYYduboQeBCvL0fAQhZnySF3DsJwKCp+r8bKUPOJm vCnOcrBwUo5brAxsZVpiC005cwQfww== X-Google-Smtp-Source: AGHT+IGeq5coyqo8Eu8ayjoSGU7ZcURXD+TtdQ6NWu3obhTT6y4FHdp+Dt3//E8ndI9DxTlGfNBTPQ== X-Received: by 2002:a17:902:e5c2:b0:220:d7f9:9ea8 with SMTP id d9443c01a7336-221040612cbmr223741005ad.26.1739893285553; Tue, 18 Feb 2025 07:41:25 -0800 (PST) Received: from localhost.localdomain ([2800:2121:b040:c:a0a7:974:71c7:ca89]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-220d536375fsm89855385ad.53.2025.02.18.07.41.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Feb 2025 07:41:25 -0800 (PST) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Tue, 18 Feb 2025 12:40:59 -0300 Message-ID: <20250218154059.8332-1-jamrial@gmail.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <53073b18d7e89a945d6b5214708761ab2986839a.camel@haerdin.se> References: <53073b18d7e89a945d6b5214708761ab2986839a.camel@haerdin.se> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2] avcodec/codec_internal: remove unnecessary avcodec.h include 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Signed-off-by: James Almer --- libavcodec/allcodecs.c | 1 + libavcodec/codec_internal.h | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c index 4e1b1c9b45..3be33f5cc4 100644 --- a/libavcodec/allcodecs.c +++ b/libavcodec/allcodecs.c @@ -29,6 +29,7 @@ #include "config.h" #include "libavutil/thread.h" +#include "avcodec.h" #include "codec.h" #include "codec_id.h" #include "codec_internal.h" diff --git a/libavcodec/codec_internal.h b/libavcodec/codec_internal.h index 5b2db74590..473d72fdbb 100644 --- a/libavcodec/codec_internal.h +++ b/libavcodec/codec_internal.h @@ -22,7 +22,6 @@ #include #include "libavutil/attributes.h" -#include "avcodec.h" #include "codec.h" #include "config.h" @@ -102,6 +101,7 @@ typedef struct FFCodecDefault { struct AVCodecContext; struct AVSubtitle; struct AVPacket; +enum AVCodecConfig; enum FFCodecType { /* The codec is a decoder using the decode callback; @@ -268,7 +268,7 @@ typedef struct FFCodec { * ff_default_get_supported_config() will be used. `out_num_configs` will * always be set to a valid pointer. */ - int (*get_supported_config)(const AVCodecContext *avctx, + int (*get_supported_config)(const struct AVCodecContext *avctx, const AVCodec *codec, enum AVCodecConfig config, unsigned flags, @@ -283,7 +283,7 @@ typedef struct FFCodec { * For AVCODEC_CONFIG_COLOR_RANGE, the output will depend on the bitmask in * FFCodec.color_ranges, with a value of 0 returning NULL. */ -int ff_default_get_supported_config(const AVCodecContext *avctx, +int ff_default_get_supported_config(const struct AVCodecContext *avctx, const AVCodec *codec, enum AVCodecConfig config, unsigned flags, -- 2.48.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".