changeset 9217:420e2b2f8e5a

compiler warning fixes patch by Dominik Mierzejewski <dominik@rangers.eu.org>
author arpi
date Sun, 02 Feb 2003 02:42:59 +0000
parents 7c536a513ce9
children 7c12f4501ed6
files libaf/filter.c libao2/pl_format.c libmpcodecs/dec_audio.h libmpcodecs/ve_qtvideo.c libvo/geometry.c libvo/x11_common.c mplayer.c subreader.c
diffstat 8 files changed, 15 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/libaf/filter.c	Sun Feb 02 02:36:35 2003 +0000
+++ b/libaf/filter.c	Sun Feb 02 02:42:59 2003 +0000
@@ -11,6 +11,7 @@
 /* Design and implementation of different types of digital filters
 
 */
+#include <string.h>
 #include <math.h>
 #include "dsp.h"
 
--- a/libao2/pl_format.c	Sun Feb 02 02:36:35 2003 +0000
+++ b/libao2/pl_format.c	Sun Feb 02 02:42:59 2003 +0000
@@ -228,7 +228,7 @@
       switch(pl_format.in&SIGN_MASK){
       case(US):
 	for(i=0;i<len;i++)
-	((int32_t*)in_data)[i]=(int32_t)(-(1<<31-1)+((uint32_t*)in_data)[i]);
+	((int32_t*)in_data)[i]=(int32_t)(((uint32_t*)in_data)[i]-0x80000000);
 	break;
       case(SI):
 	for(i=0;i<len;i++)
--- a/libmpcodecs/dec_audio.h	Sun Feb 02 02:36:35 2003 +0000
+++ b/libmpcodecs/dec_audio.h	Sun Feb 02 02:42:59 2003 +0000
@@ -14,3 +14,6 @@
 	int in_samplerate, int in_channels, int in_format, int in_bps,
 	int out_samplerate, int out_channels, int out_format, int out_bps,
 	int out_minsize, int out_maxsize);
+extern int preinit_audio_filters(sh_audio_t *sh_audio,
+        int in_samplerate, int in_channels, int in_format, int in_bps,
+        int* out_samplerate, int* out_channels, int* out_format, int out_bps);
--- a/libmpcodecs/ve_qtvideo.c	Sun Feb 02 02:36:35 2003 +0000
+++ b/libmpcodecs/ve_qtvideo.c	Sun Feb 02 02:42:59 2003 +0000
@@ -12,6 +12,10 @@
 #include "../mp_msg.h"
 #include "../bswap.h"
 
+#ifdef USE_WIN32DLL 
+#include "ldt_keeper.h" 
+#endif 
+
 #ifdef USE_QTX_CODECS
 #include "../loader/qtx/qtxsdk/components.h"
 #include "wine/windef.h"
--- a/libvo/geometry.c	Sun Feb 02 02:36:35 2003 +0000
+++ b/libvo/geometry.c	Sun Feb 02 02:42:59 2003 +0000
@@ -1,9 +1,10 @@
 /* This file (C) Mark Zealey <mark@zealos.org> 2002, released under GPL */
 
+#include <stdio.h>
+#include <string.h>
 #include "geometry.h"
 #include "../mp_msg.h"
 #include "../mplayer.h" /* exit_player() */
-#include <string.h>
 
 /* A string of the form [WxH][+X+Y] or xpos[%]:ypos[%] */
 char *vo_geometry = NULL;
--- a/libvo/x11_common.c	Sun Feb 02 02:36:35 2003 +0000
+++ b/libvo/x11_common.c	Sun Feb 02 02:42:59 2003 +0000
@@ -737,7 +737,7 @@
     xev.data.l[0] = layer?ice_layer:orig_layer; // if not fullscreen, stay on default layer
     xev.data.l[1] = CurrentTime;
     mp_dbg( MSGT_VO,MSGL_STATUS,"[x11] Layered style stay on top ( layer %d ).\n",xev.data.l[0] );
-    printf( "[x11] Layered style stay on top ( layer %d ).\n",xev.data.l[0] );
+    printf( "[x11] Layered style stay on top ( layer %d ).\n",(int)xev.data.l[0] );
     XSendEvent(mDisplay, mRootWin, False, SubstructureNotifyMask, (XEvent *) &xev);
     break;
   }
--- a/mplayer.c	Sun Feb 02 02:36:35 2003 +0000
+++ b/mplayer.c	Sun Feb 02 02:42:59 2003 +0000
@@ -1507,7 +1507,7 @@
 
 current_module="init_video_filters";
 
-sh_video->vfilter=(void*)vf_open_filter(NULL,"vo",video_out);
+sh_video->vfilter=(void*)vf_open_filter(NULL,"vo",(char *)video_out);
 #ifdef HAVE_MENU
 if(use_menu) {
   vf_menu = vf_open_plugin(libmenu_vfs,sh_video->vfilter,"menu",menu_root);
--- a/subreader.c	Sun Feb 02 02:36:35 2003 +0000
+++ b/subreader.c	Sun Feb 02 02:42:59 2003 +0000
@@ -246,7 +246,7 @@
     
     while (!current->text[0]) {
 	if (!fgets (line, LINE_LEN, fd)) return NULL;
-	if ((len=sscanf (line, "%d:%d:%d%[,.:]%d --> %d:%d:%d%[,.:]%d",&a1,&a2,&a3,&i,&a4,&b1,&b2,&b3,&i,&b4)) < 10)
+	if ((len=sscanf (line, "%d:%d:%d%[,.:]%d --> %d:%d:%d%[,.:]%d",&a1,&a2,&a3,(char *)&i,&a4,&b1,&b2,&b3,(char *)&i,&b4)) < 10)
 	    continue;
 	current->start = a1*360000+a2*6000+a3*100+a4/10;
 	current->end   = b1*360000+b2*6000+b3*100+b4/10;
@@ -864,7 +864,7 @@
 		{sub_uses_time=0;return SUB_MICRODVD;}
 	if (sscanf (line, "%d:%d:%d.%d,%d:%d:%d.%d",     &i, &i, &i, &i, &i, &i, &i, &i)==8)
 		{sub_uses_time=1;return SUB_SUBRIP;}
-	if (sscanf (line, "%d:%d:%d%[,.:]%d --> %d:%d:%d%[,.:]%d", &i, &i, &i, &i, &i, &i, &i, &i, &i, &i)==10)
+	if (sscanf (line, "%d:%d:%d%[,.:]%d --> %d:%d:%d%[,.:]%d", &i, &i, &i, (char *)&i, &i, &i, &i, &i, (char *)&i, &i)==10)
 		{sub_uses_time=1;return SUB_SUBVIEWER;}
 	if (sscanf (line, "{T %d:%d:%d:%d",&i, &i, &i, &i))
 		{sub_uses_time=1;return SUB_SUBVIEWER2;}