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 97F844D730 for ; Sun, 23 Feb 2025 22:08:14 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A7DEA68CB23; Mon, 24 Feb 2025 00:07:00 +0200 (EET) Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0493A68CA90 for ; Mon, 24 Feb 2025 00:06:52 +0200 (EET) Received: by mail-pj1-f48.google.com with SMTP id 98e67ed59e1d1-2fc4418c0e1so8134873a91.1 for ; Sun, 23 Feb 2025 14:06:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740348409; x=1740953209; 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=nO4Rl8rO84K0OPW+CJS+C1ox+a60Q2FNLTbMva1412Y=; b=IbpGGrVkfqr2ICl08ph+WXR5pxhq1hd7Y6pqFmHyxQm3UZgzhLasvjYWedtaMCmnrc d2ZtIJBiL7w7kJh6LKScBf4NvZ/m2ppdDRJj83r2cBY80+Po/srPcMiNjUzAldEazDqb olxHhSWSWfx7OMy/TAOpB4KEq8BPtd4eujTUos15/yp3YcQUUZ93FajBsn+dYv9/XLkf 9OCPh3ulwZOgpnO/4JdbAaNtxy2+MignUwzGuCHuSwfFN5E0oNNzdE7bAPix+dsX2Goz mnO1+c2OkLgHnsEPgin4/2WJ39OyS022onl+XuOugReJb096PUo7ttY2eeJq90di4aYa lX2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740348409; x=1740953209; 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=nO4Rl8rO84K0OPW+CJS+C1ox+a60Q2FNLTbMva1412Y=; b=vsUfxGCDAOMuwV3tH+BrgQsU1agORsi2WUEUyy5KYoiuaRHOzgHJGUXOGFLa3fdbD9 MUsIidm52g6nXQxtSNqIRT4YbYy+GrFh/hLozGS67SdGzAbAdBcoKrKTiDoPxcYG5h65 D/uBS/2lfJx6GfTu08zFX/4uGwOHCuNPW/E6PDMOIqg9OciNe7PQ51n7rbLaX58iqSJi HAtEsEuc7OVuQGuTKaRMK0dB4TevCRncxdVgGkNfkN7w6RWvvmPJqh3eAkXF+qNzbbFD /IgwRc1GVktunZpIdmmzv8TvjnomIT4pHGVaUUl2EfuMrAdFEOwhukkeGwcwpxme7nbo BIHA== X-Gm-Message-State: AOJu0YzWf9X1TIkuiSeatVdLoIefJGzj8vxJRSDgreTbvAj+Xuci0LML 6EJ8zPvNL934kfi2aiIzWE33s/PaHWK7Gv+xtG9i3S57y0dG+ZCcHgMAjYVh X-Gm-Gg: ASbGncuyjZwLlDf3zhF5Tev3TWnw7zDEy05zfwjuzWJjoRQbzdZIQfdRiWAr9wZLlaN +RrMjPyWeZSLBo05LF0E8xrhvgZm6N/WSZWuHE/zCoIPcMDirZXwmC9Mup1dqG62dMznO7sPsnP ZQmqA/Bx2uk7/gH9uQPwH09wMYhuUpMKHOtsVJh/RhedwcyAUGkTLMWSXdZCe/f26fYupxoAZLA KrYvtpRbzMLWWs8waBdlU/Ol0XIrOU7QjEsvfDdi4r/z3fThcvyhMdHUEtH/7lPvmKDy4OC8viy T6ijGamOezmdPcp7+aDIVcirnRs+4pCZdB+7PJrCmA== X-Google-Smtp-Source: AGHT+IHccRYg768OJTXNZchPPZPu/KVOt8VCy79n1bBmMeiBMBu9cOBO1plGY0IfvkCyqc49tn09FA== X-Received: by 2002:a17:90b:51c5:b0:2fa:2c61:3e5a with SMTP id 98e67ed59e1d1-2fccc13d8c3mr25483892a91.10.1740348409446; Sun, 23 Feb 2025 14:06:49 -0800 (PST) Received: from localhost.localdomain ([2800:2121:b040:c:b49d:85a5:a7d1:4da6]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2fceb04bf70sm5091848a91.16.2025.02.23.14.06.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Feb 2025 14:06:48 -0800 (PST) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Sun, 23 Feb 2025 19:06:06 -0300 Message-ID: <20250223220630.18756-7-jamrial@gmail.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250223220630.18756-1-jamrial@gmail.com> References: <20250223220630.18756-1-jamrial@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 06/30] avcodec: remove deprecated FF_API_AVCODEC_CLOSE 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: Deprecated since 2024-02-09. Signed-off-by: James Almer --- libavcodec/avcodec.c | 8 -------- libavcodec/avcodec.h | 18 ------------------ libavcodec/version_major.h | 1 - 3 files changed, 27 deletions(-) diff --git a/libavcodec/avcodec.c b/libavcodec/avcodec.c index 3f97f5d161..755da184e5 100644 --- a/libavcodec/avcodec.c +++ b/libavcodec/avcodec.c @@ -493,14 +493,6 @@ av_cold void ff_codec_close(AVCodecContext *avctx) avctx->active_thread_type = 0; } -#if FF_API_AVCODEC_CLOSE -int avcodec_close(AVCodecContext *avctx) -{ - ff_codec_close(avctx); - return 0; -} -#endif - static const char *unknown_if_null(const char *str) { return str ? str : "unknown"; diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 079e457e4d..5def718fc7 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -2234,24 +2234,6 @@ int avcodec_parameters_to_context(AVCodecContext *codec, */ int avcodec_open2(AVCodecContext *avctx, const AVCodec *codec, AVDictionary **options); -#if FF_API_AVCODEC_CLOSE -/** - * Close a given AVCodecContext and free all the data associated with it - * (but not the AVCodecContext itself). - * - * Calling this function on an AVCodecContext that hasn't been opened will free - * the codec-specific data allocated in avcodec_alloc_context3() with a non-NULL - * codec. Subsequent calls will do nothing. - * - * @deprecated Do not use this function. Use avcodec_free_context() to destroy a - * codec context (either open or closed). Opening and closing a codec context - * multiple times is not supported anymore -- use multiple codec contexts - * instead. - */ -attribute_deprecated -int avcodec_close(AVCodecContext *avctx); -#endif - /** * Free all allocated data in the given subtitle struct. * diff --git a/libavcodec/version_major.h b/libavcodec/version_major.h index b43aa2a2db..38c12650c1 100644 --- a/libavcodec/version_major.h +++ b/libavcodec/version_major.h @@ -39,7 +39,6 @@ #define FF_API_INIT_PACKET (LIBAVCODEC_VERSION_MAJOR < 62) -#define FF_API_AVCODEC_CLOSE (LIBAVCODEC_VERSION_MAJOR < 62) #define FF_API_BUFFER_MIN_SIZE (LIBAVCODEC_VERSION_MAJOR < 62) #define FF_API_VDPAU_ALLOC_GET_SET (LIBAVCODEC_VERSION_MAJOR < 62) #define FF_API_QUALITY_FACTOR (LIBAVCODEC_VERSION_MAJOR < 62) -- 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".