[MPlayer-cvslog] CVS: main/libmpdemux demuxer.h,1.83,1.84
Reimar Döffinger CVS
syncmail at mplayerhq.hu
Sat Sep 17 20:05:58 CEST 2005
CVS change done by Reimar Döffinger CVS
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv9360
Modified Files:
demuxer.h
Log Message:
add a demux_peekc function that allows to just "have a look" at the next
byte of data from the demuxer.
Index: demuxer.h
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demuxer.h,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -r1.83 -r1.84
--- demuxer.h 3 Sep 2005 08:58:34 -0000 1.83
+++ demuxer.h 17 Sep 2005 18:05:55 -0000 1.84
@@ -257,6 +257,9 @@
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);
+#define demux_peekc(ds) (\
+ (likely(ds->buffer_pos<ds->buffer_size)) ? ds->buffer[ds->buffer_pos] \
+ :((unlikely(!ds_fill_buffer(ds)))? (-1) : ds->buffer[ds->buffer_pos] ) )
#if 1
#define demux_getc(ds) (\
(likely(ds->buffer_pos<ds->buffer_size)) ? ds->buffer[ds->buffer_pos++] \
More information about the MPlayer-cvslog
mailing list