libopencore-amr, libvo-amrwbenc: Only check the bitrate when changed
authorMartin Storsjö <martin@martin.st>
Wed, 13 Apr 2011 08:03:19 +0000 (11:03 +0300)
committerMartin Storsjö <martin@martin.st>
Wed, 13 Apr 2011 21:31:34 +0000 (00:31 +0300)
commit3dd82afc748df0f1c49b76e1cd4ea6e35b1001a5
tree2e3de72267c46c12946e89ac0ce0b071844c041b
parent70739381213b087cca9570b66561dc57652b6fb9
libopencore-amr, libvo-amrwbenc: Only check the bitrate when changed

Also rename the incorrectly named enc_bitrate to enc_mode, use the
enc_bitrate variable for storing the last chosen bitrate.

This avoids continuous warning log messages if not using an
exactly matching bitrate, while still allowing changing bitrate
at any point.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/libopencore-amr.c
libavcodec/libvo-amrwbenc.c