119 c->block_align =
c->rate * (
c->bits >> 3);
138 c->has_audio = !!
c->rate;
158 c->block_align =
c->rate * (
c->bits >> 3);
199 if (
c->cur_frame >=
c->frames)
201 if (
c->curstrm == -1) {
205 c->pktsize = pktsize - 4;
217 if (
c->pktsize < 2LL +
c->sndsize +
c->gmcsize)
220 size =
c->pktsize -
c->sndsize -
c->gmcsize - 2;
226 memcpy(
pkt->
data + 2,
c->gmc,
c->gmcsize);
240 if (!
c->cur_frame ||
c->curstrm)
242 if (
c->curstrm == -1)
262 .extensions =
"vb,son",
unsigned int avio_rl16(AVIOContext *s)
int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
int avio_read(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
unsigned int avio_rl32(AVIOContext *s)
unsigned int avio_rb32(AVIOContext *s)
int ffio_limit(AVIOContext *s, int size)
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
audio channel layout utility functions
#define MKTAG(a, b, c, d)
static int read_header(FFV1Context *f)
#define AV_CH_LAYOUT_MONO
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
int av_new_packet(AVPacket *pkt, int size)
Allocate the payload of a packet and initialize its fields with default values.
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define AVERROR_EOF
End of file.
#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.
@ AV_PIX_FMT_PAL8
8 bits with AV_PIX_FMT_RGB32 palette
static int siff_read_packet(AVFormatContext *s, AVPacket *pkt)
static int siff_read_header(AVFormatContext *s)
AVInputFormat ff_siff_demuxer
static int siff_parse_soun(AVFormatContext *s, SIFFContext *c, AVIOContext *pb)
static int siff_parse_vbv1(AVFormatContext *s, SIFFContext *c, AVIOContext *pb)
static int create_audio_stream(AVFormatContext *s, SIFFContext *c)
static int siff_probe(const AVProbeData *p)
uint64_t channel_layout
Audio only.
int bits_per_coded_sample
The number of bits per sample in the codedwords.
enum AVMediaType codec_type
General type of the encoded data.
uint32_t codec_tag
Additional information about the codec (corresponds to the AVI FOURCC).
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
int sample_rate
Audio only.
This structure stores compressed data.
int flags
A combination of AV_PKT_FLAG values.
int64_t duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
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.
int64_t nb_frames
number of frames in this stream if known or 0
int64_t duration
Decoding: duration of the stream, in stream time base.
int64_t start_time
Decoding: pts of the first frame of the stream in presentation order, in stream time base.