[MPlayer-cvslog] r24099 - trunk/stream/stream.h
reimar
subversion at mplayerhq.hu
Sun Aug 19 10:50:58 CEST 2007
Author: reimar
Date: Sun Aug 19 10:50:58 2007
New Revision: 24099
Log:
Fix a bug in stream_read_qword_le due to sign extension from int to uint64_t.
Patch by Sean Veers [cf3cf3 gmail com]
Modified:
trunk/stream/stream.h
Modified: trunk/stream/stream.h
==============================================================================
--- trunk/stream/stream.h (original)
+++ trunk/stream/stream.h Sun Aug 19 10:50:58 2007
@@ -186,14 +186,8 @@ inline static uint64_t stream_read_qword
inline static uint64_t stream_read_qword_le(stream_t *s){
uint64_t y;
- y = stream_read_char(s);
- y|=stream_read_char(s)<<8;
- y|=stream_read_char(s)<<16;
- y|=stream_read_char(s)<<24;
- y|=(uint64_t)stream_read_char(s)<<32;
- y|=(uint64_t)stream_read_char(s)<<40;
- y|=(uint64_t)stream_read_char(s)<<48;
- y|=(uint64_t)stream_read_char(s)<<56;
+ y = stream_read_dword_le(s);
+ y|=(uint64_t)stream_read_dword_le(s)<<32;
return y;
}
More information about the MPlayer-cvslog
mailing list