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)
int ff_id3v2_write_simple(struct AVFormatContext *s, int id3v2_version, const char *magic)
Write an ID3v2 tag containing all global metadata from s.
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...
int block_align
number of bytes per packet if constant and known or 0 Used by some WAV based audio codecs...
uint8_t * extradata
some codecs need / can use extradata like Huffman tables.
const AVCodecTag ff_oma_codec_tags[]
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. ...
int sample_rate
samples per second
main external API structure.
unsigned int codec_tag
fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').
AVIOContext * pb
I/O context.
AVOutputFormat ff_oma_muxer
int channels
number of audio channels
const uint16_t ff_oma_srate_tab[8]