23 #include "libavcodec/avcodec.h"
24 #include "libavutil/dict.h"
61 [33] =
"Instrumental",
74 [46] =
"Instrumental Pop",
75 [47] =
"Instrumental Rock",
79 [51] =
"Techno-Industrial",
84 [56] =
"Southern Rock",
89 [61] =
"Christian Rap",
92 [64] =
"Native American",
106 [78] =
"Rock & Roll",
110 [82] =
"National Folk",
112 [84] =
"Fast Fusion",
119 [91] =
"Gothic Rock",
120 [92] =
"Progressive Rock",
121 [93] =
"Psychedelic Rock",
122 [94] =
"Symphonic Rock",
126 [98] =
"Easy Listening",
132 [104] =
"Chamber Music",
135 [107] =
"Booty Bass",
137 [109] =
"Porn Groove",
145 [117] =
"Power Ballad",
146 [118] =
"Rhythmic Soul",
152 [124] =
"Euro-House",
153 [125] =
"Dance Hall",
155 [127] =
"Drum & Bass",
156 [128] =
"Club-House",
162 [134] =
"Polsk Punk",
164 [136] =
"Christian Gangsta",
165 [137] =
"Heavy Metal",
166 [138] =
"Black Metal",
168 [140] =
"Contemporary Christian",
169 [141] =
"Christian Rock",
172 [144] =
"Thrash Metal",
185 for(i = 0; i < buf_size; i++) {
189 if ((q - str) >=
sizeof(str) - 1)
209 if (!(buf[0] ==
'T' &&
218 if (buf[125] == 0 && buf[126] != 0) {
219 snprintf(str,
sizeof(str),
"%d", buf[126]);
237 if (filesize > 128) {
void ff_id3v1_read(AVFormatContext *s)
Read an ID3v1 tag.
int seekable
A combination of AVIO_SEEKABLE_ flags or 0 when the stream is not seekable.
static void get_string(AVFormatContext *s, const char *key, const uint8_t *buf, int buf_size)
AVIOContext * pb
I/O context.
int av_dict_set(AVDictionary **pm, const char *key, const char *value, int flags)
Set the given entry in *pm, overwriting an existing entry.
static int parse_tag(AVFormatContext *s, const uint8_t *buf)
Parse an ID3v1 tag.
const char *const ff_id3v1_genre_str[ID3v1_GENRE_MAX+1]
ID3v1 genres.