diff options
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); |