# HG changeset patch # User jbr # Date 1206892870 0 # Node ID 85acd5166cf868d1eeb0b02f051f05747c230664 # Parent 8a059debc2ba53debf7548bd931f47c02c051b06 Use 15-bit LPC precision by default. This generally gives better compression results. Also update Ogg regression test. diff -r 8a059debc2ba -r 85acd5166cf8 flacenc.c --- a/flacenc.c Sun Mar 30 10:30:33 2008 +0000 +++ b/flacenc.c Sun Mar 30 16:01:10 2008 +0000 @@ -367,16 +367,8 @@ } s->options.lpc_coeff_precision = avctx->lpc_coeff_precision; } else { - /* select LPC precision based on block size */ - if( s->blocksize <= 192) s->options.lpc_coeff_precision = 7; - else if(s->blocksize <= 384) s->options.lpc_coeff_precision = 8; - else if(s->blocksize <= 576) s->options.lpc_coeff_precision = 9; - else if(s->blocksize <= 1152) s->options.lpc_coeff_precision = 10; - else if(s->blocksize <= 2304) s->options.lpc_coeff_precision = 11; - else if(s->blocksize <= 4608) s->options.lpc_coeff_precision = 12; - else if(s->blocksize <= 8192) s->options.lpc_coeff_precision = 13; - else if(s->blocksize <= 16384) s->options.lpc_coeff_precision = 14; - else s->options.lpc_coeff_precision = 15; + /* default LPC precision */ + s->options.lpc_coeff_precision = 15; } av_log(avctx, AV_LOG_DEBUG, " lpc precision: %d\n", s->options.lpc_coeff_precision);