[Ffmpeg-cvslog] r7704 - trunk/libavcodec/snow.c
takis
subversion
Thu Jan 25 10:43:52 CET 2007
Author: takis
Date: Thu Jan 25 10:43:52 2007
New Revision: 7704
Modified:
trunk/libavcodec/snow.c
Log:
Brings down the number of snow.c warnings from 33 to 27 by putting parentheses
around + or - inside shift.
Modified: trunk/libavcodec/snow.c
==============================================================================
--- trunk/libavcodec/snow.c (original)
+++ trunk/libavcodec/snow.c Thu Jan 25 10:43:52 2007
@@ -1965,12 +1965,12 @@
*my = mid_pred(left->my, top->my, tr->my);
}else{
const int *scale = scale_mv_ref[ref];
- *mx = mid_pred(left->mx * scale[left->ref] + 128 >>8,
- top ->mx * scale[top ->ref] + 128 >>8,
- tr ->mx * scale[tr ->ref] + 128 >>8);
- *my = mid_pred(left->my * scale[left->ref] + 128 >>8,
- top ->my * scale[top ->ref] + 128 >>8,
- tr ->my * scale[tr ->ref] + 128 >>8);
+ *mx = mid_pred((left->mx * scale[left->ref] + 128) >>8,
+ (top ->mx * scale[top ->ref] + 128) >>8,
+ (tr ->mx * scale[tr ->ref] + 128) >>8);
+ *my = mid_pred((left->my * scale[left->ref] + 128) >>8,
+ (top ->my * scale[top ->ref] + 128) >>8,
+ (tr ->my * scale[tr ->ref] + 128) >>8);
}
}
More information about the ffmpeg-cvslog
mailing list