[MPlayer-cvslog] r25126 - trunk/libmpdemux/muxer_mpeg.c

diego subversion at mplayerhq.hu
Wed Nov 21 10:14:01 CET 2007


Author: diego
Date: Wed Nov 21 10:14:01 2007
New Revision: 25126

Log:
Remove unused function write_psm_block(), fixes the warning:
muxer_mpeg.c:763: warning: 'write_psm_block' defined but not used


Modified:
   trunk/libmpdemux/muxer_mpeg.c

Modified: trunk/libmpdemux/muxer_mpeg.c
==============================================================================
--- trunk/libmpdemux/muxer_mpeg.c	(original)
+++ trunk/libmpdemux/muxer_mpeg.c	Wed Nov 21 10:14:01 2007
@@ -759,25 +759,6 @@ static void write_pes_padding(uint8_t *b
 	memset(&buff[6], 0xff, len - 6);
 }
 
-static void write_psm_block(muxer_t *muxer, stream_t *stream)
-{
-	uint16_t offset, stuffing_len;
-	muxer_priv_t *priv = (muxer_priv_t *) muxer->priv;
-	uint8_t *buff = priv->buff;
-	
-	offset = write_mpeg_pack_header(muxer, buff);
-	offset += write_mpeg_psm(muxer, &buff[offset]);
-	stuffing_len = priv->packet_size - offset;
-	if(stuffing_len > 0)
-	{
-		//insert a PES padding packet
-		write_pes_padding(&buff[offset], stuffing_len);
-		offset += stuffing_len;
-	}
-	stream_write_buffer(stream, buff, offset);
-	priv->headers_size += offset;
-}
-
 
 static int write_nav_pack(uint8_t *buff)
 {



More information about the MPlayer-cvslog mailing list