diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-09-02 00:30:41 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-09-19 20:59:44 +0200 |
commit | 2d1a1a7f62623ff153184dc75dd9559d93b76619 (patch) | |
tree | 3620dfd904fc635fd2f6e34c88d7869ce1344bf4 | |
parent | 9bf41210a9a7511f44ea1d7fd2646430889a7c2b (diff) | |
download | ffmpeg-2d1a1a7f62623ff153184dc75dd9559d93b76619.tar.gz |
mp3dec: use named constants for Xing header flags
-rw-r--r-- | libavformat/mp3dec.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c index d81d0fc97f..ffc1c35a60 100644 --- a/libavformat/mp3dec.c +++ b/libavformat/mp3dec.c @@ -29,6 +29,9 @@ #include "id3v1.h" #include "libavcodec/mpegaudiodecheader.h" +#define XING_FLAG_FRAMES 0x01 +#define XING_FLAG_SIZE 0x02 + /* mp3 read */ static int mp3_read_probe(AVProbeData *p) @@ -117,9 +120,9 @@ static int mp3_parse_vbr_tags(AVFormatContext *s, AVStream *st, int64_t base) v = avio_rb32(s->pb); if(v == MKBETAG('X', 'i', 'n', 'g') || v == MKBETAG('I', 'n', 'f', 'o')) { v = avio_rb32(s->pb); - if(v & 0x1) + if(v & XING_FLAG_FRAMES) frames = avio_rb32(s->pb); - if(v & 0x2) + if(v & XING_FLAG_SIZE) size = avio_rb32(s->pb); } |