diff options
author | Alex Converse <alex.converse@gmail.com> | 2011-08-10 16:37:32 -0700 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2011-08-18 22:29:41 +0200 |
commit | 06d37fede4d36ea528ef69e4358a5775df016df0 (patch) | |
tree | 31d51a294bcbb3d14f18a6206dffb8217bf691b0 /libavcodec/aacdec.c | |
parent | d8425ed4af6d8fce62ff363cc590f85e57bac06b (diff) | |
download | ffmpeg-06d37fede4d36ea528ef69e4358a5775df016df0.tar.gz |
aac: Set SBR and PS to unsignalled during headerless and ADTS initialization.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavcodec/aacdec.c')
-rw-r--r-- | libavcodec/aacdec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c index a380e9d664..d554f41e2e 100644 --- a/libavcodec/aacdec.c +++ b/libavcodec/aacdec.c @@ -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) |