41 if (os->
psize == 60 &&
46 uint32_t overlap, extra_headers;
49 extradata =
av_malloc(2 *
sizeof(uint32_t) +
52 if (!extradata || !priv) {
64 extra_headers =
AV_RL32(p + 56);
78 AV_WL32(extradata + 0, overlap);
79 AV_WL32(extradata + 4, version);
Copyright (C) 2005 Michael Ahlberg, Måns Rullgård.
static int celt_header(AVFormatContext *s, int idx)
uint8_t * extradata
some codecs need / can use extradata like Huffman tables.
int ff_vorbis_comment(AVFormatContext *ms, AVDictionary **m, const uint8_t *buf, int size)
void av_free(void *ptr)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc(). ...
AVCodecContext * codec
codec context
struct ogg_stream * streams
const struct ogg_codec ff_celt_codec
int frame_size
Samples per packet, initialized when calling 'init'.
enum AVMediaType codec_type
int sample_rate
samples per second
void * av_malloc(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
#define FF_INPUT_BUFFER_PADDING_SIZE
Required number of additionally allocated bytes at the end of the input bitstream for decoding...
int channels
number of audio channels
void * priv_data
Format private data.