projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78d2d4e
)
simplify loop a little
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 31 Mar 2006 18:04:36 +0000
(18:04 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 31 Mar 2006 18:04:36 +0000
(18:04 +0000)
Originally committed as revision 5255 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mjpeg.c
patch
|
blob
|
history
diff --git
a/libavcodec/mjpeg.c
b/libavcodec/mjpeg.c
index
2fc870a
..
8f24931
100644
(file)
--- a/
libavcodec/mjpeg.c
+++ b/
libavcodec/mjpeg.c
@@
-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;
}