[FFmpeg-devel] [PATCH 4/5] fftools/cmdutils: switch to av_find_input_format2

Gyan Doshi ffmpeg at gyani.pro
Tue Jan 28 09:44:45 EET 2020


Allows matching demuxer by extension
e.g. ffmpeg -h demuxer=string will identify demuxer by
extension match if id by short name fails.
---
 fftools/cmdutils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c
index 7954f23430..6e507ab552 100644
--- a/fftools/cmdutils.c
+++ b/fftools/cmdutils.c
@@ -1854,7 +1854,7 @@ static void show_help_codec(const char *name, int encoder)
 
 static void show_help_demuxer(const char *name)
 {
-    const AVInputFormat *fmt = av_find_input_format(name);
+    const AVInputFormat *fmt = av_find_input_format2(name, 1);
 
     if (!fmt) {
         av_log(NULL, AV_LOG_ERROR, "Unknown format '%s'.\n", name);
-- 
2.24.1



More information about the ffmpeg-devel mailing list