From: Sam Hocevar Date: Tue, 26 Nov 2002 20:04:33 +0000 (+0000) Subject: * ./modules/video_chroma/i420_rgb.h: fixed slanted picture output with odd X-Git-Tag: 0.5.0~639 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=b144a5efaba05eeae7714d4ec3a82cd9bf07f8c6;p=vlc * ./modules/video_chroma/i420_rgb.h: fixed slanted picture output with odd widths (Closes: #28). --- diff --git a/modules/video_chroma/i420_rgb.h b/modules/video_chroma/i420_rgb.h index ebdce1ec82..b6d8e2f435 100644 --- a/modules/video_chroma/i420_rgb.h +++ b/modules/video_chroma/i420_rgb.h @@ -2,7 +2,7 @@ * i420_rgb.h : YUV to bitmap RGB conversion module for vlc ***************************************************************************** * Copyright (C) 2000 VideoLAN - * $Id: i420_rgb.h,v 1.2 2002/11/25 19:29:10 sam Exp $ + * $Id: i420_rgb.h,v 1.3 2002/11/26 20:04:33 sam Exp $ * * Authors: Samuel Hocevar * @@ -175,7 +175,7 @@ void E_(I420_RGB32) ( vout_thread_t *, picture_t *, picture_t * ); { \ *p_pic++ = *p_buffer; p_buffer += *p_offset++; \ } \ - p_pic += i_right_margin; \ + (u8*)p_pic += i_right_margin; \ } \ else \ { \ @@ -213,7 +213,7 @@ void E_(I420_RGB32) ( vout_thread_t *, picture_t *, picture_t * ); } \ } \ /* Increment of picture pointer to end of line is still needed */ \ - p_pic += i_right_margin; \ + (u8*)p_pic += i_right_margin; \ \ /* Increment the Y coordinate in the matrix, modulo 4 */ \ i_real_y = (i_real_y + 1) & 0x3; \