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
836096aa
Commit
836096aa
authored
Oct 24, 2006
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify
Originally committed as revision 6789 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
54fe1159
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
jpeg_ls.c
libavcodec/jpeg_ls.c
+2
-6
No files found.
libavcodec/jpeg_ls.c
View file @
836096aa
...
...
@@ -204,17 +204,13 @@ static inline int update_state_regular(JLSState *state, int Q, int err){
downscale_state
(
state
,
Q
);
if
(
state
->
B
[
Q
]
<=
-
state
->
N
[
Q
])
{
state
->
B
[
Q
]
+=
state
->
N
[
Q
]
;
state
->
B
[
Q
]
=
FFMAX
(
state
->
B
[
Q
]
+
state
->
N
[
Q
],
1
-
state
->
N
[
Q
])
;
if
(
state
->
C
[
Q
]
>
-
128
)
state
->
C
[
Q
]
--
;
if
(
state
->
B
[
Q
]
<=
-
state
->
N
[
Q
])
state
->
B
[
Q
]
=
-
state
->
N
[
Q
]
+
1
;
}
else
if
(
state
->
B
[
Q
]
>
0
){
state
->
B
[
Q
]
-=
state
->
N
[
Q
]
;
state
->
B
[
Q
]
=
FFMIN
(
state
->
B
[
Q
]
-
state
->
N
[
Q
],
0
)
;
if
(
state
->
C
[
Q
]
<
127
)
state
->
C
[
Q
]
++
;
if
(
state
->
B
[
Q
]
>
0
)
state
->
B
[
Q
]
=
0
;
}
return
err
;
...
...
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