Lines Matching refs:adts
46 static int adts_decode_extradata(AVFormatContext *s, ADTSContext *adts, uint8_t *buf, int size)
58 adts->objecttype = m4ac.object_type - 1;
59 adts->sample_rate_index = m4ac.sampling_index;
60 adts->channel_conf = m4ac.chan_config;
62 if (adts->objecttype > 3U) {
63 av_log(s, AV_LOG_ERROR, "MPEG-4 AOT %d is not allowed in ADTS\n", adts->objecttype+1);
66 if (adts->sample_rate_index == 15) {
82 if (!adts->channel_conf) {
83 init_put_bits(&pb, adts->pce_data, MAX_PCE_SIZE);
86 adts->pce_size = (avpriv_copy_pce_data(&pb, &gb) + 3) / 8;
90 adts->write_adts = 1;
97 ADTSContext *adts = s->priv_data;
101 adts_decode_extradata(s, adts, avc->extradata, avc->extradata_size) < 0)
147 ADTSContext *adts = s->priv_data;
153 if (adts->write_adts) {
154 int err = adts_write_frame_header(adts, buf, pkt->size,
155 adts->pce_size);
159 if (adts->pce_size) {
160 avio_write(pb, adts->pce_data, adts->pce_size);
161 adts->pce_size = 0;
171 ADTSContext *adts = s->priv_data;
173 if (adts->apetag)
194 .name = "adts",
197 .extensions = "aac,adts",