allow ',' separator for --filter
authorLoren Merritt <pengvado@videolan.org>
Sun, 12 Feb 2006 06:50:19 +0000 (06:50 +0000)
committerLoren Merritt <pengvado@videolan.org>
Sun, 12 Feb 2006 06:50:19 +0000 (06:50 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@434 df754926-b1dd-0310-bc7b-ec298dee348c

x264.c

diff --git a/x264.c b/x264.c
index e15b458..7dfbd54 100644 (file)
--- a/x264.c
+++ b/x264.c
@@ -629,6 +629,7 @@ static int  Parse( int argc, char **argv,
             case 'f':
             {
                 char *p = strchr( optarg, ':' );
+                if( !p ) p = strchr( optarg, ',' );
                 param->i_deblocking_filter_alphac0 = atoi( optarg );
                 param->i_deblocking_filter_beta = p ? atoi( p+1 ) : param->i_deblocking_filter_alphac0;
                 break;
@@ -696,6 +697,7 @@ static int  Parse( int argc, char **argv,
             case OPT_SAR:
             {
                 char *p = strchr( optarg, ':' );
+                if( !p ) p = strchr( optarg, '/' );
                 if( p )
                 {
                     param->vui.i_sar_width = atoi( optarg );