Revision 8ae0fa24 libavcodec/aacenc.c
libavcodec/aacenc.c | ||
---|---|---|
149 | 149 |
put_bits(&pb, 1, 0); //frame length - 1024 samples |
150 | 150 |
put_bits(&pb, 1, 0); //does not depend on core coder |
151 | 151 |
put_bits(&pb, 1, 0); //is not extension |
152 |
|
|
153 |
//Explicitly Mark SBR absent |
|
154 |
put_bits(&pb, 11, 0x27b); //sync extension |
|
155 |
put_bits(&pb, 5, AOT_SBR); |
|
156 |
put_bits(&pb, 1, 0); |
|
152 | 157 |
flush_put_bits(&pb); |
153 | 158 |
} |
154 | 159 |
|
... | ... | |
193 | 198 |
|
194 | 199 |
s->samples = av_malloc(2 * 1024 * avctx->channels * sizeof(s->samples[0])); |
195 | 200 |
s->cpe = av_mallocz(sizeof(ChannelElement) * aac_chan_configs[avctx->channels-1][0]); |
196 |
avctx->extradata = av_mallocz(2 + FF_INPUT_BUFFER_PADDING_SIZE);
|
|
197 |
avctx->extradata_size = 2;
|
|
201 |
avctx->extradata = av_mallocz(5 + FF_INPUT_BUFFER_PADDING_SIZE);
|
|
202 |
avctx->extradata_size = 5;
|
|
198 | 203 |
put_audio_specific_config(avctx); |
199 | 204 |
|
200 | 205 |
sizes[0] = swb_size_1024[i]; |
Also available in: Unified diff