26 #include "libavutil/bswap.h"
27 #include "libavutil/avstring.h"
28 #include "libavutil/channel_layout.h"
57 int frames_per_packet;
76 frames_per_packet =
AV_RL32(p + 64);
77 if (frames_per_packet)
96 for (i = 0; i < os->
nsegs; i++)
Copyright (C) 2005 Michael Ahlberg, Måns Rullgård.
static int ogg_page_packets(struct ogg_stream *os)
AVCodecContext * codec
Codec context associated with this stream.
void av_log(void *avcl, int level, const char *fmt,...) av_printf_format(3
Send the specified message to the log if the level is less than or equal to the current av_log_level...
#define AV_CH_LAYOUT_STEREO
uint8_t * extradata
some codecs need / can use extradata like Huffman tables.
int final_packet_duration
bitstream reader API header.
int ff_vorbis_comment(AVFormatContext *ms, AVDictionary **m, const uint8_t *buf, int size)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
void * priv_data
Format private data.
uint64_t channel_layout
Audio channel layout.
struct ogg_stream * streams
struct ogg_codec ff_speex_codec
enum AVMediaType codec_type
int sample_rate
samples per second
static int speex_packet(AVFormatContext *s, int idx)
static int speex_header(AVFormatContext *s, int idx)
#define AVERROR_INVALIDDATA
int channels
number of audio channels
#define AV_CH_LAYOUT_MONO
#define AV_NOPTS_VALUE
Undefined timestamp value.
void * av_mallocz(size_t size) av_malloc_attrib 1(1)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...