58 int frames_per_packet;
81 frames_per_packet =
AV_RL32(p + 64);
83 frames_per_packet < 0 ||
89 if (frames_per_packet)
116 struct ogg *
ogg =
s->priv_data;
#define i(width, name, range_min, range_max)
Public libavutil channel layout APIs header.
void av_channel_layout_default(AVChannelLayout *ch_layout, int nb_channels)
Get the default channel layout for a given number of channels.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#define AV_NOPTS_VALUE
Undefined timestamp value.
Memory handling functions.
int ff_vorbis_stream_comment(AVFormatContext *as, AVStream *st, const uint8_t *buf, int size)
Parse Vorbis comments and add metadata to an AVStream.
const struct ogg_codec ff_speex_codec
static int ogg_page_packets(struct ogg_stream *os)
static int speex_header(AVFormatContext *s, int idx)
static int speex_packet(AVFormatContext *s, int idx)
int extradata_size
Size of the extradata content in bytes.
AVChannelLayout ch_layout
The channel layout and number of channels.
enum AVMediaType codec_type
General type of the encoded data.
uint8_t * extradata
Extra binary data needed for initializing the decoder, codec-dependent.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
int sample_rate
The number of audio samples per second.
AVCodecParameters * codecpar
Codec parameters associated with this stream.
Copyright (C) 2005 Michael Ahlberg, Måns Rullgård.
struct ogg_stream * streams
int final_packet_duration