summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjbrjake <[email protected]>2008-04-11 19:36:07 +0000
committerjbrjake <[email protected]>2008-04-11 19:36:07 +0000
commitf76035d5b5ffdc42a3c5af3973e0b9d82c080bd6 (patch)
tree609b81fdab81dfab1848e250a9ccd1e22567daa1
parent6630d9d749cb8b050d8020d98d190ebaa548cf3c (diff)
Let's try out saner b-frame init delays again.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1404 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--libhb/encx264.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libhb/encx264.c b/libhb/encx264.c
index c9fbffec9..62c987244 100644
--- a/libhb/encx264.c
+++ b/libhb/encx264.c
@@ -289,10 +289,8 @@ int encx264Init( hb_work_object_t * w, hb_job_t * job )
pv->init_delay = 7506;
}
- /* The delay is 2 frames for regular b-frames, 3 for b-pyramid.
- Since job->areBframes is 1 for b-frames and 2 for b-pyramid,
- add one to it and use it as a multiplier. */
- pv->init_delay *= ( job->areBframes + 1);
+ /* The delay is 1 frames for regular b-frames, 2 for b-pyramid. */
+ pv->init_delay *= job->areBframes;
}
return 0;