61 int frames_per_packet;
84 frames_per_packet =
AV_RL32(p + 64);
86 frames_per_packet < 0 ||
87 spxp->
packet_size * (int64_t)frames_per_packet > INT32_MAX / 256) {
92 if (frames_per_packet)
111 for (i = 0; i < os->
nsegs; i++)
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
Copyright (C) 2005 Michael Ahlberg, Måns Rullgård.
static int ogg_page_packets(struct ogg_stream *os)
const struct ogg_codec ff_speex_codec
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
#define AV_CH_LAYOUT_STEREO
int final_packet_duration
AVStream ** streams
A list of all streams in the file.
uint64_t channel_layout
Audio only.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
int ff_vorbis_stream_comment(AVFormatContext *as, AVStream *st, const uint8_t *buf, int size)
enum AVMediaType codec_type
General type of the encoded data.
void * av_mallocz(size_t size)
Allocate a memory block with alignment suitable for all memory accesses (including vectors if availab...
int extradata_size
Size of the extradata content in bytes.
audio channel layout utility functions
struct ogg_stream * streams
static int speex_packet(AVFormatContext *s, int idx)
static int speex_header(AVFormatContext *s, int idx)
int sample_rate
Audio only.
void * priv_data
Format private data.
uint8_t * extradata
Extra binary data needed for initializing the decoder, codec-dependent.
AVCodecParameters * codecpar
Codec parameters associated with this stream.
#define AV_CH_LAYOUT_MONO
#define AV_NOPTS_VALUE
Undefined timestamp value.