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
a57ea1a8
Commit
a57ea1a8
authored
Sep 10, 2011
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adpcm: simplify reading of IMA DK4 frame header.
parent
8114f94a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
adpcm.c
libavcodec/adpcm.c
+5
-8
No files found.
libavcodec/adpcm.c
View file @
a57ea1a8
...
...
@@ -528,15 +528,12 @@ static int adpcm_decode_frame(AVCodecContext *avctx,
if
(
avctx
->
block_align
!=
0
&&
buf_size
>
avctx
->
block_align
)
buf_size
=
avctx
->
block_align
;
c
->
status
[
0
].
predictor
=
(
int16_t
)
bytestream_get_le16
(
&
src
);
c
->
status
[
0
].
step_index
=
*
src
++
;
src
++
;
*
samples
++
=
c
->
status
[
0
].
predictor
;
if
(
st
)
{
c
->
status
[
1
].
predictor
=
(
int16_t
)
bytestream_get_le16
(
&
src
);
c
->
status
[
1
].
step_index
=
*
src
++
;
for
(
channel
=
0
;
channel
<
avctx
->
channels
;
channel
++
)
{
cs
=
&
c
->
status
[
channel
];
cs
->
predictor
=
(
int16_t
)
bytestream_get_le16
(
&
src
);
cs
->
step_index
=
*
src
++
;
src
++
;
*
samples
++
=
c
->
status
[
1
].
predictor
;
*
samples
++
=
c
s
->
predictor
;
}
while
(
src
<
buf
+
buf_size
)
{
uint8_t
v
=
*
src
++
;
...
...
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