mirror of https://github.com/mstorsjo/fdk-aac.git
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.
This commit is contained in:
parent
944114bb04
commit
9cd3040ff9
|
@ -943,6 +943,8 @@ LINKSPEC_CPP HANDLE_AACDECODER aacDecoder_Open(TRANSPORT_TYPE transportFmt,
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
transportDec_SetParam(pIn, TPDEC_PARAM_IGNORE_BUFFERFULLNESS, 1);
|
||||||
|
|
||||||
/* Allocate AAC decoder core struct. */
|
/* Allocate AAC decoder core struct. */
|
||||||
aacDec = CAacDecoder_Open(transportFmt);
|
aacDec = CAacDecoder_Open(transportFmt);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue