mirror of https://github.com/mpv-player/mpv
small gcc warning fixes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13189 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
4da367942a
commit
d9a5e00183
|
@ -92,7 +92,7 @@ static int loader_init()
|
|||
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;
|
||||
|
|
|
@ -235,7 +235,7 @@ static int init(sh_video_t *sh){
|
|||
// 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 @@ static int init(sh_video_t *sh){
|
|||
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 @@ if(!codec_inited){
|
|||
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,
|
||||
|
|
|
@ -177,7 +177,7 @@ static int put_image(struct vf_instance_s* vf, mp_image_t *mpi){
|
|||
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;
|
||||
|
|
|
@ -266,7 +266,7 @@ static int open(vf_instance_t *vf, char* args)
|
|||
return 0; /* bad args */
|
||||
}
|
||||
|
||||
if(args=strchr(args, ':')) args++;
|
||||
if( (args=strchr(args, ':')) ) args++;
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
|
|
@ -362,7 +362,7 @@ static uint32_t preinit(const char *arg)
|
|||
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];
|
||||
|
|
|
@ -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 int synth_1to1_mono2stereo(real *bandPtr,unsigned char *samples,int *pnt)
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue