[MPlayer-cvslog] r37661 - trunk/libmpcodecs/ae_twolame.c

reimar subversion at mplayerhq.hu
Wed Feb 10 22:55:09 CET 2016


Author: reimar
Date: Wed Feb 10 22:55:09 2016
New Revision: 37661

Log:
ae_twolame.c: Use sizeof(*var) instead of sizeof(type)

Modified:
   trunk/libmpcodecs/ae_twolame.c

Modified: trunk/libmpcodecs/ae_twolame.c
==============================================================================
--- trunk/libmpcodecs/ae_twolame.c	Wed Feb 10 22:52:22 2016	(r37660)
+++ trunk/libmpcodecs/ae_twolame.c	Wed Feb 10 22:55:09 2016	(r37661)
@@ -168,7 +168,7 @@ int mpae_init_twolame(audio_encoder_t *e
 	else
 		mp_msg(MSGT_MENCODER, MSGL_ERR, "ae_twolame, Twolame can't encode > 2 channels, exiting\n");
 
-	ctx = calloc(1, sizeof(mpae_twolame_ctx));
+	ctx = calloc(1, sizeof(*ctx));
 	if(ctx == NULL)
 	{
 		mp_msg(MSGT_MENCODER, MSGL_ERR, "ae_twolame, couldn't alloc context, exiting\n");


More information about the MPlayer-cvslog mailing list