diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-03-12 02:26:01 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-03-12 02:26:01 +0000 |
commit | 6e046750d8aee9010ac923602c4cd6bc6acda78e (patch) | |
tree | 65fcb809bffb92b99cd552b18bf6abcfa1dee40f | |
parent | a2faa401924b7d3c6d21169762f4340a1331ef48 (diff) | |
download | ffmpeg-6e046750d8aee9010ac923602c4cd6bc6acda78e.tar.gz |
big endian compile fix by ("Ronald S. Bultje" <R dot S dot Bultje at students dot uu dot nl>)
Originally committed as revision 2873 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/matroska.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/matroska.c b/libavformat/matroska.c index 7fcc3c91f9..f8942aee4b 100644 --- a/libavformat/matroska.c +++ b/libavformat/matroska.c @@ -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 |