diff options
author | Alex Converse <alex.converse@gmail.com> | 2010-06-19 14:14:51 +0000 |
---|---|---|
committer | Alex Converse <alex.converse@gmail.com> | 2010-06-19 14:14:51 +0000 |
commit | a20639017bfca0490bb1799575714f22bf470b4f (patch) | |
tree | 7ece4b88c997a02342f75f91d1b928dd67257681 /libavcodec/mpeg4audio.c | |
parent | 4d49a5a785220c3430739de8b1e340a4ea3f1864 (diff) | |
download | ffmpeg-a20639017bfca0490bb1799575714f22bf470b4f.tar.gz |
Add HE-AAC v2 support to the AAC decoder.
Originally committed as revision 23647 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpeg4audio.c')
-rw-r--r-- | libavcodec/mpeg4audio.c | 8 |
1 files changed, 8 insertions, 0 deletions
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; } |