aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mp3enc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-13 20:03:24 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-13 20:03:24 +0200
commiteccec203978e53f897a3c6105d011bbdff2a978b (patch)
tree34f41bcd9c266a5237445d614a93d06dd3727524 /libavformat/mp3enc.c
parent82796aacab1bea42c345221abb86d3f4db4371f3 (diff)
downloadffmpeg-eccec203978e53f897a3c6105d011bbdff2a978b.tar.gz
avformat/mp3enc: drop redundant and uninitialized variable
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mp3enc.c')
-rw-r--r--libavformat/mp3enc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mp3enc.c b/libavformat/mp3enc.c
index 0eecdb7f1b..9c9bd5e862 100644
--- a/libavformat/mp3enc.c
+++ b/libavformat/mp3enc.c
@@ -124,7 +124,7 @@ static int mp3_write_xing(AVFormatContext *s)
int best_bitrate_error = INT_MAX;
int xing_offset;
int ver = 0;
- int bytes_needed, lsf;
+ int bytes_needed;
const char *vendor = (codec->flags & CODEC_FLAG_BITEXACT) ? "Lavf" : LIBAVFORMAT_IDENT;
if (!s->pb->seekable || !mp3->write_xing)
@@ -161,7 +161,7 @@ static int mp3_write_xing(AVFormatContext *s)
header |= channels << 6;
for (bitrate_idx = 1; bitrate_idx < 15; bitrate_idx++) {
- int bit_rate = 1000 * avpriv_mpa_bitrate_tab[lsf][3 - 1][bitrate_idx];
+ int bit_rate = 1000 * avpriv_mpa_bitrate_tab[ver != 3][3 - 1][bitrate_idx];
int error = FFABS(bit_rate - codec->bit_rate);
if (error < best_bitrate_error) {