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

ramiro subversion at mplayerhq.hu
Wed Jun 25 03:12:16 CEST 2008


Author: ramiro
Date: Wed Jun 25 03:12:16 2008
New Revision: 2573

Log:
There must be at least 4 bytes to start with.

Modified:
   mlp/mlpdec.c

Modified: mlp/mlpdec.c
==============================================================================
--- mlp/mlpdec.c	(original)
+++ mlp/mlpdec.c	Wed Jun 25 03:12:16 2008
@@ -975,7 +975,7 @@ static int read_access_unit(AVCodecConte
     uint8_t parity_bits = 0;
     int i;
 
-    if (buf_size < 2)
+    if (buf_size < 4)
         return 0;
 
     bytes_left = length = (AV_RB16(buf) & 0xfff) * 2;



More information about the FFmpeg-soc mailing list