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
b736a365
Commit
b736a365
authored
Apr 07, 2007
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prev1/2 -> prev[2]
Originally committed as revision 8654 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
11d66266
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
adpcm.c
libavcodec/adpcm.c
+7
-7
No files found.
libavcodec/adpcm.c
View file @
b736a365
...
...
@@ -1314,7 +1314,7 @@ static int adpcm_decode_frame(AVCodecContext *avctx,
GetBitContext
gb
;
int
table
[
2
][
16
];
unsigned
int
samplecnt
;
int
prev
1
[
2
],
prev2
[
2
];
int
prev
[
2
]
[
2
];
int
ch
;
if
(
buf_size
<
80
)
{
...
...
@@ -1333,8 +1333,8 @@ static int adpcm_decode_frame(AVCodecContext *avctx,
/* Initialize the previous sample. */
for
(
ch
=
0
;
ch
<
2
;
ch
++
)
{
prev
1
[
ch
]
=
get_sbits
(
&
gb
,
16
);
prev
2
[
ch
]
=
get_sbits
(
&
gb
,
16
);
prev
[
ch
][
0
]
=
get_sbits
(
&
gb
,
16
);
prev
[
ch
][
1
]
=
get_sbits
(
&
gb
,
16
);
}
if
(
samplecnt
>=
(
samples_end
-
samples
)
/
(
st
+
1
))
{
...
...
@@ -1356,10 +1356,10 @@ static int adpcm_decode_frame(AVCodecContext *avctx,
for
(
n
=
0
;
n
<
14
;
n
++
)
{
int
sampledat
=
get_sbits
(
&
gb
,
4
);
*
samples
=
((
prev
1
[
ch
]
*
factor1
+
prev
2
[
ch
]
*
factor2
)
>>
11
)
+
(
sampledat
<<
exp
);
prev
2
[
ch
]
=
prev1
[
ch
];
prev
1
[
ch
]
=
*
samples
++
;
*
samples
=
((
prev
[
ch
][
0
]
*
factor1
+
prev
[
ch
][
1
]
*
factor2
)
>>
11
)
+
(
sampledat
<<
exp
);
prev
[
ch
][
1
]
=
prev
[
ch
][
0
];
prev
[
ch
][
0
]
=
*
samples
++
;
/* In case of stereo, skip one sample, this sample
is for the other channel. */
...
...
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