62 int frames_per_packet;
85 frames_per_packet =
AV_RL32(p + 64);
87 frames_per_packet < 0 ||
93 if (frames_per_packet)
120 struct ogg *
ogg =
s->priv_data;
audio channel layout utility functions
#define AV_CH_LAYOUT_MONO
#define AV_CH_LAYOUT_STEREO
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
void * av_mallocz(size_t size)
Allocate a memory block with alignment suitable for all memory accesses (including vectors if availab...
#define AV_NOPTS_VALUE
Undefined timestamp value.
common internal API header
int ff_vorbis_stream_comment(AVFormatContext *as, AVStream *st, const uint8_t *buf, int size)
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.
uint64_t channel_layout
Audio only.
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
Audio only.
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