Browse Source

aac: Set SBR and PS to unsignalled during headerless and ADTS initialization.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
tags/n0.9
Alex Converse Luca Barbato 14 years ago
parent
commit
06d37fede4
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/aacdec.c

+ 2
- 0
libavcodec/aacdec.c View File

@@ -579,6 +579,8 @@ static av_cold int aac_decode_init(AVCodecContext *avctx)
sr = sample_rate_idx(avctx->sample_rate);
ac->m4ac.sampling_index = sr;
ac->m4ac.channels = avctx->channels;
ac->m4ac.sbr = -1;
ac->m4ac.ps = -1;

for (i = 0; i < FF_ARRAY_ELEMS(ff_mpeg4audio_channels); i++)
if (ff_mpeg4audio_channels[i] == avctx->channels)


Loading…
Cancel
Save