aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-05 19:21:06 +0000
committerGravatar alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-05 19:21:06 +0000
commitae478fadb843de1a97f3488f7a24c025df54db5d (patch)
tree4ef593dde25501bb80da54c792edd67a9dc57ccf
parent580dc2b71c3545b349deefc9ac31363ffa16b4eb (diff)
added stream_read_qword by Chris Bednar
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3999 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libmpdemux/stream.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/libmpdemux/stream.h b/libmpdemux/stream.h
index 346532ec91..47645f3ce2 100644
--- a/libmpdemux/stream.h
+++ b/libmpdemux/stream.h
@@ -96,6 +96,19 @@ inline static unsigned int stream_read_dword_le(stream_t *s){
return y;
}
+inline static uint64_t stream_read_qword(stream_t *s){
+ uint64_t y;
+ y = stream_read_char(s);
+ y=(y<<8)|stream_read_char(s);
+ y=(y<<8)|stream_read_char(s);
+ y=(y<<8)|stream_read_char(s);
+ y=(y<<8)|stream_read_char(s);
+ y=(y<<8)|stream_read_char(s);
+ y=(y<<8)|stream_read_char(s);
+ y=(y<<8)|stream_read_char(s);
+ return y;
+}
+
inline static int stream_read(stream_t *s,char* mem,int total){
int len=total;
while(len>0){