diff options
author | jstebbins <[email protected]> | 2012-11-26 23:07:09 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2012-11-26 23:07:09 +0000 |
commit | 2c09426fd20474250645429d4526c1191f6a8cf4 (patch) | |
tree | 9690c26467c970985ffb479f1d222645042c0e03 /libhb | |
parent | 0eb819027c9a774adea751e28569e8849b6aeb0d (diff) |
libhb: fix memory consumption problem
Issues with timestamps made cfr think it needed to duplicate a few thousand
frames. this leads to an over-cunsumption of memory since all duplicates
are placed in a list at once.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5082 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/reader.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/reader.c b/libhb/reader.c index d5c937422..d6279f5f5 100644 --- a/libhb/reader.c +++ b/libhb/reader.c @@ -287,15 +287,15 @@ static void update_ipt( hb_work_private_t *r, const hb_buffer_t *buf ) { if( st->startup ) { - st->average += ( dt - st->average ) * (1./2.); + st->average += ( dt - st->average ) * (1./4.); st->startup--; } else { st->average += ( dt - st->average ) * (1./32.); } - st->last = buf->s.renderOffset; } + st->last = buf->s.renderOffset; st->valid = 1; } |