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
6fd8a28b
Commit
6fd8a28b
authored
Jul 09, 2012
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
alac: adjust conditions for updating entropy decoder history
avoids some unnecessary arithmetic in certain situations
parent
a06fdadd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
alac.c
libavcodec/alac.c
+3
-3
No files found.
libavcodec/alac.c
View file @
6fd8a28b
...
@@ -131,11 +131,11 @@ static void bastardized_rice_decompress(ALACContext *alac,
...
@@ -131,11 +131,11 @@ static void bastardized_rice_decompress(ALACContext *alac,
sign_modifier
=
0
;
sign_modifier
=
0
;
/* now update the history */
/* now update the history */
history
+=
x_modified
*
rice_history_mult
-
((
history
*
rice_history_mult
)
>>
9
);
if
(
x_modified
>
0xffff
)
if
(
x_modified
>
0xffff
)
history
=
0xffff
;
history
=
0xffff
;
else
history
+=
x_modified
*
rice_history_mult
-
((
history
*
rice_history_mult
)
>>
9
);
/* special case: there may be compressed blocks of 0 */
/* special case: there may be compressed blocks of 0 */
if
((
history
<
128
)
&&
(
output_count
+
1
<
output_size
))
{
if
((
history
<
128
)
&&
(
output_count
+
1
<
output_size
))
{
...
...
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