40 for (srate_index = 0; ; srate_index++) {
58 for (i = 0; i < 6; i++)
68 isjointstereo = format->
extradata[6] != 0;
70 isjointstereo = format->
extradata[8] == 0x12;
76 (isjointstereo << 17) |
100 .mime_type =
"audio/x-oma",
static av_cold int oma_write_header(AVFormatContext *s)
void avio_wl16(AVIOContext *s, unsigned int val)
int ff_id3v2_write_simple(struct AVFormatContext *s, int id3v2_version, const char *magic)
Write an ID3v2 tag containing all global metadata from s.
int block_align
number of bytes per packet if constant and known or 0 Used by some WAV based audio codecs...
const AVCodecTag ff_oma_codec_tags[]
void avio_wl32(AVIOContext *s, unsigned int val)
uint8_t * extradata
some codecs need / can use extradata like Huffman tables.
AVStream ** streams
A list of all streams in the file.
static av_always_inline void ffio_wfourcc(AVIOContext *pb, const uint8_t *s)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
AVCodecContext * codec
Codec context associated with this stream.
int sample_rate
samples per second
AVIOContext * pb
I/O context.
void avio_w8(AVIOContext *s, int b)
main external API structure.
static const char * format
unsigned int codec_tag
fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').
AVOutputFormat ff_oma_muxer
int channels
number of audio channels
void avio_wb32(AVIOContext *s, unsigned int val)
const uint16_t ff_oma_srate_tab[8]