diff options
Diffstat (limited to 'libfaad2/decoder.c')
-rw-r--r-- | libfaad2/decoder.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libfaad2/decoder.c b/libfaad2/decoder.c index f7d699f785..7ff12b4982 100644 --- a/libfaad2/decoder.c +++ b/libfaad2/decoder.c @@ -106,6 +106,7 @@ NeAACDecHandle NEAACDECAPI NeAACDecOpen(void) hDecoder->config.downMatrix = 0; hDecoder->adts_header_present = 0; hDecoder->adif_header_present = 0; + hDecoder->latm_header_present = 0; #ifdef ERROR_RESILIENCE hDecoder->aacSectionDataResilienceFlag = 0; hDecoder->aacScalefactorDataResilienceFlag = 0; @@ -320,7 +321,7 @@ int8_t NEAACDECAPI NeAACDecInit2(NeAACDecHandle hDecoder, uint8_t *pBuffer, /* decode the audio specific config */ rc = AudioSpecificConfig2(pBuffer, SizeOfDecoderSpecificInfo, &mp4ASC, - &(hDecoder->pce)); + &(hDecoder->pce), hDecoder->latm_header_present); /* copy the relevant info to the decoder handle */ *samplerate = mp4ASC.samplingFrequency; |