From: Jason Garrett-Glaser Date: Sat, 11 Dec 2010 11:48:59 +0000 (-0800) Subject: Allow 8x8dct+cavlc+lossless with subme>=6 X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=78e3bc95f6c8daef4222e6f231b88dfa7edbccb6;p=x264.git Allow 8x8dct+cavlc+lossless with subme>=6 --- diff --git a/encoder/encoder.c b/encoder/encoder.c index 3c2d3d75..ab66661e 100644 --- a/encoder/encoder.c +++ b/encoder/encoder.c @@ -521,8 +521,8 @@ static int x264_validate_parameters( x264_t *h ) h->param.analyse.i_noise_reduction = 0; h->param.analyse.b_psy = 0; h->param.i_bframe = 0; - /* 8x8dct is not useful at all in CAVLC lossless */ - if( !h->param.b_cabac ) + /* 8x8dct is not useful without RD in CAVLC lossless */ + if( !h->param.b_cabac && h->param.analyse.i_subpel_refine < 6 ) h->param.analyse.b_transform_8x8 = 0; } if( h->param.rc.i_rc_method == X264_RC_CQP )