24 #include "libavutil/intfloat.h"
88 avio_wb16(pb, (sample_rate >> 52) + (16383 - 1023));
89 avio_wb64(pb, UINT64_C(1) << 63 | sample_rate << 11);
125 int64_t file_size, end_size;
157 .mime_type =
"audio/aiff",
158 .extensions =
"aif,aiff,afc,aifc",
static int aiff_write_packet(AVFormatContext *s, AVPacket *pkt)
AVCodecContext * codec
Codec context associated with this stream.
void av_log(void *avcl, int level, const char *fmt,...) av_printf_format(3
Send the specified message to the log if the level is less than or equal to the current av_log_level...
int block_align
number of bytes per packet if constant and known or 0 Used by some WAV based audio codecs...
int bits_per_coded_sample
bits per sample/pixel from the demuxer (needed for huffyuv).
static av_always_inline void ffio_wfourcc(AVIOContext *pb, const uint8_t *s)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
int av_get_bits_per_sample(enum AVCodecID codec_id)
Return codec bits per sample.
void * priv_data
Format private data.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
int seekable
A combination of AVIO_SEEKABLE_ flags or 0 when the stream is not seekable.
AVStream ** streams
A list of all streams in the file.
static int aiff_write_trailer(AVFormatContext *s)
int sample_rate
samples per second
main external API structure.
unsigned int codec_tag
fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').
AVIOContext * pb
I/O context.
static int aiff_write_header(AVFormatContext *s)
#define MKTAG(a, b, c, d)
static const AVCodecTag ff_codec_aiff_tags[]
int channels
number of audio channels
static void write_header(FFV1Context *f)
static av_always_inline uint64_t av_double2int(double f)
Reinterpret a double as a 64-bit integer.
common header for AIFF muxer and demuxer
This structure stores compressed data.
AVOutputFormat ff_aiff_muxer