[Mplayer-cvslog] CVS: main/libmpdemux demuxer.h,1.47,1.48
Arpi of Ize
arpi at mplayerhq.hu
Wed Oct 16 16:51:00 CEST 2002
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv24757
Modified Files:
demuxer.h
Log Message:
ds_tell_block()
Index: demuxer.h
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demuxer.h,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -r1.47 -r1.48
--- demuxer.h 13 Sep 2002 18:58:14 -0000 1.47
+++ demuxer.h 16 Oct 2002 14:50:45 -0000 1.48
@@ -71,8 +71,8 @@
int eof; // end of demuxed stream? (true if all buffer empty)
off_t pos; // position in the input stream (file)
off_t dpos; // position in the demuxed stream
+ off_t block_no; // number of <=block_size length blocks (for VBR mp3)
int pack_no; // serial number of packet
- int block_no; // number of <=block_size length blocks (for VBR mp3)
int flags; // flags of current packet (keyframe etc)
//---------------
int packs; // number of packets in buffer
@@ -182,6 +182,10 @@
inline static int ds_tell_pts(demux_stream_t *ds){
return (ds->pts_bytes-ds->buffer_size)+ds->buffer_pos;
+}
+
+inline static off_t ds_tell_block(demux_stream_t *ds){
+ return ds->block_no-(ds->buffer_size-ds->buffer_pos)/ds->block_size;
}
int demux_read_data(demux_stream_t *ds,unsigned char* mem,int len);
More information about the MPlayer-cvslog
mailing list