Commit 857e1502 authored by michael's avatar michael

big endian compile fix by ("Ronald S. Bultje" <R dot S dot Bultje at students dot uu dot nl>)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2873 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 94161f59
......@@ -624,10 +624,10 @@ ebml_read_float (MatroskaDemuxContext *matroska,
if (size == 4) {
float f;
while (size-- > 0)
#ifdef WORDS_BIGENDIAN
f = * (float *) data;
((uint8_t *) &f)[3 - size] = get_byte(pb);
#else
while (size-- > 0)
((uint8_t *) &f)[size] = get_byte(pb);
#endif
......@@ -635,10 +635,10 @@ ebml_read_float (MatroskaDemuxContext *matroska,
} else {
double d;
while (size-- > 0)
#ifdef WORDS_BIGENDIAN
d = * (double *) data;
((uint8_t *) &d)[7 - size] = get_byte(pb);
#else
while (size-- > 0)
((uint8_t *) &d)[size] = get_byte(pb);
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment