]> granicus.if.org Git - handbrake/commitdiff
Zero out the mask bitmap properly in decomb. Thanks for finding this and providing...
authorjbrjake <jb.rubin@gmail.com>
Tue, 30 Sep 2008 15:01:48 +0000 (15:01 +0000)
committerjbrjake <jb.rubin@gmail.com>
Tue, 30 Sep 2008 15:01:48 +0000 (15:01 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1791 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/decomb.c

index 604945819c9109cbf9e9012317b8ff5e2000bf42..df1838a7d1dd63d1730ccfb4a403e8084706334e 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;
     }
 
      /*