diff options
Diffstat (limited to 'libfaad2/decoder.c')
-rw-r--r-- | libfaad2/decoder.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libfaad2/decoder.c b/libfaad2/decoder.c index 3b33e11b32..710a3cf796 100644 --- a/libfaad2/decoder.c +++ b/libfaad2/decoder.c @@ -222,7 +222,7 @@ static int latmCheck(latm_header *latm, bitfile *ld) int32_t NEAACDECAPI NeAACDecInit(NeAACDecHandle hDecoder, uint8_t *buffer, uint32_t buffer_size, - uint32_t *samplerate, uint8_t *channels) + uint32_t *samplerate, uint8_t *channels, int latm_stream) { uint32_t bits = 0; bitfile ld; @@ -257,6 +257,9 @@ int32_t NEAACDECAPI NeAACDecInit(NeAACDecHandle hDecoder, uint8_t *buffer, hDecoder->latm_header_present = 0; return x; } + else if (latm_stream) { + return -1; + } else /* Check if an ADIF header is present */ if ((buffer[0] == 'A') && (buffer[1] == 'D') && |