From 86c8fec9a8fe39b2a6381fe25bb69ec10e3a6859 Mon Sep 17 00:00:00 2001 From: Loren Merritt Date: Mon, 17 May 2010 14:08:37 -0700 Subject: [PATCH] Reduce memory usage in 2-pass with b-adapt 2 --- encoder/encoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3