diff options
author | eddyg <[email protected]> | 2007-09-11 06:02:07 +0000 |
---|---|---|
committer | eddyg <[email protected]> | 2007-09-11 06:02:07 +0000 |
commit | cf26ca5f77044ec3364edb446635c14b9c9daddc (patch) | |
tree | 9d72d3770415ea9fb0cde26a9f3ab52428fd029d /libhb/denoise.c | |
parent | 6866dd773f1cff829538c963e8b7ba85fe700be3 (diff) |
Added buffer management and changed fifo sizes. Changed job->subtitle_scan to job->indepth_scan, and fixed memory init bug in denoise.c.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@945 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/denoise.c')
-rw-r--r-- | libhb/denoise.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libhb/denoise.c b/libhb/denoise.c index 5022d4721..70902a6ec 100644 --- a/libhb/denoise.c +++ b/libhb/denoise.c @@ -304,6 +304,11 @@ hb_filter_private_t * hb_denoise_init( int pix_fmt, } hb_filter_private_t * pv = malloc( sizeof(struct hb_filter_private_s) ); + + /* + * Clear the memory to avoid freeing uninitialised memory later. + */ + memset( pv, 0, sizeof( struct hb_filter_private_s ) ); pv->pix_fmt = pix_fmt; pv->width[0] = width; |