warning fix

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6912 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-08-05 01:06:25 +00:00
parent fa788640e2
commit 8d45b64a65
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ static inline void mp_image_setfmt(mp_image_t* mpi,unsigned int out_fmt){
#endif
static inline mp_image_t* new_mp_image(int w,int h){
mp_image_t* mpi=malloc(sizeof(mp_image_t));
mp_image_t* mpi=(mp_image_t*)malloc(sizeof(mp_image_t));
if(!mpi) return NULL; // error!
memset(mpi,0,sizeof(mp_image_t));
mpi->width=mpi->w=w;