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
cd1f22f9
Commit
cd1f22f9
authored
Sep 28, 2003
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simpler
Originally committed as revision 2310 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
6eb23b82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
12 deletions
+4
-12
pcm.c
libavcodec/pcm.c
+4
-12
No files found.
libavcodec/pcm.c
View file @
cd1f22f9
...
@@ -45,19 +45,11 @@ static int alaw2linear(unsigned char a_val)
...
@@ -45,19 +45,11 @@ static int alaw2linear(unsigned char a_val)
a_val
^=
0x55
;
a_val
^=
0x55
;
t
=
(
a_val
&
QUANT_MASK
)
<<
4
;
t
=
a_val
&
QUANT_MASK
;
seg
=
((
unsigned
)
a_val
&
SEG_MASK
)
>>
SEG_SHIFT
;
seg
=
((
unsigned
)
a_val
&
SEG_MASK
)
>>
SEG_SHIFT
;
switch
(
seg
)
{
if
(
seg
)
t
=
(
t
+
t
+
1
+
32
)
<<
(
seg
+
2
);
case
0
:
else
t
=
(
t
+
t
+
1
)
<<
3
;
t
+=
8
;
break
;
case
1
:
t
+=
0x108
;
break
;
default:
t
+=
0x108
;
t
<<=
seg
-
1
;
}
return
((
a_val
&
SIGN_BIT
)
?
t
:
-
t
);
return
((
a_val
&
SIGN_BIT
)
?
t
:
-
t
);
}
}
...
...
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