From: Anton Mitrofanov Date: Tue, 31 Aug 2010 15:45:22 +0000 (-0700) Subject: Allow --demuxer forcing with known extensions X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=44ff90e6fc4a895cf6ed65ca39da5b3083daa3dd;p=x264.git Allow --demuxer forcing with known extensions --- 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 );