diff mbox series

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

Message ID 20200128074446.7546-4-ffmpeg@gyani.pro
State New
Headers show
Series [FFmpeg-devel,1/5] avformat/format: add av_find_input_format2 | expand

Checks

Context Check Description
andriy/ffmpeg-patchwork success Make fate finished

Commit Message

Gyan Doshi Jan. 28, 2020, 7:44 a.m. UTC
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 mbox series

Patch

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);