# HG changeset patch # User rathann # Date 1093726789 0 # Node ID f60bc2314146649e0be32915712da49d037314c4 # Parent ec342714b8a9ed6bd5e8a76e8e9faa0a943fc99d small gcc warning fixes diff -r ec342714b8a9 -r f60bc2314146 libmpcodecs/ad_qtaudio.c --- 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; diff -r ec342714b8a9 -r f60bc2314146 libmpcodecs/vd_qtvideo.c --- 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, diff -r ec342714b8a9 -r f60bc2314146 libmpcodecs/ve_qtvideo.c --- 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; diff -r ec342714b8a9 -r f60bc2314146 libmpcodecs/vf_phase.c --- 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; diff -r ec342714b8a9 -r f60bc2314146 libvo/vo_gl.c --- 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]; diff -r ec342714b8a9 -r f60bc2314146 mp3lib/decod386.c --- 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;