[MPlayer-cvslog] r26401 - in trunk/libmpdemux: demuxer.c demuxer.h

uau subversion at mplayerhq.hu
Sat Apr 12 01:06:34 CEST 2008


Author: uau
Date: Sat Apr 12 01:06:33 2008
New Revision: 26401

Log:
Remove unused function demux_read_data_pack

According to VCS history this function has never been used since it
was added in 2001...


Modified:
   trunk/libmpdemux/demuxer.c
   trunk/libmpdemux/demuxer.h

Modified: trunk/libmpdemux/demuxer.c
==============================================================================
--- trunk/libmpdemux/demuxer.c	(original)
+++ trunk/libmpdemux/demuxer.c	Sat Apr 12 01:06:33 2008
@@ -485,23 +485,6 @@ while(len>0){
 return bytes;
 }
 
-int demux_read_data_pack(demux_stream_t *ds,unsigned char* mem,int len){
-int x;
-int bytes=0;
-while(len>0){
-  x=ds->buffer_size-ds->buffer_pos;
-  if(x==0){
-    if(!ds_fill_buffer(ds)) return bytes;
-  } else {
-    if(x>len) x=len;
-    if(mem) fast_memcpy(mem+bytes,&ds->buffer[ds->buffer_pos],x);
-    bytes+=x;len-=x;ds->buffer_pos+=x;
-    return bytes; // stop at end of package! (for correct timestamping)
-  }
-}
-return bytes;
-}
-
 /**
  * \brief read data until the given 3-byte pattern is encountered, up to maxlen
  * \param mem memory to read data into, may be NULL to discard data

Modified: trunk/libmpdemux/demuxer.h
==============================================================================
--- trunk/libmpdemux/demuxer.h	(original)
+++ trunk/libmpdemux/demuxer.h	Sat Apr 12 01:06:33 2008
@@ -324,7 +324,6 @@ static inline int ds_tell_pts(demux_stre
 }
 
 int demux_read_data(demux_stream_t *ds,unsigned char* mem,int len);
-int demux_read_data_pack(demux_stream_t *ds,unsigned char* mem,int len);
 int demux_pattern_3(demux_stream_t *ds, unsigned char *mem, int maxlen,
                     int *read, uint32_t pattern);
 



More information about the MPlayer-cvslog mailing list