diff options
author | Martin Storsjo <martin@martin.st> | 2018-09-03 09:56:32 +0300 |
---|---|---|
committer | Martin Storsjo <martin@martin.st> | 2018-09-03 09:57:53 +0300 |
commit | 99c95ca3ea55477ffea2aaa8fa5c5eab681bad2c (patch) | |
tree | f50bfd24e4ea9eb19c7c13b4dcab7112889941d9 /libAACdec/src/aacdecoder_lib.cpp | |
parent | 2e23af940d5dae9ef56ba8ba0c745bf56c3545fd (diff) | |
download | fdk-aac-99c95ca3ea55477ffea2aaa8fa5c5eab681bad2c.tar.gz fdk-aac-99c95ca3ea55477ffea2aaa8fa5c5eab681bad2c.tar.bz2 fdk-aac-99c95ca3ea55477ffea2aaa8fa5c5eab681bad2c.zip |
Initialize the transport decoder library with TPDEC_PARAM_IGNORE_BUFFERFULLNESS
Prior to FDKv2, this was what the library used to do.
This makes sure that the decoder actually decodes ADTS frames directly
if feeding full ADTS frames to the decoder. Previously after FDKv2,
the decoder would only start decoding ADTS frames after feeding a few
frames.
Diffstat (limited to 'libAACdec/src/aacdecoder_lib.cpp')
-rw-r--r-- | libAACdec/src/aacdecoder_lib.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libAACdec/src/aacdecoder_lib.cpp b/libAACdec/src/aacdecoder_lib.cpp index d98cf5a..86f4a6c 100644 --- a/libAACdec/src/aacdecoder_lib.cpp +++ b/libAACdec/src/aacdecoder_lib.cpp @@ -926,6 +926,8 @@ LINKSPEC_CPP HANDLE_AACDECODER aacDecoder_Open(TRANSPORT_TYPE transportFmt, return NULL; } + transportDec_SetParam(pIn, TPDEC_PARAM_IGNORE_BUFFERFULLNESS, 1); + /* Allocate AAC decoder core struct. */ aacDec = CAacDecoder_Open(transportFmt); |