From 4a621f2f0880a440dd1751ec96372e3965e64ca6 Mon Sep 17 00:00:00 2001 From: Juergen Keil Date: Sun, 13 Oct 2002 17:24:29 +0000 Subject: yuv2rgb_mlib needs an even YUV2 width. It was segfaulting on Solaris SPARC with MediaLib. CVS patchset: 2826 CVS date: 2002/10/13 17:24:29 --- src/video_out/yuv2rgb_mlib.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/video_out/yuv2rgb_mlib.c') diff --git a/src/video_out/yuv2rgb_mlib.c b/src/video_out/yuv2rgb_mlib.c index c627e8a73..d0ebd598b 100644 --- a/src/video_out/yuv2rgb_mlib.c +++ b/src/video_out/yuv2rgb_mlib.c @@ -29,6 +29,7 @@ #include #include #include +#include #include #include @@ -82,6 +83,7 @@ static void mlib_yuv420_rgb24 (yuv2rgb_t *this, dy = 0; dst_height = this->dest_height; + assert((this->dest_width&1) == 0); /* mlib needs an even YUV2 width */ for (;;) { scale_line (pu, this->u_buffer, this->dest_width >> 1, this->step_dx); @@ -156,6 +158,7 @@ static void mlib_yuv420_argb32 (yuv2rgb_t *this, dy = 0; dst_height = this->dest_height; + assert((this->dest_width&1) == 0); /* mlib needs an even YUV2 width */ for (;;) { scale_line (pu, this->u_buffer, this->dest_width >> 1, this->step_dx); @@ -230,6 +233,7 @@ static void mlib_yuv420_abgr32 (yuv2rgb_t *this, dy = 0; dst_height = this->dest_height; + assert((this->dest_width&1) == 0); /* mlib needs an even YUV2 width */ for (;;) { scale_line (pu, this->u_buffer, this->dest_width >> 1, this->step_dx); -- cgit v1.2.3