mirror of https://github.com/mpv-player/mpv
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:
parent
580dc2b71c
commit
ae478fadb8
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue