OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d42cf7
)
FFMAX
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 24 Oct 2006 09:09:38 +0000
(09:09 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 24 Oct 2006 09:09:38 +0000
(09:09 +0000)
Originally committed as revision 6785 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/jpeg_ls.c
patch
|
blob
|
history
diff --git
a/libavcodec/jpeg_ls.c
b/libavcodec/jpeg_ls.c
index
8dabcc0
..
b322ab7
100644
(file)
--- a/
libavcodec/jpeg_ls.c
+++ b/
libavcodec/jpeg_ls.c
@@
-77,9
+77,7
@@
static void ls_init_state(JLSState *state){
state->limit = (4 * state->bpp) - state->qbpp;
for(i = 0; i < 367; i++) {
- state->A[i] = (state->range + 32) >> 6;
- if(state->A[i] < 2)
- state->A[i] = 2;
+ state->A[i] = FFMAX((state->range + 32) >> 6, 2);
state->N[i] = 1;
}