Mercurial > libavcodec.hg
comparison aac_adtstoasc_bsf.c @ 10533:d5339724d6ce libavcodec
Pad the extradata in the AAC ADTS to AudioSpecificConfig bitstream filter.
author | alexc |
---|---|
date | Sun, 15 Nov 2009 19:40:44 +0000 |
parents | 7ad7d4094d1f |
children | e7634f1b6100 |
comparison
equal
deleted
inserted
replaced
10532:ca88470521db | 10533:d5339724d6ce |
---|---|
82 flush_put_bits(&pb); | 82 flush_put_bits(&pb); |
83 buf_size -= get_bits_count(&gb)/8; | 83 buf_size -= get_bits_count(&gb)/8; |
84 buf += get_bits_count(&gb)/8; | 84 buf += get_bits_count(&gb)/8; |
85 } | 85 } |
86 avctx->extradata_size = 2 + pce_size; | 86 avctx->extradata_size = 2 + pce_size; |
87 avctx->extradata = av_malloc(avctx->extradata_size); | 87 avctx->extradata = av_mallocz(avctx->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE); |
88 | 88 |
89 init_put_bits(&pb, avctx->extradata, avctx->extradata_size); | 89 init_put_bits(&pb, avctx->extradata, avctx->extradata_size); |
90 put_bits(&pb, 5, hdr.object_type); | 90 put_bits(&pb, 5, hdr.object_type); |
91 put_bits(&pb, 4, hdr.sampling_index); | 91 put_bits(&pb, 4, hdr.sampling_index); |
92 put_bits(&pb, 4, hdr.chan_config); | 92 put_bits(&pb, 4, hdr.chan_config); |