Commit d52d44b3 authored by Fiona Glaser's avatar Fiona Glaser

Disable B-frames in lossless mode

They hurt compression anyways, and direct auto was bugged with lossless.
parent cac42177
......@@ -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 */
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment