]> git.sesse.net Git - x264/commitdiff
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)
committerFiona Glaser <fiona@x264.com>
Wed, 9 Jun 2010 18:35:46 +0000 (11:35 -0700)
x264.c

diff --git a/x264.c b/x264.c
index 3a01854255bacb94fde5dc0158c997fd55dd0c77..149eaacd4415518ffc60d5f12d8b3a94e558f538 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;