added stream_read_qword by Chris Bednar

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3999 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2002-01-05 19:21:06 +00:00
parent 580dc2b71c
commit ae478fadb8
1 changed files with 13 additions and 0 deletions

View File

@ -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){