37#define AUD_CHUNK_SIGNATURE 0x0000DEAF
51 " non-seekable stream.\n");
63 unsigned char flags = 0;
92 if (
pkt->size > UINT16_MAX / 4)
99 a->size +=
pkt->size + 8;
100 a->uncomp_size +=
pkt->size * 4;
120 .p.extensions =
"aud",
static AVFormatContext * ctx
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
#define AVIO_SEEKABLE_NORMAL
Seeking works like for a local file.
void avio_wl32(AVIOContext *s, unsigned int val)
void avio_wl16(AVIOContext *s, unsigned int val)
void avio_w8(AVIOContext *s, int b)
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
void ffio_fill(AVIOContext *s, int b, int64_t count)
#define flags(name, subs,...)
int av_get_bits_per_sample(enum AVCodecID codec_id)
Return codec bits per sample.
@ AV_CODEC_ID_ADPCM_IMA_WS
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#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.
#define FF_OFMT_FLAG_MAX_ONE_OF_EACH
If this flag is set, it indicates that for each codec type whose corresponding default codec (i....
#define FF_OFMT_FLAG_ONLY_DEFAULT_CODECS
If this flag is set, then the only permitted audio/video/subtitle codec ids are AVOutputFormat....
int nb_channels
Number of channels in this layout.
AVChannelLayout ch_layout
The channel layout and number of channels.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
int sample_rate
The number of audio samples per second.
int seekable
A combination of AVIO_SEEKABLE_ flags or 0 when the stream is not seekable.
This structure stores compressed data.
AVCodecParameters * codecpar
Codec parameters associated with this stream.
#define AUD_CHUNK_SIGNATURE
static int wsaud_write_packet(AVFormatContext *ctx, AVPacket *pkt)
static int wsaud_write_trailer(AVFormatContext *ctx)
static int wsaud_write_header(AVFormatContext *ctx)
static int wsaud_write_init(AVFormatContext *ctx)