[x264-devel] commit: Add error message for invalid [de]muxer selection (Alex Jurkiewicz )

git at videolan.org git at videolan.org
Wed Jun 9 18:39:07 CEST 2010


x264 | branch: master | Alex Jurkiewicz <alex at bluebottle.net.au> | Sun Jun  6 15:21:12 2010 +0800| [ebbb6143e550e2dd0311f31170ac521304ad1ad7] | committer: Jason Garrett-Glaser 

Add error message for invalid [de]muxer selection

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=ebbb6143e550e2dd0311f31170ac521304ad1ad7
---

 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