if muxer has a name, !short_name is always false
Signed-off-by: Jack Lau <[email protected]>
---
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
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".