From f455b6e91bc1847e5fd3ffe73ee6081e934e4e87 Mon Sep 17 00:00:00 2001 From: cehoyos Date: Wed, 23 Jun 2010 18:44:06 +0000 Subject: ad_faad: Improve LATM recognition Patch by Dan Oscarsson, Dan d Oscarsson a tieto d com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31543 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libfaad2/decoder.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libfaad2/decoder.c') 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') && -- cgit v1.2.3