Home
last modified time | relevance | path

Searched refs:FLAC_STREAMINFO_SIZE (Results 1 – 12 of 12) sorted by relevance

/third_party/ffmpeg/libavcodec/
Dflac.c173 if (!avctx->extradata || avctx->extradata_size < FLAC_STREAMINFO_SIZE) { in ff_flac_is_extradata_valid()
179 if (avctx->extradata_size != FLAC_STREAMINFO_SIZE) { in ff_flac_is_extradata_valid()
181 FLAC_STREAMINFO_SIZE-avctx->extradata_size); in ff_flac_is_extradata_valid()
186 if (avctx->extradata_size < 8+FLAC_STREAMINFO_SIZE) { in ff_flac_is_extradata_valid()
208 init_get_bits(&gb, buffer, FLAC_STREAMINFO_SIZE*8); in ff_flac_parse_streaminfo()
Dflac.h34 #define FLAC_STREAMINFO_SIZE 34 macro
Dflacdec.c171 if (buf_size < FLAC_STREAMINFO_SIZE+8) { in parse_streaminfo()
177 metadata_size != FLAC_STREAMINFO_SIZE) { in parse_streaminfo()
Dflacenc.c139 memset(header, 0, FLAC_STREAMINFO_SIZE); in write_streaminfo()
140 init_put_bits(&pb, header, FLAC_STREAMINFO_SIZE); in write_streaminfo()
425 streaminfo = av_malloc(FLAC_STREAMINFO_SIZE); in flac_encode_init()
430 avctx->extradata_size = FLAC_STREAMINFO_SIZE; in flac_encode_init()
/third_party/ffmpeg/libavformat/
Dflacenc_header.c38 if (extradata_size < FLAC_STREAMINFO_SIZE) in ff_flac_write_header()
45 avio_write(pb, extradata, FLAC_STREAMINFO_SIZE); in ff_flac_write_header()
Doggparseflac.c57 if (get_bits_long(&gb, 32) != FLAC_STREAMINFO_SIZE) in flac_header()
64 if ((ret = ff_alloc_extradata(st->codecpar, FLAC_STREAMINFO_SIZE)) < 0) in flac_header()
Dflacenc.c45 uint8_t streaminfo[FLAC_STREAMINFO_SIZE];
288 if (streaminfo && streaminfo_size == FLAC_STREAMINFO_SIZE) { in flac_write_audio_packet()
289 memcpy(c->streaminfo, streaminfo, FLAC_STREAMINFO_SIZE); in flac_write_audio_packet()
336 avio_write(pb, c->streaminfo, FLAC_STREAMINFO_SIZE); in flac_write_trailer()
Dflacdec.c104 if (metadata_size != FLAC_STREAMINFO_SIZE) { in flac_read_header()
248 size == FLAC_STREAMINFO_SIZE && in flac_probe()
Doggenc.c307 if (par->extradata_size < FLAC_STREAMINFO_SIZE) in ogg_build_flac_headers()
324 bytestream_put_buffer(&p, par->extradata, FLAC_STREAMINFO_SIZE); in ogg_build_flac_headers()
Dmatroskadec.c2033 if (size < 8 + FLAC_STREAMINFO_SIZE || p[4] & 0x7f) { in matroska_parse_flac()
2039 track->codec_priv.size = 8 + FLAC_STREAMINFO_SIZE; in matroska_parse_flac()
Dmovenc.c786 if (track->par->extradata_size != FLAC_STREAMINFO_SIZE) in mov_write_dfla_tag()
Dmov.c6641 if (type != FLAC_METADATA_TYPE_STREAMINFO || size != FLAC_STREAMINFO_SIZE) { in mov_read_dfla()