]> git.sesse.net Git - vlc/commitdiff
* ./modules/video_chroma/i420_rgb16.c: fixed a segfault in the 24/32bpp
authorSam Hocevar <sam@videolan.org>
Fri, 22 Nov 2002 12:13:12 +0000 (12:13 +0000)
committerSam Hocevar <sam@videolan.org>
Fri, 22 Nov 2002 12:13:12 +0000 (12:13 +0000)
    chroma conversion.

plugins/chroma/i420_rgb16.c

index 13f801b7bf337ce7300567f977e8c6e9b37e96b1..f7e53eae105138a904fa651766d1e5ebb5ad2eb2 100644 (file)
@@ -2,7 +2,7 @@
  * i420_rgb16.c : YUV to bitmap RGB conversion module for vlc
  *****************************************************************************
  * Copyright (C) 2000 VideoLAN
- * $Id: i420_rgb16.c,v 1.6.2.1 2002/06/01 10:43:54 sam Exp $
+ * $Id: i420_rgb16.c,v 1.6.2.2 2002/11/22 12:13:12 sam Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *
@@ -337,7 +337,7 @@ void _M( I420_RGB32 )( vout_thread_t *p_vout, picture_t *p_src,
     int         i_right_margin;
     int         i_rewind;
     int         i_scale_count;                       /* scale modulo counter */
-    int         i_chroma_width = p_vout->render.i_width / 4; /* chroma width */
+    int         i_chroma_width = p_vout->render.i_width / 2; /* chroma width */
     u32 *       p_pic_start;       /* beginning of the current line for copy */
 #if defined (MODULE_NAME_IS_chroma_i420_rgb)
     int         i_uval, i_vval;                           /* U and V samples */