Mercurial > mplayer.hg
diff libmpcodecs/ve_vfw.c @ 30702:9fc9d1e788aa
Do not cast the results of malloc/calloc/realloc.
These functions return void*, which is compatible with any pointer,
so there is no need for casts.
author | diego |
---|---|
date | Fri, 26 Feb 2010 15:01:37 +0000 |
parents | a972c1a4a012 |
children | 4e59a7aebadb |
line wrap: on
line diff
--- a/libmpcodecs/ve_vfw.c Fri Feb 26 12:49:49 2010 +0000 +++ b/libmpcodecs/ve_vfw.c Fri Feb 26 15:01:37 2010 +0000 @@ -139,7 +139,7 @@ mp_msg(MSGT_WIN32,MSGL_ERR,"Cannot open Compressor data file!\n"); return NULL; } - drvdata = (char *) malloc(st.st_size); + drvdata = malloc(st.st_size); if (fread(drvdata, st.st_size, 1, fd) != 1) { mp_msg(MSGT_WIN32,MSGL_ERR,"Cannot read Compressor data file!\n"); fclose(fd);