Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
3e9738dc
Commit
3e9738dc
authored
Aug 05, 2015
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/mpcdec: read the bit rate
This was lost in commit
8ead8f7e
, because this was never implemented for the new API.
parent
2ecf57cd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
NEWS
NEWS
+1
-0
MpcdecDecoderPlugin.cxx
src/decoder/plugins/MpcdecDecoderPlugin.cxx
+2
-4
No files found.
NEWS
View file @
3e9738dc
...
...
@@ -14,6 +14,7 @@ ver 0.20 (not yet released)
* decoder
- ffmpeg: support ReplayGain and MixRamp
- ffmpeg: support stream tags
- mpcdec: read the bit rate
* output
- jack: reduce CPU usage
- pulse: set channel map to WAVE-EX
...
...
src/decoder/plugins/MpcdecDecoderPlugin.cxx
View file @
3e9738dc
...
...
@@ -193,8 +193,6 @@ mpcdec_decode(Decoder &mpd_decoder, InputStream &is)
decoder_seek_error
(
mpd_decoder
);
}
mpc_uint32_t
vbr_update_bits
=
0
;
MPC_SAMPLE_FORMAT
sample_buffer
[
MPC_DECODER_BUFFER_LENGTH
];
mpc_frame_info
frame
;
frame
.
buffer
=
(
MPC_SAMPLE_FORMAT
*
)
sample_buffer
;
...
...
@@ -214,8 +212,8 @@ mpcdec_decode(Decoder &mpd_decoder, InputStream &is)
MpcdecSampleTraits
::
value_type
chunk
[
ARRAY_SIZE
(
sample_buffer
)];
mpc_to_mpd_buffer
(
chunk
,
sample_buffer
,
ret
);
long
bit_rate
=
vbr_update_bits
*
audio_format
.
sample_rate
/
1152
/
1000
;
long
bit_rate
=
unsigned
(
frame
.
bits
)
*
audio_format
.
sample_rate
/
(
1000
*
frame
.
samples
)
;
cmd
=
decoder_data
(
mpd_decoder
,
is
,
chunk
,
ret
*
sizeof
(
chunk
[
0
]),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment