[FFmpeg-devel] [PATCH 3/5] fftools/ffmpeg: switch to av_find_input_format2
Gyan Doshi
ffmpeg at gyani.pro
Tue Jan 28 09:44:44 EET 2020
Identifies and sets demuxer based on extension if short name search
fails.
---
fftools/ffmpeg_opt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c
index 1510e026ea..9e1055495b 100644
--- a/fftools/ffmpeg_opt.c
+++ b/fftools/ffmpeg_opt.c
@@ -1026,7 +1026,7 @@ static int open_input_file(OptionsContext *o, const char *filename)
}
if (o->format) {
- if (!(file_iformat = av_find_input_format(o->format))) {
+ if (!(file_iformat = av_find_input_format2(o->format, 1))) {
av_log(NULL, AV_LOG_FATAL, "Unknown input format: '%s'\n", o->format);
exit_program(1);
}
--
2.24.1
More information about the ffmpeg-devel
mailing list