diff libfaad2/decoder.c @ 31477:86888a4c406e

Improve LATM recognition. Patch by Dan Oscarsson, Dan d Oscarsson a tieto d com
author cehoyos
date Wed, 23 Jun 2010 18:44:06 +0000
parents e83eef58b30a
children
line wrap: on
line diff
--- a/libfaad2/decoder.c	Wed Jun 23 17:34:19 2010 +0000
+++ b/libfaad2/decoder.c	Wed Jun 23 18:44:06 2010 +0000
@@ -222,7 +222,7 @@
 
 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 @@
                 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') &&