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
4dc709d0
Commit
4dc709d0
authored
Apr 12, 2008
by
Max Kellermann
Committed by
Eric Wong
Apr 12, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed unused variable
The local variable d_samp is initialized, but never actually used. git-svn-id:
https://svn.musicpd.org/mpd/trunk@7227
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
665eab26
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
flac_plugin.c
src/inputPlugins/flac_plugin.c
+3
-3
oggflac_plugin.c
src/inputPlugins/oggflac_plugin.c
+3
-3
No files found.
src/inputPlugins/flac_plugin.c
View file @
4dc709d0
...
...
@@ -215,7 +215,7 @@ static FLAC__StreamDecoderWriteStatus flacWrite(const flac_decoder *dec,
FLAC__uint32
samples
=
frame
->
header
.
blocksize
;
FLAC__uint16
u16
;
unsigned
char
*
uc
;
int
c_samp
,
c_chan
,
d_samp
;
int
c_samp
,
c_chan
;
int
i
;
float
timeChange
;
FLAC__uint64
newPosition
=
0
;
...
...
@@ -231,9 +231,9 @@ static FLAC__StreamDecoderWriteStatus flacWrite(const flac_decoder *dec,
}
data
->
position
=
newPosition
;
for
(
c_samp
=
d_samp
=
0
;
c_samp
<
frame
->
header
.
blocksize
;
c_samp
++
)
{
for
(
c_samp
=
0
;
c_samp
<
frame
->
header
.
blocksize
;
c_samp
++
)
{
for
(
c_chan
=
0
;
c_chan
<
frame
->
header
.
channels
;
c_chan
++
,
d_samp
++
)
{
c_chan
++
)
{
u16
=
buf
[
c_chan
][
c_samp
];
uc
=
(
unsigned
char
*
)
&
u16
;
for
(
i
=
0
;
i
<
(
data
->
dc
->
audioFormat
.
bits
/
8
);
i
++
)
{
...
...
src/inputPlugins/oggflac_plugin.c
View file @
4dc709d0
...
...
@@ -169,7 +169,7 @@ static FLAC__StreamDecoderWriteStatus oggflacWrite(const
FLAC__uint32
samples
=
frame
->
header
.
blocksize
;
FLAC__uint16
u16
;
unsigned
char
*
uc
;
int
c_samp
,
c_chan
,
d_samp
;
int
c_samp
,
c_chan
;
int
i
;
float
timeChange
;
...
...
@@ -188,9 +188,9 @@ static FLAC__StreamDecoderWriteStatus oggflacWrite(const
/((float)samples * 1000)) + 0.5;
*/
for
(
c_samp
=
d_samp
=
0
;
c_samp
<
frame
->
header
.
blocksize
;
c_samp
++
)
{
for
(
c_samp
=
0
;
c_samp
<
frame
->
header
.
blocksize
;
c_samp
++
)
{
for
(
c_chan
=
0
;
c_chan
<
frame
->
header
.
channels
;
c_chan
++
,
d_samp
++
)
{
c_chan
++
)
{
u16
=
buf
[
c_chan
][
c_samp
];
uc
=
(
unsigned
char
*
)
&
u16
;
for
(
i
=
0
;
i
<
(
data
->
dc
->
audioFormat
.
bits
/
8
);
i
++
)
{
...
...
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