mirror of
https://github.com/mpv-player/mpv
synced 2025-03-08 07:08:12 +00:00
warning fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6912 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
fa788640e2
commit
8d45b64a65
@ -177,7 +177,7 @@ static inline void mp_image_setfmt(mp_image_t* mpi,unsigned int out_fmt){
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
static inline mp_image_t* new_mp_image(int w,int h){
|
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!
|
if(!mpi) return NULL; // error!
|
||||||
memset(mpi,0,sizeof(mp_image_t));
|
memset(mpi,0,sizeof(mp_image_t));
|
||||||
mpi->width=mpi->w=w;
|
mpi->width=mpi->w=w;
|
||||||
|
Loading…
Reference in New Issue
Block a user