From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 3BC8A4E076 for ; Fri, 6 Jun 2025 09:51:22 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id ABD7E68C557; Fri, 6 Jun 2025 12:51:17 +0300 (EEST) Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 9692D68BF75 for ; Fri, 6 Jun 2025 12:51:11 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id C0E5F4333F for ; Fri, 6 Jun 2025 09:51:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1749203470; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=VVvP2Cn2+/qjEIfLVODD63Q5Qd8hwLADQuU/hzuDTyY=; b=djfDlN/rKEN3si2AqRPpYlz8dolk8SwYqfplI9jzPsFDnbqN51NWPemPudQJJzWIMDLljv nF8ZZKwX1mrUB9qQ2IPuG0DwZKf5x+zC1N+3C3c6kEic8u1JPXOT3bZFBIHk5EELUy6lEq 8H6sYuhudKAVDc+7CLMNmU8zHpRFOHR/vOw+1FPlJq+S1g6sgYo6ItulRUki55hQGzbqTS T38rPXZBqPIetGadrHDK5XwApdtCI3dYB8OK9yYe8g1B8DcLBOieq7JOgYWfkTzAnxYwLZ +0p0prrlSrLSiStBHwQ/YS2dzqIwKQFVFpvIFHdYIzBKtb2B1czBrcr1e6kbng== Date: Fri, 6 Jun 2025 11:51:09 +0200 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20250606095109.GX29660@pb2> References: MIME-Version: 1.0 In-Reply-To: X-GND-State: clean X-GND-Score: -85 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddugdegledvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlhcuvffnffculdduhedmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfpihgvuggvrhhmrgihvghruceomhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtqeenucggtffrrghtthgvrhhnpeeigeektdejudffjefhteegjedtgeettefggedthfejgfevhfetgeekjedtvdfhveenucfkphepgedurdeiiedrieejrdduudefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepgedurdeiiedrieejrdduudefpdhhvghloheplhhotggrlhhhohhsthdpmhgrihhlfhhrohhmpehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgdpnhgspghrtghpthhtohepuddprhgtphhtthhopehffhhmphgvghdquggvvhgvlhesfhhfmhhpvghgrdhorhhg X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [PATCH] avformat/format: make experimental flag works for muxer 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: multipart/mixed; boundary="===============6019485886299244807==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============6019485886299244807== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="XVon4esBxRD1rZiP" Content-Disposition: inline --XVon4esBxRD1rZiP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 06, 2025 at 12:06:34AM +0800, Zhao Zhili wrote: > From: Zhao Zhili >=20 > --- > libavformat/avformat.h | 3 +-- > libavformat/format.c | 2 ++ > 2 files changed, 3 insertions(+), 2 deletions(-) >=20 > diff --git a/libavformat/avformat.h b/libavformat/avformat.h > index 2034d2aecc..6edcf11022 100644 > --- a/libavformat/avformat.h > +++ b/libavformat/avformat.h > @@ -470,8 +470,7 @@ typedef struct AVProbeData { > /** > * The muxer/demuxer is experimental and should be used with caution. > * > - * - demuxers: will not be selected automatically by probing, must be sp= ecified > - * explicitly. > + * Will not be selected automatically, must be specified explicitly. > */ > #define AVFMT_EXPERIMENTAL 0x0004 > #define AVFMT_SHOW_IDS 0x0008 /**< Show format stream IDs numbers. = */ > diff --git a/libavformat/format.c b/libavformat/format.c > index 71018ea6ab..516925e7e4 100644 > --- a/libavformat/format.c > +++ b/libavformat/format.c > @@ -95,6 +95,8 @@ const AVOutputFormat *av_guess_format(const char *short= _name, const char *filena > /* Find the proper file type. */ > score_max =3D 0; > while ((fmt =3D av_muxer_iterate(&i))) { > + if (fmt->flags & AVFMT_EXPERIMENTAL && !short_name) > + continue; what does AVFMT_EXPERIMENTAL mean for a muxer ? * a muxer could generate invalid, non compliant data * a muxer could be insecure and exploitable * a muxer could lack some feature (iam sure most muxers in most projects la= ck some feature) I think the first 2 are reasons to use this flag thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB There will always be a question for which you do not know the correct answe= r. --XVon4esBxRD1rZiP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCaEK6CQAKCRBhHseHBAsP qyeiAJwONY6lbUNftAn74qakJM4NmcN/3ACghW0q/GrqCpPYyhMt8goTPouq7Uw= =C22E -----END PGP SIGNATURE----- --XVon4esBxRD1rZiP-- --===============6019485886299244807== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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". --===============6019485886299244807==--