74 uint32_t chunk_size, payload_size;
85 if (chunk_size < payload_size + 16)
int64_t pos
byte position in stream, -1 if unknown
static av_always_inline float av_int2float(uint32_t i)
Reinterpret a 32-bit integer as a float.
int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
unsigned int avio_rb32(AVIOContext *s)
enum AVStreamParseType need_parsing
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
#define AVERROR_EOF
End of file.
int duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
static int read_probe(AVProbeData *p)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
AVCodecContext * codec
Codec context associated with this stream.
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
static int read_header(AVFormatContext *s)
AVRational av_d2q(double d, int max)
Convert a double precision floating point number to a rational.
const AVCodecTag ff_codec_bmp_tags[]
int width
picture width / height.
internal header for RIFF based (de)muxers do NOT include this in end user applications ...
enum AVMediaType codec_type
AVIOContext * pb
I/O context.
unsigned int codec_tag
fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').
rational number numerator/denominator
This structure contains the data a format has to probe a file.
static int read_packet(AVFormatContext *s, AVPacket *pkt)
int64_t duration
Decoding: duration of the stream, in stream time base.
AVInputFormat ff_mgsts_demuxer
int64_t start_time
Decoding: pts of the first frame of the stream in presentation order, in stream time base...
int64_t nb_frames
number of frames in this stream if known or 0
int avio_feof(AVIOContext *s)
feof() equivalent for AVIOContext.
This structure stores compressed data.