Add error message for invalid [de]muxer selection
authorAlex Jurkiewicz <alex@bluebottle.net.au>
Sun, 6 Jun 2010 07:21:12 +0000 (15:21 +0800)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Wed, 9 Jun 2010 18:35:46 +0000 (11:35 -0700)
x264.c

diff --git a/x264.c b/x264.c
index 3a01854..149eaac 100644 (file)
--- 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;