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
01a01bf8
Commit
01a01bf8
authored
Dec 21, 2011
by
Paul B Mahol
Committed by
Janne Grunau
Dec 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adpcm: fix IMA SMJPEG decoding
Signed-off-by:
Janne Grunau
<
janne-libav@jannau.net
>
parent
c32e4029
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
adpcm.c
libavcodec/adpcm.c
+9
-5
No files found.
libavcodec/adpcm.c
View file @
01a01bf8
...
@@ -1001,11 +1001,15 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data,
...
@@ -1001,11 +1001,15 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data,
break
;
break
;
case
CODEC_ID_ADPCM_IMA_AMV
:
case
CODEC_ID_ADPCM_IMA_AMV
:
case
CODEC_ID_ADPCM_IMA_SMJPEG
:
case
CODEC_ID_ADPCM_IMA_SMJPEG
:
c
->
status
[
0
].
predictor
=
(
int16_t
)
bytestream_get_le16
(
&
src
);
if
(
avctx
->
codec
->
id
==
CODEC_ID_ADPCM_IMA_AMV
)
{
c
->
status
[
0
].
step_index
=
bytestream_get_le16
(
&
src
);
c
->
status
[
0
].
predictor
=
sign_extend
(
bytestream_get_le16
(
&
src
),
16
);
c
->
status
[
0
].
step_index
=
bytestream_get_le16
(
&
src
);
if
(
avctx
->
codec
->
id
==
CODEC_ID_ADPCM_IMA_AMV
)
src
+=
4
;
src
+=
4
;
}
else
{
c
->
status
[
0
].
predictor
=
sign_extend
(
bytestream_get_be16
(
&
src
),
16
);
c
->
status
[
0
].
step_index
=
bytestream_get_byte
(
&
src
);
src
+=
1
;
}
for
(
n
=
nb_samples
>>
(
1
-
st
);
n
>
0
;
n
--
,
src
++
)
{
for
(
n
=
nb_samples
>>
(
1
-
st
);
n
>
0
;
n
--
,
src
++
)
{
char
hi
,
lo
;
char
hi
,
lo
;
...
...
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