# HG changeset patch # User reimar # Date 1196521222 0 # Node ID dbad71c68ed687ce8e89cb0efe4c15ea31749483 # Parent 36b9262aaa0f04ef5497a2f3b38cfe3eeb3a78f8 Bigendian fix for ogg in AVI diff -r 36b9262aaa0f -r dbad71c68ed6 libmpdemux/demux_ogg.c --- 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