From a9526973579d7d48bb2730b64a547ad10b7ef6ef Mon Sep 17 00:00:00 2001 From: Loren Merritt Date: Thu, 11 Jun 2009 08:27:46 +0000 Subject: [PATCH] fix a crash on frame width <= 48 pixels --- common/mc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/mc.c b/common/mc.c index f9818b2a..e5d6cc83 100644 --- a/common/mc.c +++ b/common/mc.c @@ -314,7 +314,7 @@ void x264_frame_init_lowres( x264_t *h, x264_frame_t *frame ) // duplicate last row and column so that their interpolation doesn't have to be special-cased for( y=0; ymc.memcpy_aligned( src+i_stride*i_height, src+i_stride*(i_height-1), i_width ); + memcpy( src+i_stride*i_height, src+i_stride*(i_height-1), i_width ); h->mc.frame_init_lowres_core( src, frame->lowres[0], frame->lowres[1], frame->lowres[2], frame->lowres[3], i_stride, frame->i_stride_lowres, frame->i_width_lowres, frame->i_lines_lowres ); x264_frame_expand_border_lowres( frame ); -- 2.47.3