[Ffmpeg-cvslog] r6785 - trunk/libavcodec/jpeg_ls.c
michael
subversion
Tue Oct 24 11:09:38 CEST 2006
Author: michael
Date: Tue Oct 24 11:09:38 2006
New Revision: 6785
Modified:
trunk/libavcodec/jpeg_ls.c
Log:
FFMAX
Modified: trunk/libavcodec/jpeg_ls.c
==============================================================================
--- trunk/libavcodec/jpeg_ls.c (original)
+++ trunk/libavcodec/jpeg_ls.c Tue Oct 24 11:09:38 2006
@@ -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;
}
More information about the ffmpeg-cvslog
mailing list