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 5E2F54DFF9 for ; Fri, 6 Jun 2025 04:45:04 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id AB69268C161; Fri, 6 Jun 2025 07:45:00 +0300 (EEST) Received: from out203-205-221-245.mail.qq.com (out203-205-221-245.mail.qq.com [203.205.221.245]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 78B4D68C112 for ; Fri, 6 Jun 2025 07:44:51 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1749185082; bh=FJnxxKCjVX2oF8bmRZdcKbXRKf5Wd1vedgoRkl1JQUE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=jHaivFjAsBebb1DS7KS43i1FNDEOln+ejP/jB6Et7yUM8Gp0QORo1A6Oo+bOq/L52 ayMFi42wNPuN9sY6tJJKpgyR6VhqxudePZ5I+l34jVieLzAqqtmJa+h1tS5O7bg9w9 fjmYBpvmj08cBHm358I+nY+DcOSUslsXbl1NxryU= Received: from localhost.localdomain ([119.147.10.242]) by newxmesmtplogicsvrszb16-1.qq.com (NewEsmtp) with SMTP id B291EE07; Fri, 06 Jun 2025 12:44:41 +0800 X-QQ-mid: xmsmtpt1749185081tf39avcqd Message-ID: X-QQ-XMAILINFO: MVTv5ZS7EtyTGpbMaiH08fpJPCwUAEusOzDto6tHO4JY0+krxIWiEABaMBQHK2 QDnaBV4fx1VFkrXmz66Tb8m5qR2gwHo7lGmwyHE2qFV04ggHJeTRPgy4ju4t2VLgelDr7c4YTfIv NVX6UHaJy1fSqb1jRloWlTUlCjgIOvrfWrb+b+B3nipqawrSYiXbVSWeYZWV0qNbe1YoldOv1g3M xHVv+/9+lsY+mTCdn2qpN5cjvlSz7x2bPoxHSUATAy7TOX0Fa7ud8NNcLyfYoiTNaURVbAXz8TSi Vyh+xTDOMbXm2ya3H/0LHOuUrznTPArdn4O/c1NAVF7+DY9jCK/rRcLK+rgLhO/t7FyXcREEyqJ8 QBUIBPhYYEGKB45nhAZNFgFW3V7scsbFFz/jMINq01GvEcg9sE5hIllDP2SnT30Nm2Vla9r7Xzk6 Ocm7B8aDNcqToXiNuDEuM9qALtvk9cUK7aJ1PqdvOmJ3F6ZaB2iONS2WiCb11x3IDjWSQVIKzQLy lO/6vGiYYFhdxbpQSfen5NGL1dg9vb68YBOG2fd715EqtPV+muEQ+OyKxKwz/tTv++qy2lKwv3dz Nij/hpH8Wg+f0aYc8Tqk3NBHjCkzW58CEtTULWfXocYtSpTXm0v32ly7IM7Z2Se5U35AOqOL4LPj xwMP3gKE+22vPDWwZzx2LRAfMHf9v2LrnWDE4oe0xf0QpwLm6iNvWfF/PSukTFYb07GZvLJUehSN mVYdVvYQVSmGE4iysgK9Mq4zs+TEooNmefqxhDE9P4glpK3i03RQLxsQQtCHEYXNJMkn4ymYyEkh tA139655e5wHSEfKces0pxFR8AolMp5MMYWclzyFKH+8CY0MPIlFqI5D9HenO9GLgymSs+dZCVvl Gip4wWZqI6Xk9WWejgADQtT+KdnBPJxL43jO3x0UG47/y+BwN1kaF9P8+uNdi5vbluguKFI/tTlu N4IfZCe1seqqgIcSpVBZduhCH81kMgsak5zYxbZa25ysoon9dV2awZeq6e2VfuuRuUDwdggfM= X-QQ-XMRINFO: MPJ6Tf5t3I/ycC2BItcBVIA= From: Zhao Zhili To: ffmpeg-devel@ffmpeg.org Date: Fri, 6 Jun 2025 12:44:39 +0800 X-OQ-MSGID: <20250606044439.57393-1-quinkblack@foxmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2] 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 Cc: Zhao Zhili 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: From: Zhao Zhili --- libavformat/avformat.h | 3 +-- libavformat/format.c | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 2034d2aecc..441e31bc2f 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 specified - * explicitly. + * It will not be selected automatically, and 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 = 0; while ((fmt = av_muxer_iterate(&i))) { + if (fmt->flags & AVFMT_EXPERIMENTAL && !short_name) + continue; score = 0; if (fmt->name && short_name && av_match_name(short_name, fmt->name)) score += 100; -- 2.46.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".