[x264-devel] PATCH: x264_frame_init_lowres() bad width
Tuukka Toivonen
tuukkat at ee.oulu.fi
Mon Feb 28 10:12:07 CET 2005
x264_frame_init_lowres() calculates the low resolution image pad size as 64
pixels (32 pixels at both sides) while in reality it is only half of this.
Fix below.
Patch is against release 144.
(I also have a feeling that whole function would belong into
common/frame.c)
--- x264/common/mc.c.orig 2005-02-27 02:45:33.000000000 +0200
+++ x264/common/mc.c 2005-02-27 02:45:56.000000000 +0200
@@ -448,7 +448,7 @@
// FIXME: tapfilter?
const int i_stride = frame->i_stride[0];
const int i_stride2 = frame->i_stride_lowres;
- const int i_width2 = i_stride2 - 64;
+ const int i_width2 = i_stride2 - 64/2;
int x, y, i;
for( y = 0; y < frame->i_lines_lowres - 1; y++ )
{
--
This is the x264-devel mailing-list
To unsubscribe, go to: http://developers.videolan.org/lists.html
More information about the x264-devel
mailing list