diff options
author | Dale Curtis <dalecurtis@chromium.org> | 2018-02-15 16:22:55 -0800 |
---|---|---|
committer | Alex Converse <alex.converse@gmail.com> | 2018-02-21 18:17:24 -0800 |
commit | a246701e9abe8ef7cb9b0dd9fb5fa877e78334ef (patch) | |
tree | 0092f0aacfdabda773e99d757173f567e9e4776a /libavcodec/aac.h | |
parent | cd98f20b4abac8241ef7f922eb85ba6fe3fe230b (diff) | |
download | ffmpeg-a246701e9abe8ef7cb9b0dd9fb5fa877e78334ef.tar.gz |
Parse and drop gain control data, so that SSR packets decode.
This will result in poor quality audio for SSR streams, but they
will at least demux and decode without error; partially fixing
ticket #1693.
This pulls in the decode_gain_control() function from the
ffmpeg summer-of-code repo (original author Maxim Gavrilov) at
svn://svn.mplayerhq.hu/soc/aac/aac.c with some minor modifications
and adds AOT_AAC_SSR to decode_audio_specific_config_gb().
Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
Co-authored-by: Maxim Gavrilov <maxim.gavrilov@gmail.com>
Diffstat (limited to 'libavcodec/aac.h')
-rw-r--r-- | libavcodec/aac.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/aac.h b/libavcodec/aac.h index 4910c661d6..05bc95385f 100644 --- a/libavcodec/aac.h +++ b/libavcodec/aac.h @@ -357,6 +357,8 @@ struct AACContext { int warned_num_aac_frames; int warned_960_sbr; + int warned_gain_control; + /* aacdec functions pointers */ void (*imdct_and_windowing)(AACContext *ac, SingleChannelElement *sce); void (*apply_ltp)(AACContext *ac, SingleChannelElement *sce); |