diff options
author | 2002-08-05 01:06:25 +0000 | |
---|---|---|
committer | 2002-08-05 01:06:25 +0000 | |
commit | 8d45b64a65479b74945b1770bd64e37dd0c7196a (patch) | |
tree | 48bc5657c2334a0febd09fd5c82698c248f2204a | |
parent | fa788640e26698f98070cc01be09dc5071580881 (diff) |
warning fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6912 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpcodecs/mp_image.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpcodecs/mp_image.h b/libmpcodecs/mp_image.h index 40ee57d57b..942536ce4f 100644 --- a/libmpcodecs/mp_image.h +++ b/libmpcodecs/mp_image.h @@ -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; |