Mercurial > mplayer.hg
comparison libmpdemux/cdda.c @ 19062:83c3afeab35d
drops casts from void * on malloc/calloc from libmpdemux code
author | reynaldo |
---|---|
date | Thu, 13 Jul 2006 16:41:13 +0000 |
parents | d2d9d011203f |
children |
comparison
equal
deleted
inserted
replaced
19061:86350b4b8203 | 19062:83c3afeab35d |
---|---|
183 } | 183 } |
184 cd_info->min = (unsigned int)(audiolen/(60*75)); | 184 cd_info->min = (unsigned int)(audiolen/(60*75)); |
185 cd_info->sec = (unsigned int)((audiolen/75)%60); | 185 cd_info->sec = (unsigned int)((audiolen/75)%60); |
186 cd_info->msec = (unsigned int)(audiolen%75); | 186 cd_info->msec = (unsigned int)(audiolen%75); |
187 | 187 |
188 priv = (cdda_priv*)malloc(sizeof(cdda_priv)); | 188 priv = malloc(sizeof(cdda_priv)); |
189 memset(priv, 0, sizeof(cdda_priv)); | 189 memset(priv, 0, sizeof(cdda_priv)); |
190 priv->cd = cdd; | 190 priv->cd = cdd; |
191 priv->cd_info = cd_info; | 191 priv->cd_info = cd_info; |
192 | 192 |
193 if(p->toc_bias) | 193 if(p->toc_bias) |