[FFmpeg-cvslog] r23829 - trunk/libavfilter/vf_unsharp.c
mstorsjo
subversion
Sun Jun 27 21:02:16 CEST 2010
Author: mstorsjo
Date: Sun Jun 27 21:02:15 2010
New Revision: 23829
Log:
Fix clang warning, make initialization more readable
Patch by Eli Friedman, eli dot friedman at gmail
Modified:
trunk/libavfilter/vf_unsharp.c
Modified: trunk/libavfilter/vf_unsharp.c
==============================================================================
--- trunk/libavfilter/vf_unsharp.c Sun Jun 27 19:51:17 2010 (r23828)
+++ trunk/libavfilter/vf_unsharp.c Sun Jun 27 21:02:15 2010 (r23829)
@@ -83,9 +83,9 @@ static void unsharpen(uint8_t *dst, uint
for (y = 0; y < 2 * fp->steps_y; y++)
memset(sc[y], 0, sizeof(sc[y][0]) * (width + 2 * fp->steps_x));
- for (y =- fp->steps_y; y < height + fp->steps_y; y++) {
+ for (y = -fp->steps_y; y < height + fp->steps_y; y++) {
memset(sr, 0, sizeof(sr[0]) * (2 * fp->steps_x - 1));
- for (x =- fp->steps_x; x < width + fp->steps_x; x++) {
+ for (x = -fp->steps_x; x < width + fp->steps_x; x++) {
tmp1 = x <= 0 ? src[0] : x >= width ? src[width-1] : src[x];
for (z = 0; z < fp->steps_x * 2; z += 2) {
tmp2 = sr[z + 0] + tmp1; sr[z + 0] = tmp1;
More information about the ffmpeg-cvslog
mailing list