[FFmpeg-cvslog] r18211 - trunk/libavcodec/mlpdec.c

ramiro subversion
Sat Mar 28 00:55:38 CET 2009


Author: ramiro
Date: Sat Mar 28 00:55:38 2009
New Revision: 18211

Log:
mlpdec: Check for blocksize in proper range.

Modified:
   trunk/libavcodec/mlpdec.c

Modified: trunk/libavcodec/mlpdec.c
==============================================================================
--- trunk/libavcodec/mlpdec.c	Sat Mar 28 00:48:08 2009	(r18210)
+++ trunk/libavcodec/mlpdec.c	Sat Mar 28 00:55:38 2009	(r18211)
@@ -609,8 +609,8 @@ static int read_decoding_params(MLPDecod
     if (s->param_presence_flags & PARAM_BLOCKSIZE)
         if (get_bits1(gbp)) {
             s->blocksize = get_bits(gbp, 9);
-            if (s->blocksize > MAX_BLOCKSIZE) {
-                av_log(m->avctx, AV_LOG_ERROR, "block size too large\n");
+            if (s->blocksize < 8 || s->blocksize > m->access_unit_size) {
+                av_log(m->avctx, AV_LOG_ERROR, "Invalid blocksize.");
                 s->blocksize = 0;
                 return -1;
             }



More information about the ffmpeg-cvslog mailing list