63 if (pkt->
size > 65535) {
65 "Packet size too large for s302m. (%d > 65535)\n", pkt->
size);
74 #if CONFIG_DAUD_DEMUXER
unsigned int avio_rb16(AVIOContext *s)
int block_align
number of bytes per packet if constant and known or 0 Used by some WAV based audio codecs...
AVStream ** streams
A list of all streams in the file.
int bits_per_coded_sample
bits per sample/pixel from the demuxer (needed for huffyuv).
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
#define AV_CH_LAYOUT_5POINT1
#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. ...
void av_log(void *avcl, int level, const char *fmt,...)
AVStream * avformat_new_stream(AVFormatContext *s, AVCodec *c)
Add a new stream to a media file.
uint64_t channel_layout
Audio channel layout.
AVCodecContext * codec
Codec context associated with this stream.
int bit_rate
the average bitrate
audio channel layout utility functions
static int daud_write_packet(struct AVFormatContext *s, AVPacket *pkt)
enum AVMediaType codec_type
int sample_rate
samples per second
AVIOContext * pb
I/O context.
static int daud_write_header(struct AVFormatContext *s)
main external API structure.
unsigned int codec_tag
fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').
void avio_wb16(AVIOContext *s, unsigned int val)
int eof_reached
true if eof reached
int channels
number of audio channels
static int daud_header(AVFormatContext *s)
#define MKTAG(a, b, c, d)
This structure stores compressed data.
static int daud_packet(AVFormatContext *s, AVPacket *pkt)