changeset 4073:ce2ce063481c libavcodec

FFMAX
author michael
date Tue, 24 Oct 2006 09:09:38 +0000
parents db5d1a289b56
children 861a55e86ef0
files jpeg_ls.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/jpeg_ls.c	Tue Oct 24 08:52:51 2006 +0000
+++ b/jpeg_ls.c	Tue Oct 24 09:09:38 2006 +0000
@@ -77,9 +77,7 @@
         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;
     }