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
002a7414
Commit
002a7414
authored
Mar 31, 2006
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify loop a little
Originally committed as revision 5255 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
78d2d4e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
mjpeg.c
libavcodec/mjpeg.c
+3
-5
No files found.
libavcodec/mjpeg.c
View file @
002a7414
...
...
@@ -1281,16 +1281,14 @@ static int decode_block(MJpegDecodeContext *s, DCTELEM *block,
/* EOB */
if
(
code
==
0x10
)
break
;
if
(
code
==
0x100
)
{
i
+=
16
;
}
else
{
i
+=
((
unsigned
)
code
)
>>
4
;
i
+=
((
unsigned
)
code
)
>>
4
;
if
(
code
!=
0x100
){
code
&=
0xf
;
if
(
code
>
MIN_CACHE_BITS
-
16
){
UPDATE_CACHE
(
re
,
&
s
->
gb
)
}
{
int
cache
=
GET_CACHE
(
re
,
gb
);
int
cache
=
GET_CACHE
(
re
,
&
s
->
gb
);
int
sign
=
(
~
cache
)
>>
31
;
level
=
(
NEG_USR32
(
sign
^
cache
,
code
)
^
sign
)
-
sign
;
}
...
...
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