diff options
author | jstebbins <[email protected]> | 2012-07-06 23:12:56 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2012-07-06 23:12:56 +0000 |
commit | 5e4a58cc2d39db9c5e8b4f5201c6bf9352412688 (patch) | |
tree | e2ba9652efa8ef449c8d9c91c58f1cb5fc83836b /libhb/hb.h | |
parent | 4ed21c1ccb42e377ec5a20cf66638b4f207515be (diff) |
libhb: fix comb detection crash and decomb crash
hb_detect_comb() could crash because the dimensions of the video buffer
don't have to match the dimensions returned by work object info() method
if the video has segments of differeing resolutions.
decomb was allocating reference buffers that were too small. This bug appears
to have always existed but doesn't usually get triggered because malloc
usually rounds allocation sizes up.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4812 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/hb.h')
-rw-r--r-- | libhb/hb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/hb.h b/libhb/hb.h index a594d93fc..da2311834 100644 --- a/libhb/hb.h +++ b/libhb/hb.h @@ -57,7 +57,7 @@ hb_list_t * hb_get_titles( hb_handle_t * ); /* hb_detect_comb() Analyze a frame for interlacing artifacts, returns true if they're found. Taken from Thomas Oestreich's 32detect filter in the Transcode project. */ -int hb_detect_comb( hb_buffer_t * buf, int width, int height, int color_equal, int color_diff, int threshold, int prog_equal, int prog_diff, int prog_threshold ); +int hb_detect_comb( hb_buffer_t * buf, int color_equal, int color_diff, int threshold, int prog_equal, int prog_diff, int prog_threshold ); int hb_save_preview( hb_handle_t * h, int title, int preview, hb_buffer_t *buf ); |