OSDN Git Service

CLI: allow overriding of the anamorphic mode of a preset
authorjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sun, 30 May 2010 18:40:57 +0000 (18:40 +0000)
committerjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sun, 30 May 2010 18:40:57 +0000 (18:40 +0000)
git-svn-id: svn://localhost/HandBrake/trunk@3339 b64f7644-9d1e-0410-96f1-a4d463321fa5

test/test.c

index dc37402..9d624b9 100644 (file)
@@ -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;
                 }