summaryrefslogtreecommitdiffstats
path: root/test/test.c
diff options
context:
space:
mode:
authorjbrjake <[email protected]>2008-06-05 15:59:24 +0000
committerjbrjake <[email protected]>2008-06-05 15:59:24 +0000
commit44c4de92be3a9ec7c18903b0453e477f379e430b (patch)
treedbb9dccc050a853faa5e39016dfcf6a21165751f /test/test.c
parent4576706b8db62654aa4ab529eca0c5b5ad4488b1 (diff)
Adds a job->cfr boolean to indicate "encode this with a constant frame rate" instead of passing through the true frame durations from the source. Includes CLI implementation, which sets cfr to 1 if the user specifies a frame rate. Otherwise, it uses "same as source" frame rate.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1496 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'test/test.c')
-rw-r--r--test/test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test.c b/test/test.c
index b30af9a8c..2c91287a6 100644
--- a/test/test.c
+++ b/test/test.c
@@ -87,6 +87,7 @@ static int largeFileSize = 0;
static int preset = 0;
static char * preset_name = 0;
static int vfr = 0;
+static int cfr = 0;
static int mp4_optimize = 0;
static int ipod_atom = 0;
@@ -884,6 +885,7 @@ static int HandleEvents( hb_handle_t * h )
}
if( vrate )
{
+ job->cfr = 1;
job->vrate = 27000000;
job->vrate_base = vrate;
}