aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--dll_init.c4
-rw-r--r--libmpcodecs/ad_a52.c2
-rw-r--r--libmpcodecs/native/nuppelvideo.c2
-rw-r--r--libmpcodecs/vd_ffmpeg.c2
-rw-r--r--libmpcodecs/vd_real.c5
-rw-r--r--libmpcodecs/vd_svq1.c8
-rw-r--r--libmpcodecs/ve_divx4.c3
-rw-r--r--libmpcodecs/ve_lavc.c3
-rw-r--r--libmpcodecs/ve_libdv.c2
-rw-r--r--libmpcodecs/ve_rawrgb.c4
-rw-r--r--libmpcodecs/ve_vfw.c4
-rw-r--r--libmpcodecs/vf.c2
-rw-r--r--libmpcodecs/vf_lavc.c2
-rw-r--r--libmpcodecs/vf_palette.c2
-rw-r--r--libmpcodecs/vf_pp.c2
-rw-r--r--libmpcodecs/vf_rectangle.c2
-rw-r--r--libmpdemux/aviprint.c2
-rw-r--r--loader/win32.c2
-rw-r--r--vidix/drivers/mga_vid.c6
19 files changed, 41 insertions, 18 deletions
diff --git a/dll_init.c b/dll_init.c
index 7dd0ba171e..c6d8137279 100644
--- a/dll_init.c
+++ b/dll_init.c
@@ -538,7 +538,7 @@ int vfw_start_encoder(BITMAPINFOHEADER *input_bih, BITMAPINFOHEADER *output_bih)
ret = ICCompressGetFormat(encoder_hic, input_bih, output_bih);
if(ret < 0){
- unsigned char* temp=output_bih;
+ unsigned char* temp=(unsigned char*)output_bih;
mp_msg(MSGT_WIN32,MSGL_ERR,"ICCompressGetFormat failed: Error %d (0x%X)\n", (int)ret, (int)ret);
for (i=0; i < temp_len; i++) mp_msg(MSGT_WIN32, MSGL_DBG2, "%02x ", temp[i]);
return 0;
@@ -547,7 +547,7 @@ int vfw_start_encoder(BITMAPINFOHEADER *input_bih, BITMAPINFOHEADER *output_bih)
if (temp_len > sizeof(BITMAPINFOHEADER))
{
- unsigned char* temp=output_bih;
+ unsigned char* temp=(unsigned char*)output_bih;
mp_msg(MSGT_WIN32, MSGL_V, "Extra info in o_bih (%d bytes)!\n",
temp_len-sizeof(BITMAPINFOHEADER));
for(i=sizeof(output_bih);i<temp_len;i++) mp_msg(MSGT_WIN32, MSGL_DBG2, "%02X ",temp[i]);
diff --git a/libmpcodecs/ad_a52.c b/libmpcodecs/ad_a52.c
index 4add05c09f..cc85fe0004 100644
--- a/libmpcodecs/ad_a52.c
+++ b/libmpcodecs/ad_a52.c
@@ -186,7 +186,7 @@ static int decode_audio(sh_audio_t *sh_audio,unsigned char *buf,int minlen,int m
mp_msg(MSGT_DECAUDIO,MSGL_WARN,"a52: error at resampling\n");
break;
}
- len+=2*a52_resample(a52_samples,&buf[len]);
+ len+=2*a52_resample(a52_samples,(int16_t *)&buf[len]);
}
return len;
}
diff --git a/libmpcodecs/native/nuppelvideo.c b/libmpcodecs/native/nuppelvideo.c
index 0cb38932fd..8b82d8a4e3 100644
--- a/libmpcodecs/native/nuppelvideo.c
+++ b/libmpcodecs/native/nuppelvideo.c
@@ -44,7 +44,7 @@ void decode_nuv( unsigned char *encoded, int encoded_size,
/* tables are in encoded */
if (encodedh->comptype == 'R')
{
- RTjpeg_init_decompress ( encoded+12, width, height );
+ RTjpeg_init_decompress ( (unsigned long *)(encoded+12), width, height );
mp_msg(MSGT_DECVIDEO, MSGL_V, "Found RTjpeg tables (size: %d, width: %d, height: %d)\n",
encoded_size-12, width, height);
}
diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c
index 8c9504341b..71546b3e0e 100644
--- a/libmpcodecs/vd_ffmpeg.c
+++ b/libmpcodecs/vd_ffmpeg.c
@@ -258,7 +258,7 @@ static void draw_slice(struct AVCodecContext *s,
}
}else
#endif
- mpcodecs_draw_slice (sh,src, stride, width, height, 0, y);
+ mpcodecs_draw_slice (sh,(unsigned char*)src, stride, width, height, 0, y);
}
static int init_vo(sh_video_t *sh){
diff --git a/libmpcodecs/vd_real.c b/libmpcodecs/vd_real.c
index 9d2a00d885..e89ea55338 100644
--- a/libmpcodecs/vd_real.c
+++ b/libmpcodecs/vd_real.c
@@ -93,6 +93,11 @@ int load_syms_linux(char *path) {
}
#ifdef USE_WIN32DLL
+
+#include "../loader/ldt_keeper.h"
+void* LoadLibraryA(char* name);
+void* GetProcAddress(void* handle,char* func);
+
int load_syms_windows(char *path) {
void *handle;
Setup_LDT_Keeper();
diff --git a/libmpcodecs/vd_svq1.c b/libmpcodecs/vd_svq1.c
index a639399001..feaf2b2c4a 100644
--- a/libmpcodecs/vd_svq1.c
+++ b/libmpcodecs/vd_svq1.c
@@ -17,6 +17,14 @@ static vd_info_t info = {
LIBVD_EXTERN(svq1)
+#ifdef USE_LIBAVCODEC
+#ifdef USE_LIBAVCODEC_SO
+#include <ffmpeg/avcodec.h>
+#else
+#include "libavcodec/avcodec.h"
+#endif
+#endif
+
#include "native/svq1.h"
// to set/get/query special features/parameters
diff --git a/libmpcodecs/ve_divx4.c b/libmpcodecs/ve_divx4.c
index 9700857f89..447d2e57d4 100644
--- a/libmpcodecs/ve_divx4.c
+++ b/libmpcodecs/ve_divx4.c
@@ -24,6 +24,7 @@
extern int pass;
extern char* passtmpfile;
+extern void mencoder_write_chunk(aviwrite_stream_t *s,int len,unsigned int flags);
#include <encore2.h>
@@ -195,7 +196,7 @@ static int vf_open(vf_instance_t *vf, char* args){
vf->put_image=put_image;
vf->priv=malloc(sizeof(struct vf_priv_s));
memset(vf->priv,0,sizeof(struct vf_priv_s));
- vf->priv->mux=args;
+ vf->priv->mux=(aviwrite_stream_t*)args;
mux_v->bih=malloc(sizeof(BITMAPINFOHEADER));
mux_v->bih->biSize=sizeof(BITMAPINFOHEADER);
diff --git a/libmpcodecs/ve_lavc.c b/libmpcodecs/ve_lavc.c
index 6412669876..3f77659904 100644
--- a/libmpcodecs/ve_lavc.c
+++ b/libmpcodecs/ve_lavc.c
@@ -26,6 +26,7 @@
extern char* passtmpfile;
extern int pass;
+extern void mencoder_write_chunk(aviwrite_stream_t *s,int len,unsigned int flags);
//===========================================================================//
@@ -445,7 +446,7 @@ static int vf_open(vf_instance_t *vf, char* args){
vf->put_image=put_image;
vf->priv=malloc(sizeof(struct vf_priv_s));
memset(vf->priv,0,sizeof(struct vf_priv_s));
- vf->priv->mux=args;
+ vf->priv->mux=(aviwrite_stream_t*)args;
/* XXX: hack: some of the MJPEG decoder DLL's needs exported huffman
table, so we define a zero-table, also lavc mjpeg encoder is putting
diff --git a/libmpcodecs/ve_libdv.c b/libmpcodecs/ve_libdv.c
index d06b514d24..67facec9d9 100644
--- a/libmpcodecs/ve_libdv.c
+++ b/libmpcodecs/ve_libdv.c
@@ -23,6 +23,8 @@
#include <libdv/dv.h>
+extern void mencoder_write_chunk(aviwrite_stream_t *s,int len,unsigned int flags);
+
#ifndef DV_WIDTH
#define DV_WIDTH 720
#define DV_PAL_HEIGHT 576
diff --git a/libmpcodecs/ve_rawrgb.c b/libmpcodecs/ve_rawrgb.c
index 95d4e576ef..21ad8f400a 100644
--- a/libmpcodecs/ve_rawrgb.c
+++ b/libmpcodecs/ve_rawrgb.c
@@ -16,6 +16,8 @@
#include "mp_image.h"
#include "vf.h"
+extern void mencoder_write_chunk(aviwrite_stream_t *s,int len,unsigned int flags);
+
//===========================================================================//
struct vf_priv_s {
@@ -58,7 +60,7 @@ static int vf_open(vf_instance_t *vf, char* args){
vf->put_image=put_image;
vf->priv=malloc(sizeof(struct vf_priv_s));
memset(vf->priv,0,sizeof(struct vf_priv_s));
- vf->priv->mux=args;
+ vf->priv->mux=(aviwrite_stream_t*)args;
mux_v->bih=malloc(sizeof(BITMAPINFOHEADER));
mux_v->bih->biSize=sizeof(BITMAPINFOHEADER);
diff --git a/libmpcodecs/ve_vfw.c b/libmpcodecs/ve_vfw.c
index 0fb85c2daf..bfbdbae5d3 100644
--- a/libmpcodecs/ve_vfw.c
+++ b/libmpcodecs/ve_vfw.c
@@ -18,6 +18,8 @@
#include "mp_image.h"
#include "vf.h"
+extern void mencoder_write_chunk(aviwrite_stream_t *s,int len,unsigned int flags);
+
//===========================================================================//
#include "dll_init.h"
@@ -83,7 +85,7 @@ static int vf_open(vf_instance_t *vf, char* args){
vf->put_image=put_image;
vf->priv=malloc(sizeof(struct vf_priv_s));
memset(vf->priv,0,sizeof(struct vf_priv_s));
- vf->priv->mux=args;
+ vf->priv->mux=(aviwrite_stream_t*)args;
vfw_bih=malloc(sizeof(BITMAPINFOHEADER));
vfw_bih->biSize=sizeof(BITMAPINFOHEADER);
diff --git a/libmpcodecs/vf.c b/libmpcodecs/vf.c
index 5cd56cfce9..9638c16236 100644
--- a/libmpcodecs/vf.c
+++ b/libmpcodecs/vf.c
@@ -2,11 +2,11 @@
#include <stdlib.h>
#include <string.h>
+#include "../config.h"
#ifdef HAVE_MALLOC_H
#include <malloc.h>
#endif
-#include "../config.h"
#include "../mp_msg.h"
#include "../help_mp.h"
diff --git a/libmpcodecs/vf_lavc.c b/libmpcodecs/vf_lavc.c
index d5cb90060a..7acfcd75b0 100644
--- a/libmpcodecs/vf_lavc.c
+++ b/libmpcodecs/vf_lavc.c
@@ -104,7 +104,7 @@ static void put_image(struct vf_instance_s* vf, mp_image_t *mpi){
vf->priv->pes.id=0x1E0;
vf->priv->pes.timestamp=-1; // dunno
- dmpi->planes[0]=&vf->priv->pes;
+ dmpi->planes[0]=(unsigned char*)&vf->priv->pes;
vf_next_put_image(vf,dmpi);
}
diff --git a/libmpcodecs/vf_palette.c b/libmpcodecs/vf_palette.c
index 3aa9a859d2..f5b2df2097 100644
--- a/libmpcodecs/vf_palette.c
+++ b/libmpcodecs/vf_palette.c
@@ -81,7 +81,7 @@ static void put_image(struct vf_instance_s* vf, mp_image_t *mpi){
MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE,
mpi->w, mpi->h);
- if(!mpi->planes[1]) mpi->planes[1]=gray_pal;
+ if(!mpi->planes[1]) mpi->planes[1]=(unsigned char*)gray_pal;
if(mpi->w==mpi->stride[0] && dmpi->w*(dmpi->bpp>>3)==dmpi->stride[0]){
// no stride conversion needed
diff --git a/libmpcodecs/vf_pp.c b/libmpcodecs/vf_pp.c
index 3e5e01ec34..6b5c005db0 100644
--- a/libmpcodecs/vf_pp.c
+++ b/libmpcodecs/vf_pp.c
@@ -98,7 +98,7 @@ static unsigned int fmt_list[]={
IMGFMT_YV12,
IMGFMT_I420,
IMGFMT_IYUV,
- NULL
+ 0
};
static int open(vf_instance_t *vf, char* args){
diff --git a/libmpcodecs/vf_rectangle.c b/libmpcodecs/vf_rectangle.c
index 10ba44de09..50f33a8cec 100644
--- a/libmpcodecs/vf_rectangle.c
+++ b/libmpcodecs/vf_rectangle.c
@@ -4,6 +4,8 @@
#include "mp_image.h"
#include "vf.h"
+#include "../libvo/fastmemcpy.h"
+
struct vf_priv_s {
int x, y, w, h;
};
diff --git a/libmpdemux/aviprint.c b/libmpdemux/aviprint.c
index 61e75969c7..f5567286ef 100644
--- a/libmpdemux/aviprint.c
+++ b/libmpdemux/aviprint.c
@@ -61,7 +61,7 @@ void print_wave_header(WAVEFORMATEX *h){
printf("bits/sample: %d\n",h->wBitsPerSample);
printf("cbSize: %d\n",h->cbSize);
if(h->wFormatTag==0x55 && h->cbSize>=12){
- MPEGLAYER3WAVEFORMAT* h2=h;
+ MPEGLAYER3WAVEFORMAT* h2=(MPEGLAYER3WAVEFORMAT *)h;
printf("mp3.wID=%d\n",h2->wID);
printf("mp3.fdwFlags=0x%X\n",h2->fdwFlags);
printf("mp3.nBlockSize=%d\n",h2->nBlockSize);
diff --git a/loader/win32.c b/loader/win32.c
index 53b2a6b850..30299d546c 100644
--- a/loader/win32.c
+++ b/loader/win32.c
@@ -4201,7 +4201,7 @@ void* LookupExternal(const char* library, int ordinal)
/* ok, this is a hack, and a big memory leak. should be fixed. - alex */
{
- HMODULE *hand;
+ HMODULE hand;
WINE_MODREF *wm;
void *func;
diff --git a/vidix/drivers/mga_vid.c b/vidix/drivers/mga_vid.c
index 0c5ba8b72e..56c59204b1 100644
--- a/vidix/drivers/mga_vid.c
+++ b/vidix/drivers/mga_vid.c
@@ -87,7 +87,7 @@ static int vid_overlay_on = 0;
/* mapped physical addresses */
static uint8_t *mga_mmio_base = 0;
-static uint32_t mga_mem_base = 0;
+static uint8_t *mga_mem_base = 0;
static int mga_src_base = 0; /* YUV buffer position in video memory */
@@ -685,7 +685,7 @@ void mga_handle_irq(int irq, void *dev_id/*, struct pt_regs *pregs*/) {
int vixConfigPlayback(vidix_playback_t *config)
{
- int i;
+ unsigned int i;
int x, y, sw, sh, dw, dh;
int besleft, bestop, ifactor, ofsleft, ofstop, baseadrofs, weight, weights;
#ifdef CRTC2
@@ -1179,7 +1179,7 @@ int vixProbe(int verbose,int force)
is_g400 = -1;
- err = pci_scan(&lst, &num_pci);
+ err = pci_scan(lst, &num_pci);
if (err)
{
printf("[mga] Error occured during pci scan: %s\n", strerror(err));