summaryrefslogtreecommitdiffstats
path: root/libhb/decomb.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2015-03-16 15:48:55 +0000
committerjstebbins <[email protected]>2015-03-16 15:48:55 +0000
commit220bd888e05696acbe1dd47f96ded78c389fc27f (patch)
treec985357fed2e8815b04d79ba894bc512a4f8cf6a /libhb/decomb.c
parentc36eefc577aff432b73e6b803adb5f09a7a4adc6 (diff)
decomb: oops, fix overread when height is mod 4
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6994 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/decomb.c')
-rw-r--r--libhb/decomb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/decomb.c b/libhb/decomb.c
index 0c8ea0529..ff1d566fa 100644
--- a/libhb/decomb.c
+++ b/libhb/decomb.c
@@ -2094,7 +2094,7 @@ static int hb_decomb_init( hb_filter_object_t * filter,
*/
thread_args->segment_height[pp] =
(hb_image_height(init->pix_fmt, init->geometry.height, pp) -
- thread_args->segment_start[pp] + 3) & ~1;
+ thread_args->segment_start[pp] + 3) & ~3;
} else {
thread_args->segment_height[pp] = pv->segment_height[pp];
}