summaryrefslogtreecommitdiffstats
path: root/libvo/vo_gl2.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-10-06 16:48:19 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-10-06 16:48:19 +0000
commit4131acb7ff26b61e516637e1416c35650573c94a (patch)
treece3c5cc72cec0ee0862df0aa6650bb96ded4f81b /libvo/vo_gl2.c
parent7663ab4a07ad6efe06c773de0e17fdbcd01332c9 (diff)
downloadmpv-4131acb7ff26b61e516637e1416c35650573c94a.tar.bz2
mpv-4131acb7ff26b61e516637e1416c35650573c94a.tar.xz
fixed UNPACK_ALIGNMENT setting.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13576 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_gl2.c')
-rw-r--r--libvo/vo_gl2.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libvo/vo_gl2.c b/libvo/vo_gl2.c
index b05d00b1d4..60d15bcbca 100644
--- a/libvo/vo_gl2.c
+++ b/libvo/vo_gl2.c
@@ -819,12 +819,13 @@ static int initGl(uint32_t d_width, uint32_t d_height)
/**
* 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;