Mercurial > mplayer.hg
changeset 25098:c38f1f42ee02
Remove unused function write_psm_block(), fixes the warning:
muxer_mpeg.c:763: warning: 'write_psm_block' defined but not used
author | diego |
---|---|
date | Wed, 21 Nov 2007 09:14:01 +0000 |
parents | 7a6a7f47109f |
children | aa166b26298d |
files | libmpdemux/muxer_mpeg.c |
diffstat | 1 files changed, 0 insertions(+), 19 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/muxer_mpeg.c Wed Nov 21 08:55:41 2007 +0000 +++ b/libmpdemux/muxer_mpeg.c Wed Nov 21 09:14:01 2007 +0000 @@ -759,25 +759,6 @@ 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) {