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
4ca24b96
Commit
4ca24b96
authored
Aug 26, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eliminate unused variables in the AAC decoder
parent
82ca4cf8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
aac_plugin.c
src/inputPlugins/aac_plugin.c
+2
-10
No files found.
src/inputPlugins/aac_plugin.c
View file @
4ca24b96
...
...
@@ -93,9 +93,8 @@ static int adtsSampleRates[] =
static
int
adtsParse
(
AacBuffer
*
b
,
float
*
length
)
{
int
frames
,
frameLength
;
int
tFrameLength
=
0
;
int
sampleRate
=
0
;
float
framesPerSec
,
bytesPerFrame
;
float
framesPerSec
;
/* Read all frames to ensure correct time and bitrate */
for
(
frames
=
0
;;
frames
++
)
{
...
...
@@ -118,8 +117,6 @@ static int adtsParse(AacBuffer * b, float *length)
<<
11
)
|
(((
unsigned
int
)
b
->
buffer
[
4
])
<<
3
)
|
(
b
->
buffer
[
5
]
>>
5
);
tFrameLength
+=
frameLength
;
if
(
frameLength
>
b
->
bytesIntoBuffer
)
break
;
...
...
@@ -129,10 +126,6 @@ static int adtsParse(AacBuffer * b, float *length)
}
framesPerSec
=
(
float
)
sampleRate
/
1024
.
0
;
if
(
frames
!=
0
)
{
bytesPerFrame
=
(
float
)
tFrameLength
/
(
float
)(
frames
*
1000
);
}
else
bytesPerFrame
=
0
;
if
(
framesPerSec
!=
0
)
*
length
=
(
float
)
frames
/
framesPerSec
;
...
...
@@ -227,7 +220,6 @@ static float getAacFloatTotalTime(char *file)
{
AacBuffer
b
;
float
length
;
size_t
fileread
,
tagsize
;
faacDecHandle
decoder
;
faacDecConfigurationPtr
config
;
uint32_t
sampleRate
;
...
...
@@ -238,7 +230,7 @@ static float getAacFloatTotalTime(char *file)
if
(
openInputStream
(
&
inStream
,
file
)
<
0
)
return
-
1
;
initAacBuffer
(
&
inStream
,
&
b
,
&
length
,
&
fileread
,
&
tagsize
);
initAacBuffer
(
&
inStream
,
&
b
,
&
length
,
NULL
,
NULL
);
if
(
length
<
0
)
{
decoder
=
faacDecOpen
();
...
...
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