diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/demuxers/id3.h | 12 |
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 */ |