diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-13 20:03:24 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-05-04 22:55:46 +0200 |
commit | d4e85004ec6f6a1fd5c67862971601a4402f442b (patch) | |
tree | 888240075752d55a290362c1a731f91ff20189e3 | |
parent | 514917bf1cf48965b276aac0ddb2207b50263977 (diff) | |
download | ffmpeg-d4e85004ec6f6a1fd5c67862971601a4402f442b.tar.gz |
avformat/mp3enc: drop redundant and uninitialized variable
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit eccec203978e53f897a3c6105d011bbdff2a978b)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/mp3enc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mp3enc.c b/libavformat/mp3enc.c index 9491b646bc..eba70a1ab8 100644 --- a/libavformat/mp3enc.c +++ b/libavformat/mp3enc.c @@ -127,7 +127,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) @@ -164,7 +164,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) { |