--- libfaac/frame.c.orig 2004-11-17 15:26:06.000000000 +0100 +++ libfaac/frame.c 2010-03-24 16:00:05.000000000 +0100 @@ -16,7 +16,7 @@ * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * $Id: frame.c,v 1.67 2004/11/17 14:26:06 menno Exp $ + * $Id: frame.c,v 1.68 2009/06/05 16:09:38 menno Exp $ */ /* @@ -196,6 +196,7 @@ {47000, 10000}, {64000, 16000}, {76000, 20000}, + {128000, 20000}, #endif {0, 0} }; @@ -242,8 +243,6 @@ config->bitRate = tmpbitRate * hEncoder->sampleRate / 44100; #endif - if (config->bandWidth > bwbase) - config->bandWidth = bwbase; } hEncoder->config.bitRate = config->bitRate; @@ -328,8 +327,6 @@ hEncoder->config.useTns = 0; hEncoder->config.bitRate = 0; /* default bitrate / channel */ hEncoder->config.bandWidth = bwfac * hEncoder->sampleRate; - if (hEncoder->config.bandWidth > bwbase) - hEncoder->config.bandWidth = bwbase; hEncoder->config.quantqual = 100; hEncoder->config.psymodellist = (psymodellist_t *)psymodellist; hEncoder->config.psymodelidx = 0; @@ -1116,6 +1113,9 @@ /* $Log: frame.c,v $ +Revision 1.68 2009/06/05 16:09:38 menno +Allow higher bitrates + Revision 1.67 2004/11/17 14:26:06 menno Infinite loop fix dunno if this is good, encoder might be tuned to use energies from before MS encoding. But since the MS encoded samples are used in quantisation this might actually be better. Please test.