diff options
author | jstebbins <[email protected]> | 2010-05-30 18:40:57 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2010-05-30 18:40:57 +0000 |
commit | b27acc63e5f408565eb7c5cf6c1afa77703a998d (patch) | |
tree | 14b49fcb3d7bad0fece66651b8b65d229854f62f /test/test.c | |
parent | 0697b4f8b2b066d6adc7932589a18f0f850be5c7 (diff) |
CLI: allow overriding of the anamorphic mode of a preset
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3339 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'test/test.c')
-rw-r--r-- | test/test.c | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/test/test.c b/test/test.c index dc37402c1..9d624b98e 100644 --- a/test/test.c +++ b/test/test.c @@ -637,7 +637,10 @@ static int HandleEvents( hb_handle_t * h ) { x264opts = strdup("cabac=0:ref=2:me=umh:bframes=0:8x8dct=0:trellis=0:subme=6"); } - anamorphic_mode = 2; + if( !anamorphic_mode ) + { + anamorphic_mode = 2; + } job->chapter_markers = 1; } @@ -760,7 +763,10 @@ static int HandleEvents( hb_handle_t * h ) { x264opts = strdup("cabac=0:ref=2:me=umh:b-adapt=2:weightb=0:trellis=0:weightp=0:vbv-maxrate=9500:vbv-bufsize=9500"); } - anamorphic_mode = 2; + if( !anamorphic_mode ) + { + anamorphic_mode = 2; + } job->chapter_markers = 1; } @@ -800,7 +806,10 @@ static int HandleEvents( hb_handle_t * h ) { x264opts = strdup("ref=2:bframes=2:subme=6:mixed-refs=0:weightb=0:8x8dct=0:trellis=0"); } - anamorphic_mode = 1; + if( !anamorphic_mode ) + { + anamorphic_mode = 1; + } job->chapter_markers = 1; } @@ -842,7 +851,10 @@ static int HandleEvents( hb_handle_t * h ) } detelecine = 1; decomb = 1; - anamorphic_mode = 2; + if( !anamorphic_mode ) + { + anamorphic_mode = 2; + } job->chapter_markers = 1; } @@ -916,7 +928,10 @@ static int HandleEvents( hb_handle_t * h ) { x264opts = strdup("ref=1:subme=5:me=umh:no-fast-pskip=1:cabac=0:weightb=0:8x8dct=0:trellis=0"); } - anamorphic_mode = 1; + if( !anamorphic_mode ) + { + anamorphic_mode = 1; + } job->chapter_markers = 1; } |