diff --git a/libavformat/mp3enc.c b/libavformat/mp3enc.c index 0ebd480d3f..724c7269dc 100644 --- a/libavformat/mp3enc.c +++ b/libavformat/mp3enc.c @@ -322,7 +322,6 @@ static int mp3_write_audio_packet(AVFormatContext *s, AVPacket *pkt) if (pkt->data && pkt->size >= 4) { MPADecodeHeader mpah; int ret; - av_unused int base; uint32_t h; h = AV_RB32(pkt->data); @@ -339,7 +338,7 @@ static int mp3_write_audio_packet(AVFormatContext *s, AVPacket *pkt) #ifdef FILTER_VBR_HEADERS /* filter out XING and INFO headers. */ - base = 4 + xing_offtbl[mpah.lsf == 1][mpah.nb_channels == 1]; + int base = 4 + xing_offtbl[mpah.lsf == 1][mpah.nb_channels == 1]; if (base + 4 <= pkt->size) { uint32_t v = AV_RB32(pkt->data + base);