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
73ff4f83
Commit
73ff4f83
authored
Jun 19, 2008
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 abs() less
Originally committed as revision 13810 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
dca21085
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
g726.c
libavcodec/g726.c
+5
-4
No files found.
libavcodec/g726.c
View file @
73ff4f83
...
...
@@ -190,15 +190,16 @@ static int16_t g726_decode(G726Context* c, int16_t I)
Float11
f
;
dq
=
inverse_quant
(
c
,
I
);
if
(
I
>>
(
c
->
tbls
->
bits
-
1
))
/* get the sign */
dq
=
-
dq
;
re_signal
=
c
->
se
+
dq
;
/* Transition detect */
ylint
=
(
c
->
yl
>>
15
);
ylfrac
=
(
c
->
yl
>>
10
)
&
0x1f
;
thr2
=
(
ylint
>
9
)
?
0x1f
<<
10
:
(
0x20
+
ylfrac
)
<<
ylint
;
tr
=
(
c
->
td
==
1
&&
abs
(
dq
)
>
((
3
*
thr2
)
>>
2
));
tr
=
(
c
->
td
==
1
&&
dq
>
((
3
*
thr2
)
>>
2
));
if
(
I
>>
(
c
->
tbls
->
bits
-
1
))
/* get the sign */
dq
=
-
dq
;
re_signal
=
c
->
se
+
dq
;
/* Update second order predictor coefficient A2 and A1 */
pk0
=
(
c
->
sez
+
dq
)
?
sgn
(
c
->
sez
+
dq
)
:
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