[Mplayer-cvslog] CVS: main/libavcodec dsputil.h,1.1,1.2 motion_est.c,1.1,1.2

Jürgen Keil jkeil at mplayer.dev.hu
Fri Jul 6 14:02:30 CEST 2001


Update of /cvsroot/mplayer/main/libavcodec
In directory mplayer:/var/tmp.root/cvs-serv13898

Modified Files:
	dsputil.h motion_est.c 
Log Message:
Remove unused <stdint.h> header,  intNN_t types are not used in the libavcodec 
code.  Compiles without this header on linux 2.2.X, linux 2.4.X and solaris 8.

On intel systems without MMX, remove emms() call. fpu should be OK, since no
MMX was used.  Fixes on undefined reference to "emms" on such an old system
that does not have MMX.


Index: dsputil.h
===================================================================
RCS file: /cvsroot/mplayer/main/libavcodec/dsputil.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- dsputil.h	6 Jul 2001 03:32:40 -0000	1.1
+++ dsputil.h	6 Jul 2001 12:02:27 -0000	1.2
@@ -2,7 +2,14 @@
 #define DSPUTIL_H
 
 #include "common.h"
+/*
+ * Hmm, stdint.h is intended to provide the intNN_t and uintNNNt types in C99,
+ * but not everyone has a C99 compatible C environment, yet.  inttypes.h would
+ * be a good substitute, it works on linux, xxxBSD and solaris;  but since the
+ * code in libavcodec does not use the {u,}intNN_t types, I'll just comment out
+ * stdint.h for now.
 #include <stdint.h>
+ */
 
 /* dct code */
 typedef short DCTELEM;

Index: motion_est.c
===================================================================
RCS file: /cvsroot/mplayer/main/libavcodec/motion_est.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- motion_est.c	6 Jul 2001 03:32:40 -0000	1.1
+++ motion_est.c	6 Jul 2001 12:02:27 -0000	1.2
@@ -442,7 +442,9 @@
 	dmin = phods_motion_search(s, &mx, &my, range / 2, xmin, ymin, xmax, ymax);
         break;
     }
+#ifdef CONFIG_MMX
     emms();
+#endif
 
     /* intra / predictive decision */
     xx = mb_x * 16;


_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog



More information about the MPlayer-cvslog mailing list