aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--libmpcodecs/mp_image.h2
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;