[MPlayer-cvslog] CVS: main/libmpdemux muxer_lavf.c,1.24,1.25

Richard Felker CVS syncmail at mplayerhq.hu
Sun Mar 12 19:11:34 CET 2006


CVS change done by Richard Felker CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv6803

Modified Files:
	muxer_lavf.c 
Log Message:
fix cosmetics noticed during nico's 10l

Index: muxer_lavf.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/muxer_lavf.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- muxer_lavf.c	12 Mar 2006 18:06:46 -0000	1.24
+++ muxer_lavf.c	12 Mar 2006 18:11:32 -0000	1.25
@@ -113,16 +113,16 @@
 		mp_msg(MSGT_MUXER, MSGL_ERR, "NULL MUXER PASSED OR UNKNOW TYPE %d\n", type);
 		return NULL;
 	}
-	priv = (muxer_priv_t*) muxer->priv;
+	priv = muxer->priv;
 	
-	stream = (muxer_stream_t*) calloc(1, sizeof(muxer_stream_t));
+	stream = calloc(1, sizeof(muxer_stream_t));
 	if(!stream)
 	{
 		mp_msg(MSGT_MUXER, MSGL_ERR, "Could not alloc muxer_stream, EXIT\n");
 		return NULL;
 	}
 	muxer->streams[muxer->avih.dwStreams] = stream;
-	stream->b_buffer = (unsigned char *)malloc(2048);
+	stream->b_buffer = malloc(2048);
 	if(!stream->b_buffer)
 	{
 		mp_msg(MSGT_MUXER, MSGL_ERR, "Could not alloc b_buffer, EXIT\n");
@@ -133,7 +133,7 @@
 	stream->b_buffer_ptr = 0;
 	stream->b_buffer_len = 0;
 	
-	spriv = (muxer_stream_priv_t*) calloc(1, sizeof(muxer_stream_priv_t));
+	spriv = calloc(1, sizeof(muxer_stream_priv_t));
 	if(!spriv) 
 	{
 		free(stream);




More information about the MPlayer-cvslog mailing list