From 24a964f7f59bf6e501d0612c8c82b6d8b13fd033 Mon Sep 17 00:00:00 2001 From: Anton Mitrofanov Date: Tue, 31 Aug 2010 08:45:22 -0700 Subject: [PATCH] Allow --demuxer forcing with known extensions --- x264.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x264.c b/x264.c index c1f98c0f..9b09fac0 100644 --- a/x264.c +++ b/x264.c @@ -933,9 +933,9 @@ static int select_output( const char *muxer, char *filename, x264_param_t *param static int select_input( const char *demuxer, char *used_demuxer, char *filename, hnd_t *p_handle, video_info_t *info, cli_input_opt_t *opt ) { - const char *ext = get_filename_extension( filename ); - int b_regular = strcmp( filename, "-" ); int b_auto = !strcasecmp( demuxer, "auto" ); + const char *ext = b_auto ? get_filename_extension( filename ) : ""; + int b_regular = strcmp( filename, "-" ); if( !b_regular && b_auto ) ext = "raw"; b_regular = b_regular && x264_is_regular_file_path( filename ); -- 2.39.2