[x264-devel] commit: Add error message for invalid [de]muxer selection (Alex Jurkiewicz )
git at videolan.org
git at videolan.org
Wed Jun 9 20:38:03 CEST 2010
x264 | branch: master | Alex Jurkiewicz <alex at bluebottle.net.au> | Sun Jun 6 15:21:12 2010 +0800| [3c92ef90e145d627b4048b5c6ea92995b2eafbf3] | committer: Jason Garrett-Glaser
Add error message for invalid [de]muxer selection
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=3c92ef90e145d627b4048b5c6ea92995b2eafbf3
---
x264.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/x264.c b/x264.c
index 3a01854..149eaac 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;
More information about the x264-devel
mailing list