86 avio_wb16(pb, (sample_rate >> 52) + (16383 - 1023));
87 avio_wb64(pb, UINT64_C(1) << 63 | sample_rate << 11);
123 int64_t file_size, end_size;
155 .mime_type =
"audio/aiff",
156 .extensions =
"aif,aiff,afc,aifc",
void avio_wb64(AVIOContext *s, uint64_t val)
static int aiff_write_packet(AVFormatContext *s, AVPacket *pkt)
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
static av_always_inline uint64_t av_double2int(double f)
Reinterpret a double as a 64-bit integer.
int block_align
number of bytes per packet if constant and known or 0 Used by some WAV based audio codecs...
void avio_wl32(AVIOContext *s, unsigned int val)
#define MKTAG(a, b, c, d)
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
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)
static av_always_inline void ffio_wfourcc(AVIOContext *pb, const uint8_t *s)
int av_get_bits_per_sample(enum AVCodecID codec_id)
Return codec bits per sample.
#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,...)
AVCodecContext * codec
Codec context associated with this stream.
int seekable
A combination of AVIO_SEEKABLE_ flags or 0 when the stream is not seekable.
int void avio_flush(AVIOContext *s)
static int aiff_write_trailer(AVFormatContext *s)
int sample_rate
samples per second
AVIOContext * pb
I/O context.
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').
static int aiff_write_header(AVFormatContext *s)
void avio_wb16(AVIOContext *s, unsigned int val)
static const AVCodecTag ff_codec_aiff_tags[]
int channels
number of audio channels
void * priv_data
Format private data.
static void write_header(FFV1Context *f)
common header for AIFF muxer and demuxer
void avio_wb32(AVIOContext *s, unsigned int val)
This structure stores compressed data.
AVOutputFormat ff_aiff_muxer