mirror of
https://github.com/mpv-player/mpv
synced 2025-03-19 01:47:38 +00: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:
parent
cb1bcc8b79
commit
720977d7d5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user