changeset 6698:ebe660cf5752

Patch by Alan Young <ayoung at teleport.com>: Fix xacodec type mismatch, which is exploited on 64bit-archs (where sizeof(int) != sizeof(long))
author atmos4
date Wed, 10 Jul 2002 08:56:06 +0000
parents 4cade272ce2b
children 9fc877cee29a
files xacodec.h
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/xacodec.h	Wed Jul 10 08:51:11 2002 +0000
+++ b/xacodec.h	Wed Jul 10 08:56:06 2002 +0000
@@ -29,15 +29,15 @@
 typedef struct
 {
   void			*anim_hdr;
-  unsigned long		compression;
-  unsigned long		x, y;
-  unsigned long		depth;
+  unsigned int		compression;
+  unsigned int		x, y;
+  unsigned int		depth;
   void			*extra;
-  unsigned long		xapi_rev;
-  unsigned long		(*decoder)();
+  unsigned int		xapi_rev;
+  unsigned int		(*decoder)();
   char			*description;
-  unsigned long		avi_ctab_flag;
-  unsigned long		(*avi_read_ext)();
+  unsigned int		avi_ctab_flag;
+  unsigned int		(*avi_read_ext)();
 } XA_CODEC_HDR;
 
 #define CODEC_SUPPORTED 1