[MPlayer-cvslog] CVS: main/libmpdemux demux_mpc.c,1.9,1.10

Reimar Döffinger CVS syncmail at mplayerhq.hu
Wed Oct 12 22:45:54 CEST 2005


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv17262

Modified Files:
	demux_mpc.c 
Log Message:
Bigendian bug


Index: demux_mpc.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_mpc.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- demux_mpc.c	27 Sep 2005 19:04:10 -0000	1.9
+++ demux_mpc.c	12 Oct 2005 20:45:52 -0000	1.10
@@ -107,9 +107,8 @@
   priv->last_pts = -1;
   priv->length = seconds;
   priv->dword = 0;
-  priv->pos = 0;
-  stream_read(s, (void *)&priv->dword, 4);
-  priv->pos = 8;
+  priv->pos = 32; // empty bit buffer
+  get_bits(priv, s, 8); // discard first 8 bits
   demuxer->priv = priv;
   demuxer->seekable = 0;
   demuxer->audio->id = 0;




More information about the MPlayer-cvslog mailing list