Module: libav Branch: master Commit: 8b9a153ef3673d5847291987fa0dcddeac4a640b
Author: Clément Bœsch <[email protected]> Committer: Anton Khirnov <[email protected]> Date: Wed Dec 5 04:58:03 2012 +0100 lavfi/gradfun: do not increment DC pointer for odd values. First DC is only used once otherwise. This also makes the code consistent with ASM versions. Signed-off-by: Anton Khirnov <[email protected]> --- libavfilter/vf_gradfun.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavfilter/vf_gradfun.c b/libavfilter/vf_gradfun.c index ca7ef69..80b7e41 100644 --- a/libavfilter/vf_gradfun.c +++ b/libavfilter/vf_gradfun.c @@ -56,7 +56,7 @@ DECLARE_ALIGNED(16, static const uint16_t, dither)[8][8] = { void ff_gradfun_filter_line_c(uint8_t *dst, uint8_t *src, uint16_t *dc, int width, int thresh, const uint16_t *dithers) { int x; - for (x = 0; x < width; x++, dc += x & 1) { + for (x = 0; x < width; dc += x & 1, x++) { int pix = src[x] << 7; int delta = dc[0] - pix; int m = abs(delta) * thresh >> 16; _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
