[Mplayer-cvslog] CVS: main/libvo vo_gl.c, 1.48, 1.49 vo_gl2.c, 1.52, 1.53

Alexander Strasser eclipse7 at gmx.net
Wed Oct 6 20:59:48 CEST 2004


Reimar Döffinger CVS wrote ( On Wed, Oct 06, 2004 at 06:48:22PM +0200 ):
> CVS change done by Reimar D?ffinger CVS
> 
> Update of /cvsroot/mplayer/main/libvo
> In directory mail:/var2/tmp/cvs-serv16555/libvo
> 
> Modified Files:
> 	vo_gl.c vo_gl2.c 
> Log Message:
> fixed UNPACK_ALIGNMENT setting.
> 
> 

Nice that this bug is fixed now.

> Index: vo_gl2.c
> ===================================================================
> RCS file: /cvsroot/mplayer/main/libvo/vo_gl2.c,v
> retrieving revision 1.52
> retrieving revision 1.53
> diff -u -r1.52 -r1.53
> --- vo_gl2.c	3 Oct 2004 21:42:31 -0000	1.52
> +++ vo_gl2.c	6 Oct 2004 16:48:19 -0000	1.53
> @@ -819,12 +819,13 @@
>  
>    /**
>     * may give a little speed up for a kinda burst read ..
> +   * Also, the default of 4 will break some files.
>     */
> -  if( (image_width*image_bpp)%8 == 0 )
> +  if( (image_width*image_bytes)%8 == 0 )
>    	gl_alignment=8;
> -  else if( (image_width*image_bpp)%4 == 0 )
> +  else if( (image_width*image_bytes)%4 == 0 )
>    	gl_alignment=4;
> -  else if( (image_width*image_bpp)%2 == 0 )
> +  else if( (image_width*image_bytes)%2 == 0 )
>    	gl_alignment=2;
>    else
>    	gl_alignment=1;

But breaks compilation as `gl_alignment' isn't declared anywhere.
I attached a trivial fix.

  Alex (beastd)
-------------- next part --------------
Index: libvo/vo_gl.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_gl.c,v
retrieving revision 1.49
diff -u -r1.49 vo_gl.c
--- libvo/vo_gl.c	6 Oct 2004 16:48:19 -0000	1.49
+++ libvo/vo_gl.c	6 Oct 2004 18:51:53 -0000
@@ -155,6 +155,8 @@
 
 //	XGCValues xgcv;
 
+	GLint gl_alignment;
+
 	image_height = height;
 	image_width = width;
 	find_gl_format (format);


More information about the MPlayer-cvslog mailing list