]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
parser: aac - fix aac_sample_rates[] overflow
authorJaroslav Kysela <perex@perex.cz>
Tue, 6 Dec 2016 08:17:24 +0000 (09:17 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 6 Dec 2016 08:17:24 +0000 (09:17 +0100)
src/parsers/parsers.c

index 2924d875061f63dd980fea0f25e088a93cc1d2a0..e6f6dcb55712002c29481ecea2a2d6963296b7eb 100644 (file)
@@ -550,7 +550,7 @@ makeapkt(service_t *t, elementary_stream_t *st, const void *buf,
  * Parse AAC MP4A
  */
 
-static const int aac_sample_rates[12] =
+static const int aac_sample_rates[16] =
 {
   96000,
   88200,
@@ -563,7 +563,11 @@ static const int aac_sample_rates[12] =
   16000,
   12000,
   11025,
-  8000
+  8000,
+  7350,
+  0,
+  0,
+  0
 };
 
 /**