Mercurial > mplayer.hg
diff libmpcodecs/ae.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 | 32725ca88fed |
| children | 20bc9bdd7aa1 |
line wrap: on
line diff
--- a/libmpcodecs/ae.c Fri Feb 26 12:49:49 2010 +0000 +++ b/libmpcodecs/ae.c Fri Feb 26 15:01:37 2010 +0000 @@ -59,7 +59,7 @@ if(! params) return NULL; - encoder = (audio_encoder_t *) calloc(1, sizeof(audio_encoder_t)); + encoder = calloc(1, sizeof(audio_encoder_t)); memcpy(&encoder->params, params, sizeof(audio_encoding_params_t)); encoder->stream = stream;
