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
d42959c5
Commit
d42959c5
authored
Sep 23, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flac: removed FlacData.chunk_length
chunk_length can be converted to a local variable, because it is always reset to 0 after it was used.
parent
0c934f9d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
8 deletions
+2
-8
_flac_common.c
src/inputPlugins/_flac_common.c
+2
-7
_flac_common.h
src/inputPlugins/_flac_common.h
+0
-1
No files found.
src/inputPlugins/_flac_common.c
View file @
d42959c5
...
@@ -33,7 +33,6 @@
...
@@ -33,7 +33,6 @@
void
init_FlacData
(
FlacData
*
data
,
struct
decoder
*
decoder
,
void
init_FlacData
(
FlacData
*
data
,
struct
decoder
*
decoder
,
InputStream
*
inStream
)
InputStream
*
inStream
)
{
{
data
->
chunk_length
=
0
;
data
->
time
=
0
;
data
->
time
=
0
;
data
->
position
=
0
;
data
->
position
=
0
;
data
->
bitRate
=
0
;
data
->
bitRate
=
0
;
...
@@ -305,15 +304,11 @@ flac_common_write(FlacData *data, const FLAC__Frame * frame,
...
@@ -305,15 +304,11 @@ flac_common_write(FlacData *data, const FLAC__Frame * frame,
num_channels
,
bytes_per_sample
,
buf
,
num_channels
,
bytes_per_sample
,
buf
,
c_samp
,
c_samp
+
num_samples
);
c_samp
,
c_samp
+
num_samples
);
data
->
chunk_length
=
num_samples
*
bytes_per_channel
;
cmd
=
decoder_data
(
data
->
decoder
,
data
->
inStream
,
cmd
=
decoder_data
(
data
->
decoder
,
data
->
inStream
,
1
,
data
->
chunk
,
1
,
data
->
chunk
,
data
->
chunk_length
,
data
->
time
,
num_samples
*
bytes_per_channel
,
data
->
bitRate
,
data
->
time
,
data
->
bitRate
,
data
->
replayGainInfo
);
data
->
replayGainInfo
);
data
->
chunk_length
=
0
;
switch
(
cmd
)
{
switch
(
cmd
)
{
case
DECODE_COMMAND_NONE
:
case
DECODE_COMMAND_NONE
:
case
DECODE_COMMAND_START
:
case
DECODE_COMMAND_START
:
...
...
src/inputPlugins/_flac_common.h
View file @
d42959c5
...
@@ -140,7 +140,6 @@ typedef size_t flac_read_status_size_t;
...
@@ -140,7 +140,6 @@ typedef size_t flac_read_status_size_t;
typedef
struct
{
typedef
struct
{
unsigned
char
chunk
[
FLAC_CHUNK_SIZE
];
unsigned
char
chunk
[
FLAC_CHUNK_SIZE
];
size_t
chunk_length
;
float
time
;
float
time
;
unsigned
int
bitRate
;
unsigned
int
bitRate
;
struct
audio_format
audio_format
;
struct
audio_format
audio_format
;
...
...
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