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);
void * av_malloc(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
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)
static const uint8_t frame_size[4]
void av_free(void *ptr)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc(). ...
AVCodecContext * codec
Codec context associated with this stream.
struct ogg_stream * streams
const struct ogg_codec ff_celt_codec
int frame_size
Number of samples per channel in an audio frame.
enum AVMediaType codec_type
int sample_rate
samples per second
#define FF_INPUT_BUFFER_PADDING_SIZE
int channels
number of audio channels
void * priv_data
Format private data.