[FFmpeg-cvslog] r25902 - in trunk/libavformat: id3v2.c id3v2.h

elenril subversion
Tue Dec 7 08:52:50 CET 2010


Author: elenril
Date: Tue Dec  7 08:52:50 2010
New Revision: 25902

Log:
id3v2: use a named constant instead of 0x02

Modified:
   trunk/libavformat/id3v2.c
   trunk/libavformat/id3v2.h

Modified: trunk/libavformat/id3v2.c
==============================================================================
--- trunk/libavformat/id3v2.c	Tue Dec  7 02:38:26 2010	(r25901)
+++ trunk/libavformat/id3v2.c	Tue Dec  7 08:52:50 2010	(r25902)
@@ -211,7 +211,7 @@ void ff_id3v2_parse(AVFormatContext *s, 
             }else
                 tlen = get_size(s->pb, 4);
             tflags = get_be16(s->pb);
-            tunsync = tflags & 0x02;
+            tunsync = tflags & ID3v2_FLAG_UNSYNCH;
         } else {
             get_buffer(s->pb, tag, 3);
             tag[3] = 0;

Modified: trunk/libavformat/id3v2.h
==============================================================================
--- trunk/libavformat/id3v2.h	Tue Dec  7 02:38:26 2010	(r25901)
+++ trunk/libavformat/id3v2.h	Tue Dec  7 08:52:50 2010	(r25902)
@@ -33,6 +33,11 @@
  */
 #define ID3v2_DEFAULT_MAGIC "ID3"
 
+#define ID3v2_FLAG_DATALEN     0x0001
+#define ID3v2_FLAG_UNSYNCH     0x0002
+#define ID3v2_FLAG_ENCRYPTION  0x0004
+#define ID3v2_FLAG_COMPRESSION 0x0008
+
 /**
  * Detect ID3v2 Header.
  * @param buf   must be ID3v2_HEADER_SIZE byte long



More information about the ffmpeg-cvslog mailing list