From: Alex Jurkiewicz Date: Sun, 6 Jun 2010 07:21:12 +0000 (+0800) Subject: Add error message for invalid [de]muxer selection X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=3c92ef90e145d627b4048b5c6ea92995b2eafbf3;p=x264.git Add error message for invalid [de]muxer selection --- diff --git a/x264.c b/x264.c index 3a018542..149eaacd 100644 --- a/x264.c +++ b/x264.c @@ -993,11 +993,17 @@ static int Parse( int argc, char **argv, x264_param_t *param, cli_opt_t *opt ) break; case OPT_MUXER: if( parse_enum_name( optarg, muxer_names, &muxer ) < 0 ) + { + fprintf( stderr, "x264 [error]: Unknown muxer `%s'\n", optarg ); return -1; + } break; case OPT_DEMUXER: if( parse_enum_name( optarg, demuxer_names, &demuxer ) < 0 ) + { + fprintf( stderr, "x264 [error]: Unknown demuxer `%s'\n", optarg ); return -1; + } break; case OPT_INDEX: input_opt.index = optarg;