diff options
author | jbrjake <[email protected]> | 2008-09-30 15:01:48 +0000 |
---|---|---|
committer | jbrjake <[email protected]> | 2008-09-30 15:01:48 +0000 |
commit | dbc98217053ab63506f5cfaeb2fb1e2b129c7075 (patch) | |
tree | f22a8d25a45865ff4172af7359d583e8d09f50cf /libhb | |
parent | f2420c8941af8dbc9b18e9d1f1832297593ea3ad (diff) |
Zero out the mask bitmap properly in decomb. Thanks for finding this and providing the solution, j45!
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1791 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/decomb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/decomb.c b/libhb/decomb.c index 604945819..df1838a7d 100644 --- a/libhb/decomb.c +++ b/libhb/decomb.c @@ -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; } /* |