33 avio_w8(pb, last_block ? 0x81 : 0x01);
40 int last_block,
int bitexact)
54 bytestream_put_byte(&p, last_block ? 0x84 : 0x04);
55 bytestream_put_be24(&p, len);
129 .mime_type =
"audio/x-flac",
130 .extensions =
"flac",
#define AV_LOG_WARNING
Something somehow does not look correct.
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 avpriv_flac_is_extradata_valid(AVCodecContext *avctx, enum FLACExtradataFormat *format, uint8_t **streaminfo_start)
Validate the FLAC extradata.
void av_freep(void *ptr)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc() and set the pointer ...
#define CODEC_FLAG_BITEXACT
Use only bitexact stuff (except (I)DCT).
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
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. ...
unsigned int nb_streams
A list of all streams in the file.
int seekable
A combination of AVIO_SEEKABLE_ flags or 0 when the stream is not seekable.
void ffio_fill(AVIOContext *s, int b, int count)
void * av_malloc(size_t size) av_malloc_attrib 1(1)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
#define FLAC_STREAMINFO_SIZE
main external API structure.
AVIOContext * pb
I/O context.
int ff_flac_write_header(AVIOContext *pb, AVCodecContext *codec, int last_block)
This structure stores compressed data.