Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
fbc79a91
Commit
fbc79a91
authored
Nov 19, 2011
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adx: remove useless comments
parent
e0722d7f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
adxdec.c
libavcodec/adxdec.c
+2
-7
No files found.
libavcodec/adxdec.c
View file @
fbc79a91
...
...
@@ -47,14 +47,11 @@ static void adx_decode(int16_t *out,const unsigned char *in,
int
i
;
int
s0
,
s1
,
s2
,
d
;
// printf("%x ",scale);
in
+=
2
;
s1
=
prev
->
s1
;
s2
=
prev
->
s2
;
for
(
i
=
0
;
i
<
16
;
i
++
)
{
d
=
in
[
i
];
// d>>=4; if (d&8) d-=16;
d
=
((
signed
char
)
d
>>
4
);
s0
=
(
BASEVOL
*
d
*
scale
+
SCALE1
*
s1
-
SCALE2
*
s2
)
>>
14
;
s2
=
s1
;
...
...
@@ -62,7 +59,6 @@ static void adx_decode(int16_t *out,const unsigned char *in,
*
out
++=
s1
;
d
=
in
[
i
];
//d&=15; if (d&8) d-=16;
d
=
((
signed
char
)(
d
<<
4
)
>>
4
);
s0
=
(
BASEVOL
*
d
*
scale
+
SCALE1
*
s1
-
SCALE2
*
s2
)
>>
14
;
s2
=
s1
;
...
...
@@ -141,7 +137,7 @@ static int adx_decode_frame(AVCodecContext *avctx,
samples
+=
32
*
2
;
}
}
//
if
(
avctx
->
channels
==
1
)
{
while
(
rest
>=
18
)
{
adx_decode
(
samples
,
buf
,
c
->
prev
);
...
...
@@ -157,14 +153,13 @@ static int adx_decode_frame(AVCodecContext *avctx,
samples
+=
32
*
2
;
}
}
//
c
->
in_temp
=
rest
;
if
(
rest
)
{
memcpy
(
c
->
dec_temp
,
buf
,
rest
);
buf
+=
rest
;
}
*
data_size
=
(
uint8_t
*
)
samples
-
(
uint8_t
*
)
data
;
// printf("%d:%d ",buf-buf0,*data_size); fflush(stdout);
return
buf
-
buf0
;
}
...
...
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