changeset 13188:f60bc2314146

small gcc warning fixes
author rathann
date Sat, 28 Aug 2004 20:59:49 +0000
parents ec342714b8a9
children bd954530394b
files libmpcodecs/ad_qtaudio.c libmpcodecs/vd_qtvideo.c libmpcodecs/ve_qtvideo.c libmpcodecs/vf_phase.c libvo/vo_gl.c mp3lib/decod386.c
diffstat 6 files changed, 10 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ad_qtaudio.c	Sat Aug 28 20:56:56 2004 +0000
+++ b/libmpcodecs/ad_qtaudio.c	Sat Aug 28 20:59:49 2004 +0000
@@ -92,7 +92,7 @@
     Setup_LDT_Keeper();
 #endif
     qtml_dll = LoadLibraryA("qtmlClient.dll");
-    if( qtml_dll == NULL )
+    if( qtml_dll == (HMODULE)NULL )
     {
         mp_msg(MSGT_DECAUDIO,MSGL_ERR,"failed loading dll\n" );
 	return 1;
--- a/libmpcodecs/vd_qtvideo.c	Sat Aug 28 20:56:56 2004 +0000
+++ b/libmpcodecs/vd_qtvideo.c	Sat Aug 28 20:59:49 2004 +0000
@@ -235,7 +235,7 @@
 //    result = FindCodec ('SVQ1',anyCodec,&compressor,&decompressor );                 
 //    printf("FindCodec SVQ1 returned:%i compressor: 0x%X decompressor: 0x%X\n",result,compressor,decompressor);
 
-    sh->context = kYUVSPixelFormat;
+    sh->context = (void *)kYUVSPixelFormat;
 #if 1
     {
 	int imgfmt = sh->codec->outfmt[sh->outfmtidx];
@@ -275,7 +275,7 @@
 	    return(0);    
     }
     mp_msg(MSGT_DECVIDEO,MSGL_DBG2,"imgfmt: %s qt_imgfmt: %.4s\n", vo_format_name(imgfmt), &qt_imgfmt);
-    sh->context = qt_imgfmt;
+    sh->context = (void *)qt_imgfmt;
     if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,imgfmt)) return 0;
     }
 #else
@@ -313,7 +313,7 @@
     result = QTNewGWorldFromPtr(
         &OutBufferGWorld,  
 //        kYUVSPixelFormat, //pixel format of new GWorld == YUY2
-	sh->context,
+	(OSType)sh->context,
         &OutBufferRect,   //we should benchmark if yvu9 is faster for svq3, too
         0, 
         0, 
--- a/libmpcodecs/ve_qtvideo.c	Sat Aug 28 20:56:56 2004 +0000
+++ b/libmpcodecs/ve_qtvideo.c	Sat Aug 28 20:59:49 2004 +0000
@@ -177,7 +177,7 @@
     long framesizemax;
     UInt8 similarity=0;
     long compressedsize;
-    int in_format=kYUVSPixelFormat;
+    OSType in_format=kYUVSPixelFormat;
     int width = mpi->width;
     int height = mpi->height;
     int stride = width*2;
--- a/libmpcodecs/vf_phase.c	Sat Aug 28 20:56:56 2004 +0000
+++ b/libmpcodecs/vf_phase.c	Sat Aug 28 20:59:49 2004 +0000
@@ -266,7 +266,7 @@
 	    return 0; /* bad args */
 	 }
 
-      if(args=strchr(args, ':')) args++;
+      if( (args=strchr(args, ':')) ) args++;
       }
 
    return 1;
--- a/libvo/vo_gl.c	Sat Aug 28 20:56:56 2004 +0000
+++ b/libvo/vo_gl.c	Sat Aug 28 20:59:49 2004 +0000
@@ -362,7 +362,7 @@
     slice_height = 4;
     if(arg) 
     {
-        char *parse_pos = &arg[0];
+        char *parse_pos = (char *)&arg[0];
         while (parse_pos[0] && !parse_err) {
             if (strncmp (parse_pos, "manyfmts", 8) == 0) {
                 parse_pos = &parse_pos[8];
--- a/mp3lib/decod386.c	Sat Aug 28 20:56:56 2004 +0000
+++ b/mp3lib/decod386.c	Sat Aug 28 20:59:49 2004 +0000
@@ -77,6 +77,8 @@
 }
 */
 
+static int synth_1to1(real *bandPtr,int channel,unsigned char *out,int *pnt);
+
 static int synth_1to1_mono(real *bandPtr,unsigned char *samples,int *pnt)
 {
   short samples_tmp[64];
@@ -116,7 +118,7 @@
 static synth_func_t synth_func;
 
 #if defined(CAN_COMPILE_X86_ASM)
-static int synth_1to1_MMX( real *bandPtr,int channel,short * samples)
+int synth_1to1_MMX( real *bandPtr,int channel,short * samples)
 {
     static short buffs[2][2][0x110];
     static int bo = 1;