changeset 25204:dbad71c68ed6

Bigendian fix for ogg in AVI
author reimar
date Sat, 01 Dec 2007 15:00:22 +0000
parents 36b9262aaa0f
children f291ec948fca
files libmpdemux/demux_ogg.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_ogg.c	Sat Dec 01 14:58:00 2007 +0000
+++ b/libmpdemux/demux_ogg.c	Sat Dec 01 15:00:22 2007 +0000
@@ -1254,8 +1254,10 @@
   }
   /// Get the size of the 3 header packet
   extradata += 22;
-  memcpy(hdrsizes, extradata, 3*sizeof(uint32_t));
-  extradata += 3*sizeof(uint32_t);
+  for (i = 0; i < 3; i++) {
+    hdrsizes[i] = AV_RL32(extradata);
+    extradata += 4;
+  }
 //  printf("\n!!!!!! hdr sizes: %d %d %d   \n",hdrsizes[0],hdrsizes[1],hdrsizes[2]);
 
   /// Check the size