[MPlayer-cvslog] CVS: main/libmpcodecs ad_mpc.c,1.5,1.6

Reimar Döffinger CVS syncmail at mplayerhq.hu
Tue Sep 6 22:37:50 CEST 2005


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv19488

Modified Files:
	ad_mpc.c 
Log Message:
Use bitrate from demuxer


Index: ad_mpc.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ad_mpc.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- ad_mpc.c	26 Jul 2005 00:01:44 -0000	1.5
+++ ad_mpc.c	6 Sep 2005 20:37:47 -0000	1.6
@@ -127,7 +127,9 @@
     mp_msg(MSGT_DECAUDIO, MSGL_FATAL, "Not a valid musepack file.\n");
     return 0;
   }
-  sh->i_bps = info.average_bitrate / 8;
+// this value is nonsense, since it relies on the get_size function.
+// use the value from the demuxer instead.
+//  sh->i_bps = info.average_bitrate / 8;
   sh->channels = info.channels;
   sh->samplerate = info.sample_freq;
   sh->samplesize = 4;




More information about the MPlayer-cvslog mailing list