26 typedef struct voc_enc_context {
34 const int header_size = 26;
37 if (
s->nb_streams != 1
70 if (
s->streams[0]->codecpar->channels > 1) {
101 .mime_type =
"audio/x-voc",
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_wl24(AVIOContext *s, unsigned int val)
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
#define flags(name, subs,...)
static void write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost, int unqueue)
static void write_header(FFV1Context *f)
#define AVERROR_PATCHWELCOME
Not yet implemented in FFmpeg, patches welcome.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
common internal API header
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
This struct describes the properties of an encoded stream.
int bits_per_coded_sample
The number of bits per sample in the codedwords.
uint32_t codec_tag
Additional information about the codec (corresponds to the AVI FOURCC).
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
int sample_rate
Audio only.
This structure stores compressed data.
static int write_trailer(AVFormatContext *s1)
const AVCodecTag *const ff_voc_codec_tags_list[]
const unsigned char ff_voc_magic[21]
@ VOC_TYPE_VOICE_DATA_CONT
@ VOC_TYPE_NEW_VOICE_DATA
static int voc_write_trailer(AVFormatContext *s)
AVOutputFormat ff_voc_muxer
static int voc_write_packet(AVFormatContext *s, AVPacket *pkt)
static int voc_write_header(AVFormatContext *s)