Mercurial > mplayer.hg
changeset 16415:94568863c59c
Use bitrate from demuxer
author | reimar |
---|---|
date | Tue, 06 Sep 2005 20:37:47 +0000 |
parents | cdb7069d57b0 |
children | 42ad241f6e8c |
files | libmpcodecs/ad_mpc.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/ad_mpc.c Tue Sep 06 20:35:14 2005 +0000 +++ b/libmpcodecs/ad_mpc.c Tue Sep 06 20:37:47 2005 +0000 @@ -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;