diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-09-06 20:37:47 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-09-06 20:37:47 +0000 |
commit | 720977d7d53320241c65b1478bc4cc0e5fa9ba92 (patch) | |
tree | af78bb01725bc4a601a3317114da7fd8495f5682 | |
parent | cb1bcc8b7954382079099a64dae3037fd8b399c3 (diff) |
Use bitrate from demuxer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16416 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpcodecs/ad_mpc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libmpcodecs/ad_mpc.c b/libmpcodecs/ad_mpc.c index bacea71f70..3593bc1d5f 100644 --- a/libmpcodecs/ad_mpc.c +++ b/libmpcodecs/ad_mpc.c @@ -127,7 +127,9 @@ static int init(sh_audio_t *sh) { 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; |