diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-04-26 03:06:04 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-05-07 03:43:12 +0200 |
commit | 173c975ead9bd9234956cceb3a9b2ed58dfbe213 (patch) | |
tree | 3e9e1d5dcfffe7dbc1f7414bfc2478228ca86313 /libavformat | |
parent | d62bf5d4e73250295c0a652e151498c5b19cbd63 (diff) | |
download | ffmpeg-173c975ead9bd9234956cceb3a9b2ed58dfbe213.tar.gz |
mp3enc: remove unneeded static const variables.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mp3enc.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/libavformat/mp3enc.c b/libavformat/mp3enc.c index 8150b781ed..731937f480 100644 --- a/libavformat/mp3enc.c +++ b/libavformat/mp3enc.c @@ -207,11 +207,6 @@ static int id3v2_check_write_tag(AVFormatContext *s, AVMetadataTag *t, const cha } static const int64_t xing_offtbl[2][2] = {{32, 17}, {17,9}}; -static const uint32_t XING = MKBETAG('X', 'i', 'n', 'g'); -#ifdef FILTER_VBR_HEADERS -static const uint32_t INFO = MKBETAG('I', 'n', 'f', 'o'); -static const uint32_t VBRI = MKBETAG('V', 'B', 'R', 'I'); -#endif /* * Write an empty XING header and initialize respective data. @@ -274,7 +269,7 @@ static int mp3_write_xing(AVFormatContext *s) avio_wb32(s->pb, header); ffio_fill(s->pb, 0, xing_offset); - avio_wb32(s->pb, XING); + avio_wb32(s->pb, MKBETAG('X', 'i', 'n', 'g')); avio_wb32(s->pb, 0x01 | 0x02 | 0x04); // frames/size/toc mp3->xing_header.offset = avio_tell(s->pb); @@ -430,14 +425,14 @@ static int mp3_write_packet(AVFormatContext *s, AVPacket *pkt) if (base + 4 <= pkt->size) { uint32_t v = AV_RB32(pkt->data + base); - if (XING == v || INFO == v) + if (MKBETAG('X','i','n','g') == v || MKBETAG('I','n','f','o') == v) return 0; } /* filter out VBRI headers. */ base = 4 + 32; - if (base + 4 <= pkt->size && VBRI == AV_RB32(pkt->data + base)) + if (base + 4 <= pkt->size && MKBETAG('V','B','R','I') == AV_RB32(pkt->data + base)) return 0; #endif |