From: Loren Merritt Date: Mon, 17 May 2010 21:08:37 +0000 (-0700) Subject: Reduce memory usage in 2-pass with b-adapt 2 X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=86c8fec9a8fe39b2a6381fe25bb69ec10e3a6859;p=x264.git Reduce memory usage in 2-pass with b-adapt 2 --- diff --git a/encoder/encoder.c b/encoder/encoder.c index 19cb79d0..90c15d03 100644 --- a/encoder/encoder.c +++ b/encoder/encoder.c @@ -928,7 +928,7 @@ x264_t *x264_encoder_open( x264_param_t *param ) h->mb.i_mb_count = h->sps->i_mb_width * h->sps->i_mb_height; /* Init frames. */ - if( h->param.i_bframe_adaptive == X264_B_ADAPT_TRELLIS ) + if( h->param.i_bframe_adaptive == X264_B_ADAPT_TRELLIS && !h->param.rc.b_stat_read ) h->frames.i_delay = X264_MAX(h->param.i_bframe,3)*4; else h->frames.i_delay = h->param.i_bframe;