OSDN Git Service

Zero out the mask bitmap properly in decomb. Thanks for finding this and providing...
authorjbrjake <jbrjake@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Tue, 30 Sep 2008 15:01:48 +0000 (15:01 +0000)
committerjbrjake <jbrjake@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Tue, 30 Sep 2008 15:01:48 +0000 (15:01 +0000)
git-svn-id: svn://localhost/HandBrake/trunk@1791 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/decomb.c

index 6049458..df1838a 100644 (file)
@@ -1125,7 +1125,7 @@ hb_filter_private_t * hb_decomb_init( int pix_fmt,
         int w = ((pv->width[0]   + 31) & (~31))>>is_chroma;
         int h = ((pv->height[0]+6+ 31) & (~31))>>is_chroma;
 
-        pv->mask[i] = malloc( w*h*sizeof(uint8_t) ) + 3*w;
+        pv->mask[i] = calloc( 1, w*h*sizeof(uint8_t) ) + 3*w;
     }
 
      /*