mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-08-29 20:56:12 +02:00
avcodec/pngdec: fix () in OP_* macros
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ad733089b0
commit
c163f5e601
@ -237,7 +237,7 @@ static void png_filter_row(PNGDSPContext *dsp, uint8_t *dst, int filter_type,
|
||||
*(int *)(dst + i) = p;
|
||||
}
|
||||
} else {
|
||||
#define OP_SUB(x, s, l) x + s
|
||||
#define OP_SUB(x, s, l) ((x) + (s))
|
||||
UNROLL_FILTER(OP_SUB);
|
||||
}
|
||||
break;
|
||||
@ -249,7 +249,7 @@ static void png_filter_row(PNGDSPContext *dsp, uint8_t *dst, int filter_type,
|
||||
p = (last[i] >> 1);
|
||||
dst[i] = p + src[i];
|
||||
}
|
||||
#define OP_AVG(x, s, l) (((x + l) >> 1) + s) & 0xff
|
||||
#define OP_AVG(x, s, l) (((((x) + (l)) >> 1) + (s)) & 0xff)
|
||||
UNROLL_FILTER(OP_AVG);
|
||||
break;
|
||||
case PNG_FILTER_VALUE_PAETH:
|
||||
|
Loading…
Reference in New Issue
Block a user