From a20639017bfca0490bb1799575714f22bf470b4f Mon Sep 17 00:00:00 2001 From: Alex Converse Date: Sat, 19 Jun 2010 14:14:51 +0000 Subject: Add HE-AAC v2 support to the AAC decoder. Originally committed as revision 23647 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/mpeg4audio.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libavcodec/mpeg4audio.c') diff --git a/libavcodec/mpeg4audio.c b/libavcodec/mpeg4audio.c index 7507212c76..f9951b1604 100644 --- a/libavcodec/mpeg4audio.c +++ b/libavcodec/mpeg4audio.c @@ -131,6 +131,14 @@ int ff_mpeg4audio_get_config(MPEG4AudioConfig *c, const uint8_t *buf, int buf_si get_bits1(&gb); // skip 1 bit } } + + //PS requires SBR + if (!c->sbr) + c->ps = 0; + //Limit implicit PS to the HE-AACv2 Profile + if ((c->ps == -1 && c->object_type != AOT_AAC_LC) || c->channels & ~0x01) + c->ps = 0; + return specific_config_bitindex; } -- cgit v1.2.3