From: jstebbins Date: Mon, 26 Nov 2012 23:07:09 +0000 (+0000) Subject: libhb: fix memory consumption problem X-Git-Tag: 0.9.9~270 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c09426fd20474250645429d4526c1191f6a8cf4;p=handbrake 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 --- 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; }