diff options
author | jbrjake <[email protected]> | 2007-12-28 18:17:24 +0000 |
---|---|---|
committer | jbrjake <[email protected]> | 2007-12-28 18:17:24 +0000 |
commit | 9f682a8b9f0b92bc9180024e88ea356d8813d203 (patch) | |
tree | 619878cc99955a854bee0aa21ebaa1d1a0f1b598 /libhb/sync.c | |
parent | 209d03671927cd1a8b4fef50c75b4445c9acb512 (diff) |
"Great! Where are we going?"
Prevents sync.c from prematurely ending the encode when its estimated maximum frame count is too low, by doubling that maximum.
Thanks for fixing this long-standing bug, van!
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1151 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/sync.c')
-rw-r--r-- | libhb/sync.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/sync.c b/libhb/sync.c index bfc40afa3..3521ad036 100644 --- a/libhb/sync.c +++ b/libhb/sync.c @@ -567,9 +567,9 @@ static int SyncVideo( hb_work_object_t * w ) UpdateState( w ); /* Make sure we won't get more frames then expected */ - if( pv->count_frames >= pv->count_frames_max ) + if( pv->count_frames >= pv->count_frames_max * 2) { - hb_log( "sync: got %lld frames", pv->count_frames ); + hb_log( "sync: got too many frames (%lld), exiting early", pv->count_frames ); pv->done = 1; // Drop an empty buffer into our output to ensure that things |