[MPlayer-cvslog] r25232 - trunk/libmpdemux/demux_ogg.c

reimar subversion at mplayerhq.hu
Sat Dec 1 16:00:22 CET 2007


Author: reimar
Date: Sat Dec  1 16:00:22 2007
New Revision: 25232

Log:
Bigendian fix for ogg in AVI


Modified:
   trunk/libmpdemux/demux_ogg.c

Modified: trunk/libmpdemux/demux_ogg.c
==============================================================================
--- trunk/libmpdemux/demux_ogg.c	(original)
+++ trunk/libmpdemux/demux_ogg.c	Sat Dec  1 16:00:22 2007
@@ -1254,8 +1254,10 @@ demuxer_t* init_avi_with_ogg(demuxer_t* 
   }
   /// 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



More information about the MPlayer-cvslog mailing list