]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/pngenc: Remove outer () from macro
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 4 Mar 2015 01:06:08 +0000 (02:06 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 4 Mar 2015 01:06:08 +0000 (02:06 +0100)
The macro is implemented as a do{}while()
enclosing this is () appears to be a GNU extension (6.1 Statements and Declarations in Expressions)
the () is also unneeded and wrong as the macro returns no
value

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/pngenc.c

index 4e67ce22197c65e86f12bc97828b6dd4f4aa46b7..6c9f43ede800ba75ffd6a0cb3dff064333a152e9 100644 (file)
@@ -232,7 +232,7 @@ static int png_write_row(PNGEncContext *s, const uint8_t *data, int size)
     return 0;
 }
 
-#define AV_WB32_PNG(buf, n) (AV_WB32(buf, lrint((n) * 100000)))
+#define AV_WB32_PNG(buf, n) AV_WB32(buf, lrint((n) * 100000))
 static int png_get_chrm(enum AVColorPrimaries prim,  uint8_t *buf)
 {
     double rx, ry, gx, gy, bx, by, wx = 0.3127, wy = 0.3290;