Mercurial > mplayer.hg
comparison libmpcodecs/ad_mpc.c @ 16415:94568863c59c
Use bitrate from demuxer
author | reimar |
---|---|
date | Tue, 06 Sep 2005 20:37:47 +0000 |
parents | fdb6bc2b891f |
children | 0c22fbbbc2c7 |
comparison
equal
deleted
inserted
replaced
16414:cdb7069d57b0 | 16415:94568863c59c |
---|---|
125 header_reader.data = cd; | 125 header_reader.data = cd; |
126 if (mpc_streaminfo_read(&info, &header_reader) != ERROR_CODE_OK) { | 126 if (mpc_streaminfo_read(&info, &header_reader) != ERROR_CODE_OK) { |
127 mp_msg(MSGT_DECAUDIO, MSGL_FATAL, "Not a valid musepack file.\n"); | 127 mp_msg(MSGT_DECAUDIO, MSGL_FATAL, "Not a valid musepack file.\n"); |
128 return 0; | 128 return 0; |
129 } | 129 } |
130 sh->i_bps = info.average_bitrate / 8; | 130 // this value is nonsense, since it relies on the get_size function. |
131 // use the value from the demuxer instead. | |
132 // sh->i_bps = info.average_bitrate / 8; | |
131 sh->channels = info.channels; | 133 sh->channels = info.channels; |
132 sh->samplerate = info.sample_freq; | 134 sh->samplerate = info.sample_freq; |
133 sh->samplesize = 4; | 135 sh->samplesize = 4; |
134 sh->sample_format = | 136 sh->sample_format = |
135 #if MPC_SAMPLE_FORMAT == float | 137 #if MPC_SAMPLE_FORMAT == float |