Lines Matching refs:adts
31 #include "adts.h"
213 ADTSContext *adts;
534 ts_st->adts = av_mallocz(sizeof(*ts_st->adts));
535 if (!ts_st->adts)
537 if (ff_adts_decode_extradata(s, ts_st->adts, st->codec->extradata,
612 av_freep(&ts_st->adts);
989 ADTSContext *adts = ts_st->adts;
991 if (!adts) {
992 av_log(s, AV_LOG_ERROR, "aac bitstream not in adts format "
996 new_size = ADTS_HEADER_SIZE+adts->pce_size+pkt->size;
1002 err = ff_adts_write_frame_header(adts, data, pkt->size,
1003 adts->pce_size);
1008 if (adts->pce_size) {
1009 memcpy(data+ADTS_HEADER_SIZE, adts->pce_data, adts->pce_size);
1010 adts->pce_size = 0;
1012 memcpy(data+ADTS_HEADER_SIZE+adts->pce_size, pkt->data, pkt->size);
1072 av_freep(&ts_st->adts);