32 avio_w8(pb, last_block ? 0x81 : 0x01);
34 while (n_padding_bytes > 0) {
42 int last_block,
int bitexact)
45 unsigned int len, count;
56 bytestream_put_byte(&p, last_block ? 0x84 : 0x04);
57 bytestream_put_be24(&p, len);
123 .mime_type =
"audio/x-flac",
124 .extensions =
"flac",
void * av_malloc(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
#define CODEC_FLAG_BITEXACT
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
int avpriv_flac_is_extradata_valid(AVCodecContext *avctx, enum FLACExtradataFormat *format, uint8_t **streaminfo_start)
Validate the FLAC extradata.
void av_freep(void *arg)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc() and set the pointer ...
#define LIBAVFORMAT_IDENT
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)
FLAC (Free Lossless Audio Codec) decoder/demuxer common functions.
#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)
void avio_wb24(AVIOContext *s, unsigned int val)
#define FLAC_STREAMINFO_SIZE
#define AVFMT_NOTIMESTAMPS
AVIOContext * pb
I/O context.
void avio_w8(AVIOContext *s, int b)
main external API structure.
int ff_flac_write_header(AVIOContext *pb, AVCodecContext *codec, int last_block)
This structure stores compressed data.