[FFmpeg-soc] [soc]: r2525 - mlp/mlpdec.c

ramiro subversion at mplayerhq.hu
Sat Jun 21 23:09:36 CEST 2008


Author: ramiro
Date: Sat Jun 21 23:09:35 2008
New Revision: 2525

Log:
Properly check if there is enough data to read from.

Modified:
   mlp/mlpdec.c

Modified: mlp/mlpdec.c
==============================================================================
--- mlp/mlpdec.c	(original)
+++ mlp/mlpdec.c	Sat Jun 21 23:09:35 2008
@@ -880,7 +880,7 @@ static int output_data_internal(MLPDecod
     int32_t *data_32 = (int32_t*) data;
     int16_t *data_16 = (int16_t*) data;
 
-    if (*data_size < m->max_channel[substr] * m->blockpos[substr]
+    if (*data_size < (m->max_channel[substr] + 1) * m->blockpos[substr]
                       * (is32 ? 4 : 2))
         return -1;
 



More information about the FFmpeg-soc mailing list