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",
void avio_wb64(AVIOContext *s, uint64_t val)
static int aiff_write_packet(AVFormatContext *s, AVPacket *pkt)
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
av_log(ac->avr, AV_LOG_TRACE, "%d samples - audio_convert: %s to %s (%s)\, len, av_get_sample_fmt_name(ac->in_fmt), av_get_sample_fmt_name(ac->out_fmt), use_generic ? ac->func_descr_generic :ac->func_descr)
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.
This struct describes the properties of an encoded stream.
void avio_wl32(AVIOContext *s, unsigned int val)
AVStream ** streams
A list of all streams in the file.
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
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.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
int block_align
Audio only.
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)
AVIOContext * pb
I/O context.
void avio_w8(AVIOContext *s, int b)
static void write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost)
static int aiff_write_header(AVFormatContext *s)
void avio_wb16(AVIOContext *s, unsigned int val)
int sample_rate
Audio only.
static const AVCodecTag ff_codec_aiff_tags[]
void * priv_data
Format private data.
static void write_header(FFV1Context *f)
int bits_per_coded_sample
common header for AIFF muxer and demuxer
void avio_wb32(AVIOContext *s, unsigned int val)
AVCodecParameters * codecpar
uint32_t codec_tag
Additional information about the codec (corresponds to the AVI FOURCC).
#define MKTAG(a, b, c, d)
This structure stores compressed data.
AVOutputFormat ff_aiff_muxer