48 if (header_size != 4) {
72 int64_t timestamp,
int flags)
78 if (
s->nb_streams < 1) {
83 st =
s->streams[stream_index];
86 if (
index >= 0 && index < st->nb_index_entries - 1) {
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
unsigned int avio_rl16(AVIOContext *s)
int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
#define flags(name, subs,...)
static int read_header(FFV1Context *f)
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
int av_index_search_timestamp(AVStream *st, int64_t timestamp, int flags)
Get the index for a specific timestamp.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
common internal API header
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
#define check(x, y, S, v)
enum AVMediaType codec_type
General type of the encoded data.
int64_t timestamp
Timestamp in AVStream.time_base units, preferably the time from which on correctly decoded frames are...
This structure stores compressed data.
This structure contains the data a format has to probe a file.
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
AVCodecParameters * codecpar
Codec parameters associated with this stream.
AVIndexEntry * index_entries
Only used if the format does not support seeking natively.
const AVCodecTag *const ff_voc_codec_tags_list[]
const unsigned char ff_voc_magic[21]
int ff_voc_get_packet(AVFormatContext *s, AVPacket *pkt, AVStream *st, int max_size)
static int voc_read_header(AVFormatContext *s)
AVInputFormat ff_voc_demuxer
static int voc_probe(const AVProbeData *p)
static int voc_read_packet(AVFormatContext *s, AVPacket *pkt)
static int voc_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)