Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
cfcd2ca2
Commit
cfcd2ca2
authored
Mar 11, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* fix ima4 decoding.
parent
7c27a792
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/codec/adpcm.c
modules/codec/adpcm.c
+2
-2
No files found.
modules/codec/adpcm.c
View file @
cfcd2ca2
...
...
@@ -2,7 +2,7 @@
* adpcm.c : adpcm variant audio decoder
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: adpcm.c,v 1.
9 2003/03/11 06:58:49
fenrir Exp $
* $Id: adpcm.c,v 1.
10 2003/03/11 23:56:40
fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -737,7 +737,7 @@ static void DecodeAdpcmImaQT( adec_thread_t *p_adec,
{
p_sample
=
((
int16_t
*
)
p_aout_buffer
->
p_buffer
)
+
i_ch
;
/* load preambule */
channel
[
i_ch
].
i_predictor
=
(
p_buffer
[
0
]
<<
1
)
||
(
p_buffer
[
1
]
>>
7
);
channel
[
i_ch
].
i_predictor
=
(
int16_t
)(((
(
p_buffer
[
0
]
<<
1
)
|
(
p_buffer
[
1
]
>>
7
)
))
<<
7
);
channel
[
i_ch
].
i_step_index
=
p_buffer
[
1
]
&
0x7f
;
CLAMP
(
channel
[
i_ch
].
i_step_index
,
0
,
88
);
...
...
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