Commit 476a0f93 authored by Loren Merritt's avatar Loren Merritt
Browse files

allow ',' separator for --filter



git-svn-id: svn://svn.videolan.org/x264/trunk@434 df754926-b1dd-0310-bc7b-ec298dee348c
parent 8dfd87ae
...@@ -629,6 +629,7 @@ static int Parse( int argc, char **argv, ...@@ -629,6 +629,7 @@ static int Parse( int argc, char **argv,
case 'f': case 'f':
{ {
char *p = strchr( optarg, ':' ); char *p = strchr( optarg, ':' );
if( !p ) p = strchr( optarg, ',' );
param->i_deblocking_filter_alphac0 = atoi( optarg ); param->i_deblocking_filter_alphac0 = atoi( optarg );
param->i_deblocking_filter_beta = p ? atoi( p+1 ) : param->i_deblocking_filter_alphac0; param->i_deblocking_filter_beta = p ? atoi( p+1 ) : param->i_deblocking_filter_alphac0;
break; break;
...@@ -696,6 +697,7 @@ static int Parse( int argc, char **argv, ...@@ -696,6 +697,7 @@ static int Parse( int argc, char **argv,
case OPT_SAR: case OPT_SAR:
{ {
char *p = strchr( optarg, ':' ); char *p = strchr( optarg, ':' );
if( !p ) p = strchr( optarg, '/' );
if( p ) if( p )
{ {
param->vui.i_sar_width = atoi( optarg ); param->vui.i_sar_width = atoi( optarg );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment