changeset 26369:ad825aff822b

Remove unused function demux_read_data_pack According to VCS history this function has never been used since it was added in 2001...
author uau
date Fri, 11 Apr 2008 23:06:33 +0000
parents 92f1c7f009c4
children b450d3591845
files libmpdemux/demuxer.c libmpdemux/demuxer.h
diffstat 2 files changed, 0 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demuxer.c	Fri Apr 11 23:06:30 2008 +0000
+++ b/libmpdemux/demuxer.c	Fri Apr 11 23:06:33 2008 +0000
@@ -485,23 +485,6 @@
 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
--- a/libmpdemux/demuxer.h	Fri Apr 11 23:06:30 2008 +0000
+++ b/libmpdemux/demuxer.h	Fri Apr 11 23:06:33 2008 +0000
@@ -324,7 +324,6 @@
 }
 
 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);