summaryrefslogtreecommitdiffstats
path: root/libmpdemux/demuxer.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmpdemux/demuxer.c')
-rw-r--r--libmpdemux/demuxer.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/libmpdemux/demuxer.c b/libmpdemux/demuxer.c
index 591571233e..d7b4228492 100644
--- a/libmpdemux/demuxer.c
+++ b/libmpdemux/demuxer.c
@@ -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