0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

Use bitrate from demuxer

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16416 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2005-09-06 20:37:47 +00:00
parent cb1bcc8b79
commit 720977d7d5

View File

@ -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;