[FFmpeg-devel] [PATCH] avformat/format: fix muxer experimental check is always false
Jack Lau
jacklau1222 at qq.com
Sun Jun 8 04:37:29 EEST 2025
if muxer has a name, !short_name is always false
Signed-off-by: Jack Lau <jacklau1222 at qq.com>
---
libavformat/format.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/format.c b/libavformat/format.c
index 516925e7e4..ad8c17b6d7 100644
--- a/libavformat/format.c
+++ b/libavformat/format.c
@@ -95,7 +95,7 @@ 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)
+ if (fmt->flags & AVFMT_EXPERIMENTAL && short_name)
continue;
score = 0;
if (fmt->name && short_name && av_match_name(short_name, fmt->name))
--
2.49.0
More information about the ffmpeg-devel
mailing list