[x264-devel] commit: fix bottom-right pixel of lowres planes, which was uninitialized. ( Loren Merritt )
git version control
git at videolan.org
Mon Nov 9 03:03:09 CET 2009
x264 | branch: master | Loren Merritt <pengvado at akuvian.org> | Sat Nov 7 06:09:47 2009 +0000| [678a703fd9528d2b508b542ce5e289b4f0bae3b7] | committer: Loren Merritt
fix bottom-right pixel of lowres planes, which was uninitialized.
weirdly, valgrind reported this only with --no-asm.
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=678a703fd9528d2b508b542ce5e289b4f0bae3b7
---
common/mc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/common/mc.c b/common/mc.c
index 41cf593..b6d3581 100644
--- a/common/mc.c
+++ b/common/mc.c
@@ -317,7 +317,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; y<i_height; y++ )
src[i_width+y*i_stride] = src[i_width-1+y*i_stride];
- memcpy( 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+1 );
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 );
More information about the x264-devel
mailing list