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
46d9fe62
Commit
46d9fe62
authored
Oct 24, 2006
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove map variable
Originally committed as revision 6787 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
71977422
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
jpeg_ls.c
libavcodec/jpeg_ls.c
+5
-6
No files found.
libavcodec/jpeg_ls.c
View file @
46d9fe62
...
...
@@ -532,7 +532,7 @@ static inline void ls_encode_regular(JLSState *state, PutBitContext *pb, int Q,
*/
static
inline
void
ls_encode_runterm
(
JLSState
*
state
,
PutBitContext
*
pb
,
int
RItype
,
int
err
,
int
limit_add
){
int
k
;
int
val
,
map
;
int
val
;
int
Q
=
365
+
RItype
;
int
temp
;
...
...
@@ -540,14 +540,13 @@ static inline void ls_encode_runterm(JLSState *state, PutBitContext *pb, int RIt
if
(
RItype
)
temp
+=
state
->
N
[
Q
]
>>
1
;
for
(
k
=
0
;
(
state
->
N
[
Q
]
<<
k
)
<
temp
;
k
++
);
map
=
0
;
if
(
!
k
&&
err
&&
(
2
*
state
->
B
[
Q
]
<
state
->
N
[
Q
]))
map
=
1
;
if
(
!
k
&&
(
2
*
state
->
B
[
Q
]
<
state
->
N
[
Q
]))
err
=
-
err
;
if
(
err
<
0
)
val
=
-
(
2
*
err
)
-
1
-
RItype
+
map
;
val
=
-
(
2
*
err
)
-
1
-
RItype
;
else
val
=
2
*
err
-
RItype
-
map
;
val
=
2
*
err
-
RItype
;
set_ur_golomb_jpegls
(
pb
,
val
,
k
,
state
->
limit
-
limit_add
-
1
,
state
->
qbpp
);
if
(
err
<
0
)
...
...
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