projects
/
platform
/
upstream
/
flac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ef0146
)
fix bug in write_big_endian_uint64()
author
Josh Coalson
<jcoalson@users.sourceforce.net>
Mon, 28 May 2001 21:07:36 +0000
(21:07 +0000)
committer
Josh Coalson
<jcoalson@users.sourceforce.net>
Mon, 28 May 2001 21:07:36 +0000
(21:07 +0000)
src/flac/encode.c
patch
|
blob
|
history
diff --git
a/src/flac/encode.c
b/src/flac/encode.c
index 7dc33b87300a51ea7a7ceb40af0d0dafd2c3465a..15233f209b5603183c4fa6dbc20df7314e6979a0 100644
(file)
--- a/
src/flac/encode.c
+++ b/
src/flac/encode.c
@@
-1056,7
+1056,7
@@
bool write_big_endian_uint64(FILE *f, uint64 val)
byte *b = (byte *)&val, tmp;
tmp = b[0]; b[0] = b[7]; b[7] = tmp;
tmp = b[1]; b[1] = b[6]; b[6] = tmp;
- tmp = b[2]; b[2] = b[5]; b[
3
] = tmp;
+ tmp = b[2]; b[2] = b[5]; b[
5
] = tmp;
tmp = b[3]; b[3] = b[4]; b[4] = tmp;
}
return fwrite(&val, 1, 8, f) == 8;