24 #include "libavutil/intreadwrite.h"
41 if (os->
psize == 60 &&
46 uint32_t overlap, extra_headers;
49 extradata =
av_malloc(2 *
sizeof(uint32_t) +
52 if (!extradata || !priv) {
63 extra_headers =
AV_RL32(p + 56);
76 AV_WL32(extradata + 0, overlap);
77 AV_WL32(extradata + 4, version);
Copyright (C) 2005 Michael Ahlberg, Måns Rullgård.
AVCodecContext * codec
Codec context associated with this stream.
static int celt_header(AVFormatContext *s, int idx)
uint8_t * extradata
some codecs need / can use extradata like Huffman tables.
void av_free(void *ptr)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc(). ...
void * priv_data
Format private data.
int ff_vorbis_stream_comment(AVFormatContext *as, AVStream *st, const uint8_t *buf, int size)
#define FF_INPUT_BUFFER_PADDING_SIZE
Required number of additionally allocated bytes at the end of the input bitstream for decoding...
AVStream ** streams
A list of all streams in the file.
void * av_malloc(size_t size) av_malloc_attrib 1(1)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
struct ogg_stream * streams
const struct ogg_codec ff_celt_codec
enum AVMediaType codec_type
int sample_rate
samples per second
int channels
number of audio channels