33 const int header_size = 26;
95 .mime_type =
"audio/x-voc",
void avio_wl16(AVIOContext *s, unsigned int val)
struct voc_enc_context VocEncContext
static int voc_write_packet(AVFormatContext *s, AVPacket *pkt)
void avio_wl32(AVIOContext *s, unsigned int val)
AVOutputFormat ff_voc_muxer
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 NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static int voc_write_trailer(AVFormatContext *s)
AVCodecContext * codec
codec context
unsigned int nb_streams
A list of all streams in the file.
#define AVERROR_PATCHWELCOME
Not yet implemented in Libav, patches welcome.
const AVCodecTag ff_voc_codec_tags[]
enum AVMediaType codec_type
int sample_rate
samples per second
void avio_w8(AVIOContext *s, int b)
main external API structure.
unsigned int codec_tag
fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').
void avio_wl24(AVIOContext *s, unsigned int val)
const unsigned char ff_voc_magic[21]
int channels
number of audio channels
void * priv_data
Format private data.
static int voc_write_header(AVFormatContext *s)