40 if (!memcmp(probe_packet->
buf + 4,
"97012000", 8))
43 if (!memcmp(probe_packet->
buf + 4,
"00052200", 8))
53 unsigned int tag_len,
unsigned int remaining)
56 char *
buf, key[5] = {0};
71 {
"(c) ",
"copyright" },
72 {
"ARNG",
"arranger" },
75 {
"CDCT",
"conductor" },
76 {
"COMT",
"comment" },
77 {
"FILE",
"filename" },
79 {
"LABL",
"publisher" },
80 {
"MUSC",
"composer" },
83 {
"PROD",
"producer" },
84 {
"PRSN",
"personnel" },
85 {
"REMX",
"remixer" },
118 if (chunk_tag ==
MKTAG(
'D',
'A',
'T',
'A'))
123 if ((
unsigned) len > INT_MAX/2) {
131 case MKTAG(
'C',
'O',
'M',
'M'):
134 read_bitrate =
AV_RB32(comm_chunk + 4);
135 rate_flag =
AV_RB32(comm_chunk + 8);
145 case MKTAG(
'D',
'S',
'I',
'Z'):
150 case MKTAG(
'Y',
'E',
'A',
'R'):
151 case MKTAG(
'E',
'N',
'C',
'D'):
152 case MKTAG(
'E',
'X',
'T',
'R'):
153 case MKTAG(
'_',
'Y',
'M',
'H'):
154 case MKTAG(
'_',
'N',
'T',
'T'):
155 case MKTAG(
'_',
'I',
'D',
'3'):
181 if (rate_flag < 8 || rate_flag > 44) {
260 int stream_index, int64_t timestamp,
int flags)
293 .extensions =
"vqf,vql,vqe",
static int vqf_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd)
Rescale a 64-bit integer with specified rounding.
int64_t pos
byte position in stream, -1 if unknown
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
AVFormatInternal * internal
An opaque field for libavformat internal usage.
int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
static int vqf_probe(AVProbeData *probe_packet)
unsigned int avio_rb32(AVIOContext *s)
int64_t duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL AV_RB32
AVStream ** streams
A list of all streams in the file.
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
int avio_read(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
int64_t bit_rate
The average bitrate of the encoded data (in bits per second).
int av_new_packet(AVPacket *pkt, int size)
Allocate the payload of a packet and initialize its fields with default values.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
AVDictionary * metadata
Metadata that applies to the whole file.
unsigned int avio_rl32(AVIOContext *s)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
enum AVMediaType codec_type
General type of the encoded data.
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
AVInputFormat ff_vqf_demuxer
int64_t av_rescale(int64_t a, int64_t b, int64_t c)
Rescale a 64-bit integer with rounding to nearest.
#define AV_DICT_DONT_STRDUP_VAL
Take ownership of a value that's been allocated with av_malloc() or another memory allocation functio...
internal header for RIFF based (de)muxers do NOT include this in end user applications ...
static int vqf_read_header(AVFormatContext *s)
static const AVMetadataConv vqf_metadata_conv[]
static int read_header(FFV1Context *f)
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
AVIOContext * pb
I/O context.
void av_packet_unref(AVPacket *pkt)
Wipe the packet.
static int vqf_read_packet(AVFormatContext *s, AVPacket *pkt)
int av_dict_set(AVDictionary **pm, const char *key, const char *value, int flags)
Set the given entry in *pm, overwriting an existing entry.
This structure contains the data a format has to probe a file.
int sample_rate
Audio only.
int64_t start_time
Decoding: pts of the first frame of the stream in presentation order, in stream time base...
int av_dict_set_int(AVDictionary **pm, const char *key, int64_t value, int flags)
Convenience wrapper for av_dict_set that converts the value to a string and stores it...
void * priv_data
Format private data.
uint8_t * extradata
Extra binary data needed for initializing the decoder, codec-dependent.
AVCodecParameters * codecpar
int avio_feof(AVIOContext *s)
feof() equivalent for AVIOContext.
AVRational time_base
This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented...
#define MKTAG(a, b, c, d)
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_RL32
This structure stores compressed data.
static void add_metadata(AVFormatContext *s, uint32_t tag, unsigned int tag_len, unsigned int remaining)