Changeset 194 for libmpc/branches/r2d/libmpcenc
- Timestamp:
- 12/28/06 12:11:38 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/branches/r2d/libmpcenc/bitstream.c
r161 r194 18 18 */ 19 19 20 #ifdef _WIN32 21 #include <windows.h> 22 #define sleep(t) Sleep((t) * 1000) 23 #else 20 24 #include <unistd.h> 25 #endif 21 26 22 27 #include "libmpcenc.h" … … 125 130 126 131 if (addCodeSize) { 127 while ((1 << (7 * i)) - i <= size) i++;132 while ((1ull << (7 * i)) - i <= size) i++; 128 133 size += i; 129 134 } else 130 while ((1 << (7 * i)) <= size) i++;135 while ((1ull << (7 * i)) <= size) i++; 131 136 132 137 for( j = i - 1; j >= 0; j--){
Note: See TracChangeset
for help on using the changeset viewer.