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 ESMTP id 55DF948D2F for ; Thu, 25 Jan 2024 13:47:14 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 6889F68D0E1; Thu, 25 Jan 2024 15:45:02 +0200 (EET) Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id BD35E68D17A for ; Thu, 25 Jan 2024 15:44:56 +0200 (EET) Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-1d76943baafso28826945ad.2 for ; Thu, 25 Jan 2024 05:44:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706190294; x=1706795094; 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=2A1tznKlV5HQ9OxWIJ6t3nKRggzlc3qC0JApA1scDCM=; b=T5m5/+j9eKHiaZ4Srfcut/WI42qybooWlchMTLbQSd0xdcihgyRZBs2ytSht7XDnOy 4soIf8VS9SYxOjm5H9mFM58rnjRfeyXuE2wiCf05rpxTF7kqWHXmAugAcaKIqFvP84Wb hSB41HpbI2Dopw6w+J3O7V+mosJ9B/8WHq2zPfphb5xPBlqVgrrWCpRsBM4J4TFAY6Ou 16BaesYjGoSRATsrLN81fGVRQvjZMLVF81oDGbInJh5bnjCsppadQ+dbKOTfEDjEhdYb q2dLdQlDcwDZF8mB83yjGg3jmRBA1PkxWl8S3wf0vnZznRdAnh4Hudp6M63ExO1aJhFZ 978g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706190294; x=1706795094; 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=2A1tznKlV5HQ9OxWIJ6t3nKRggzlc3qC0JApA1scDCM=; b=biXJLM9+PpWPRjjWGyojrmTr0G1tHwETYHMwXJelcCuETSz69STni8KVGnw96PkClk 1ZFF7rq/X24Enpl8HMxdozpoJGcKRQjEGEbCpemZEuzJqd0BkJVmOA8klSsTSVimdThG 2E9MBoeyemBKdTYoRKFDCX4jXphiJqRW0I+8uYOqCoKYY7TZe9E4US1XPWXDESxFKvWC RitMUdgwrf967md+cpGOVVMPzBnK7OAc1ZiAKQl0TTX3Ob5iD2p16PV8eFfIewCTM7KJ 52QLoFFV9ktqbG7z4ouvjbh+uGsMdD0N4Dlq7nDy0Fkxo/I9YBAYTV7/VxJYXbhk80T5 +8kA== X-Gm-Message-State: AOJu0YyzgAAgAty/xP+tTOnyifJSp5nR2OWfa0ULOofxkIWW7eeTLh2a IG1Dy/WbZoxWVEkWKXe0eJsD6xAe8nhWQyUSZM2AJag5/SCCmZ0NdOFm9FV5 X-Google-Smtp-Source: AGHT+IEc/ayWBQuWPjkK7XQ5/TR9TQMC50WvWF5Na7RlcEVQBVwbL9mzIwZ4eBJnvRtycowIBNMdjQ== X-Received: by 2002:a17:902:f7c3:b0:1d4:cb8c:fafe with SMTP id h3-20020a170902f7c300b001d4cb8cfafemr769810plw.74.1706190293973; Thu, 25 Jan 2024 05:44:53 -0800 (PST) Received: from localhost.localdomain (host197.190-225-105.telecom.net.ar. [190.225.105.197]) by smtp.gmail.com with ESMTPSA id k17-20020a170902f29100b001d707a14316sm11785146plc.75.2024.01.25.05.44.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 05:44:53 -0800 (PST) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Thu, 25 Jan 2024 10:43:40 -0300 Message-ID: <20240125134425.374-18-jamrial@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240125134425.374-1-jamrial@gmail.com> References: <20240125134425.374-1-jamrial@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 17/24] avutil: remove deprecated FF_API_AV_FOPEN_UTF8 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 --- libavutil/avutil.h | 13 ------------- libavutil/file.c | 6 ------ libavutil/file.h | 17 ----------------- libavutil/file_open.c | 7 ------- libavutil/version.h | 1 - 5 files changed, 44 deletions(-) diff --git a/libavutil/avutil.h b/libavutil/avutil.h index a362c8baa8..d2900dcb48 100644 --- a/libavutil/avutil.h +++ b/libavutil/avutil.h @@ -335,19 +335,6 @@ unsigned av_int_list_length_for_size(unsigned elsize, #define av_int_list_length(list, term) \ av_int_list_length_for_size(sizeof(*(list)), list, term) -#if FF_API_AV_FOPEN_UTF8 -/** - * Open a file using a UTF-8 filename. - * The API of this function matches POSIX fopen(), errors are returned through - * errno. - * @deprecated Avoid using it, as on Windows, the FILE* allocated by this - * function may be allocated with a different CRT than the caller - * who uses the FILE*. No replacement provided in public API. - */ -attribute_deprecated -FILE *av_fopen_utf8(const char *path, const char *mode); -#endif - /** * Return the fractional representation of the internal time base. */ diff --git a/libavutil/file.c b/libavutil/file.c index cc17885bcc..2d1063b6a2 100644 --- a/libavutil/file.c +++ b/libavutil/file.c @@ -155,9 +155,3 @@ void av_file_unmap(uint8_t *bufptr, size_t size) av_free(bufptr); #endif } - -#if FF_API_AV_FOPEN_UTF8 -int av_tempfile(const char *prefix, char **filename, int log_offset, void *log_ctx) { - return avpriv_tempfile(prefix, filename, log_offset, log_ctx); -} -#endif diff --git a/libavutil/file.h b/libavutil/file.h index fc87a9cd6a..b5a762c28f 100644 --- a/libavutil/file.h +++ b/libavutil/file.h @@ -60,21 +60,4 @@ int av_file_map(const char *filename, uint8_t **bufptr, size_t *size, */ void av_file_unmap(uint8_t *bufptr, size_t size); -#if FF_API_AV_FOPEN_UTF8 -/** - * Wrapper to work around the lack of mkstemp() on mingw. - * Also, tries to create file in /tmp first, if possible. - * *prefix can be a character constant; *filename will be allocated internally. - * @return file descriptor of opened file (or negative value corresponding to an - * AVERROR code on error) - * and opened file name in **filename. - * @note On very old libcs it is necessary to set a secure umask before - * calling this, av_tempfile() can't call umask itself as it is used in - * libraries and could interfere with the calling application. - * @deprecated as fd numbers cannot be passed saftely between libs on some platforms - */ -attribute_deprecated -int av_tempfile(const char *prefix, char **filename, int log_offset, void *log_ctx); -#endif - #endif /* AVUTIL_FILE_H */ diff --git a/libavutil/file_open.c b/libavutil/file_open.c index 9aa4e4ac61..24ef33e3da 100644 --- a/libavutil/file_open.c +++ b/libavutil/file_open.c @@ -189,10 +189,3 @@ FILE *avpriv_fopen_utf8(const char *path, const char *mode) return NULL; return fdopen(fd, mode); } - -#if FF_API_AV_FOPEN_UTF8 -FILE *av_fopen_utf8(const char *path, const char *mode) -{ - return avpriv_fopen_utf8(path, mode); -} -#endif diff --git a/libavutil/version.h b/libavutil/version.h index 1936155e46..2dc913bbfd 100644 --- a/libavutil/version.h +++ b/libavutil/version.h @@ -105,7 +105,6 @@ * @{ */ -#define FF_API_AV_FOPEN_UTF8 (LIBAVUTIL_VERSION_MAJOR < 59) #define FF_API_PKT_DURATION (LIBAVUTIL_VERSION_MAJOR < 59) #define FF_API_REORDERED_OPAQUE (LIBAVUTIL_VERSION_MAJOR < 59) #define FF_API_FRAME_PICTURE_NUMBER (LIBAVUTIL_VERSION_MAJOR < 59) -- 2.43.0 _______________________________________________ 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".