Go to the documentation of this file.
38 int main(
int argc,
char *argv[])
48 fprintf(stderr,
"Usage: %s <file>\n", argv[0]);
60 fprintf(stderr,
"Failed to open '%s'\n", argv[1]);
__device__ int printf(const char *,...)
int avio_open(AVIOContext **s, const char *filename, int flags)
Create and initialize a AVIOContext for accessing the resource indicated by url.
void ff_id3v2_read(AVFormatContext *s, const char *magic, ID3v2ExtraMeta **extra_meta, unsigned int max_search_size)
Read an ID3v2 tag, including supported extra metadata.
int av_log_get_level(void)
Get the current log level.
void av_log_set_callback(void(*callback)(void *, int, const char *, va_list))
Set the logging callback.
AVFormatContext * avformat_alloc_context(void)
Allocate an AVFormatContext.
#define ID3v2_DEFAULT_MAGIC
Default magic bytes for ID3v2 header: "ID3".
static void log_to_stdout(void *avcl, int level, const char *fmt, va_list vl)
Reads ID3v2 tags from an MP3 file and prints the raw tag names without applying FFmpeg's internal met...
int main(int argc, char *argv[])
void avformat_free_context(AVFormatContext *s)
Free an AVFormatContext and all its streams.
#define AVIO_FLAG_READ
read-only
int avio_closep(AVIOContext **s)
Close the resource accessed by the AVIOContext *s, free it and set the pointer pointing to it to NULL...
void ff_id3v2_free_extra_meta(ID3v2ExtraMeta **extra_meta)
Free memory allocated parsing special (non-text) metadata.
const AVDictionaryEntry * av_dict_iterate(const AVDictionary *m, const AVDictionaryEntry *prev)
Iterate over a dictionary.