diff options
author | Juergen Keil <jkeil@users.sourceforge.net> | 2002-10-13 17:24:29 +0000 |
---|---|---|
committer | Juergen Keil <jkeil@users.sourceforge.net> | 2002-10-13 17:24:29 +0000 |
commit | 4a621f2f0880a440dd1751ec96372e3965e64ca6 (patch) | |
tree | 12d33ef8a1f5e14808838d881e9d1704caefbcf7 /src/video_out/yuv2rgb_mlib.c | |
parent | 011810a2984487049a5e6e9b1c23470b4a1cccc2 (diff) | |
download | xine-lib-4a621f2f0880a440dd1751ec96372e3965e64ca6.tar.gz xine-lib-4a621f2f0880a440dd1751ec96372e3965e64ca6.tar.bz2 |
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
Diffstat (limited to 'src/video_out/yuv2rgb_mlib.c')
-rw-r--r-- | src/video_out/yuv2rgb_mlib.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 <stdio.h> #include <stdlib.h> #include <string.h> +#include <assert.h> #include <inttypes.h> #include <mlib_video.h> @@ -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); |