37 #define AU_UNKNOWN_SIZE ((uint32_t)(~0))
100 avio_wb32(pb, (uint32_t)(file_size - 24));
113 if (p->
buf[0] ==
'.' && p->
buf[1] ==
's' &&
114 p->
buf[2] ==
'n' && p->
buf[3] ==
'd')
127 unsigned int id, channels, rate;
133 if (tag !=
MKTAG(
'.',
's',
'n',
'd'))
167 #define BLOCK_SIZE 1024
187 #if CONFIG_AU_DEMUXER
203 .mime_type =
"audio/basic",
207 .write_header = au_write_header,
208 .write_packet = au_write_packet,
209 .write_trailer = au_write_trailer,
212 #endif //CONFIG_AU_MUXER
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
unsigned int avio_rb32(AVIOContext *s)
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
static av_always_inline void ffio_wfourcc(AVIOContext *pb, const uint8_t *s)
int av_get_bits_per_sample(enum CodecID codec_id)
Return codec bits per sample.
enum CodecID ff_codec_get_id(const AVCodecTag *tags, unsigned int tag)
static int au_read_header(AVFormatContext *s, AVFormatParameters *ap)
unsigned int avio_rl32(AVIOContext *s)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
AVStream * avformat_new_stream(AVFormatContext *s, AVCodec *c)
Add a new stream to a media file.
AVCodecContext * codec
codec context
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
int seekable
A combination of AVIO_SEEKABLE_ flags or 0 when the stream is not seekable.
int void avio_flush(AVIOContext *s)
static av_always_inline int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
internal header for RIFF based (de)muxers do NOT include this in end user applications ...
static const AVCodecTag codec_au_tags[]
enum AVMediaType codec_type
int sample_rate
samples per second
void av_log_ask_for_sample(void *avc, const char *msg,...) av_printf_format(2
Log a generic warning message asking for a sample.
main external API structure.
unsigned int codec_tag
fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').
This structure contains the data a format has to probe a file.
static int au_read_packet(AVFormatContext *s, AVPacket *pkt)
CodecID
Identify the syntax and semantics of the bitstream.
int channels
number of audio channels
void * priv_data
Format private data.
static int au_probe(AVProbeData *p)
void avio_wb32(AVIOContext *s, unsigned int val)
#define MKTAG(a, b, c, d)