From: Jason Garrett-Glaser Date: Tue, 6 Jan 2009 21:55:44 +0000 (-0500) Subject: Disable B-frames in lossless mode X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=6a4a9beae060d69bbeaeb8c1c3056fb6ae6765f6;p=x264.git Disable B-frames in lossless mode They hurt compression anyways, and direct auto was bugged with lossless. --- diff --git a/encoder/analyse.c b/encoder/analyse.c index 8457c385..f9f5abb7 100644 --- a/encoder/analyse.c +++ b/encoder/analyse.c @@ -2464,11 +2464,7 @@ void x264_macroblock_analyse( x264_t *h ) { if( !h->mb.b_direct_auto_write ) x264_mb_mc( h ); - if( h->mb.b_lossless ) - { - /* chance of skip is too small to bother */ - } - else if( analysis.i_mbrd ) + if( analysis.i_mbrd ) { i_bskip_cost = ssd_mb( h ); /* 6 = minimum cavlc cost of a non-skipped MB */ diff --git a/encoder/encoder.c b/encoder/encoder.c index fd86a18d..3120e940 100644 --- a/encoder/encoder.c +++ b/encoder/encoder.c @@ -411,6 +411,7 @@ static int x264_validate_parameters( x264_t *h ) h->param.analyse.b_fast_pskip = 0; h->param.analyse.i_noise_reduction = 0; h->param.analyse.f_psy_rd = 0; + h->param.i_bframe = 0; /* 8x8dct is not useful at all in CAVLC lossless */ if( !h->param.b_cabac ) h->param.analyse.b_transform_8x8 = 0;