Revision 7a07d158

View differences:

libavformat/id3v2.c
211 211
            }else
212 212
                tlen = get_size(s->pb, 4);
213 213
            tflags = get_be16(s->pb);
214
            tunsync = tflags & 0x02;
214
            tunsync = tflags & ID3v2_FLAG_UNSYNCH;
215 215
        } else {
216 216
            get_buffer(s->pb, tag, 3);
217 217
            tag[3] = 0;
libavformat/id3v2.h
33 33
 */
34 34
#define ID3v2_DEFAULT_MAGIC "ID3"
35 35

  
36
#define ID3v2_FLAG_DATALEN     0x0001
37
#define ID3v2_FLAG_UNSYNCH     0x0002
38
#define ID3v2_FLAG_ENCRYPTION  0x0004
39
#define ID3v2_FLAG_COMPRESSION 0x0008
40

  
36 41
/**
37 42
 * Detect ID3v2 Header.
38 43
 * @param buf   must be ID3v2_HEADER_SIZE byte long

Also available in: Unified diff