Lines Matching refs:adts
28 #include "adts.h"
32 int ff_adts_decode_extradata(AVFormatContext *s, ADTSContext *adts, uint8_t *buf, int size)
44 adts->objecttype = m4ac.object_type - 1;
45 adts->sample_rate_index = m4ac.sampling_index;
46 adts->channel_conf = m4ac.chan_config;
48 if (adts->objecttype > 3U) {
49 av_log(s, AV_LOG_ERROR, "MPEG-4 AOT %d is not allowed in ADTS\n", adts->objecttype+1);
52 if (adts->sample_rate_index == 15) {
68 if (!adts->channel_conf) {
69 init_put_bits(&pb, adts->pce_data, MAX_PCE_SIZE);
72 adts->pce_size = (avpriv_copy_pce_data(&pb, &gb) + 3) / 8;
76 adts->write_adts = 1;
83 ADTSContext *adts = s->priv_data;
87 ff_adts_decode_extradata(s, adts, avc->extradata, avc->extradata_size) < 0)
133 ADTSContext *adts = s->priv_data;
139 if (adts->write_adts) {
140 int err = ff_adts_write_frame_header(adts, buf, pkt->size,
141 adts->pce_size);
145 if (adts->pce_size) {
146 avio_write(pb, adts->pce_data, adts->pce_size);
147 adts->pce_size = 0;
157 .name = "adts",
160 .extensions = "aac,adts",