summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-05-29 18:45:24 +0200
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-05-29 18:45:24 +0200
commitff9e139950744f8d5b2fab434079e6d20ea6b678 (patch)
tree3d236b3fd73c13f64c3e4e5813b6d70988085d92
parentea7a46ad29a0fccea3062948152cb0ac79dd8f86 (diff)
downloadxine-lib-ff9e139950744f8d5b2fab434079e6d20ea6b678.tar.gz
xine-lib-ff9e139950744f8d5b2fab434079e6d20ea6b678.tar.bz2
Add a comment about id3v2_istag function and remove id3v2_tagsize function (was used by demux_flac only).
-rw-r--r--src/demuxers/id3.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/demuxers/id3.h b/src/demuxers/id3.h
index 9d08f6817..9b86ec94e 100644
--- a/src/demuxers/id3.h
+++ b/src/demuxers/id3.h
@@ -170,6 +170,10 @@ int id3v2_parse_tag(input_plugin_t *input,
xine_stream_t *stream,
int8_t *mp3_frame_header);
+/**
+ * @brief Checks if the given buffer is an ID3 tag preamble
+ * @param ptr Pointer to the first 10 bytes of the ID3 tag
+ */
static inline int id3v2_istag(uint8_t *ptr) {
return
(ptr[0] == 'I') &&
@@ -177,12 +181,4 @@ static inline int id3v2_istag(uint8_t *ptr) {
(ptr[2] == '3');
}
-static inline uint32_t id3v2_tagsize(uint8_t *ptr) {
- return
- ((uint32_t)ptr[0] << 21) +
- ((uint32_t)ptr[1] << 14) +
- ((uint32_t)ptr[2] << 7) +
- (uint32_t)ptr[3];
-}
-
#endif /* ID3_H */