aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/pngdsp.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2014-03-14 18:32:00 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-03-16 23:29:50 +0100
commitc598b569fb3d1f4b6c4868fe64f6989254df5186 (patch)
tree20531fac875eaedd8e9410f070530e665cf15fff /libavcodec/pngdsp.c
parentf7518f1a0e0a1788c303de3c6198da07e575710c (diff)
downloadffmpeg-c598b569fb3d1f4b6c4868fe64f6989254df5186.tar.gz
png: K&R formatting cosmetics
Diffstat (limited to 'libavcodec/pngdsp.c')
-rw-r--r--libavcodec/pngdsp.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libavcodec/pngdsp.c b/libavcodec/pngdsp.c
index 5cc41c4e80..c0e9402948 100644
--- a/libavcodec/pngdsp.c
+++ b/libavcodec/pngdsp.c
@@ -25,13 +25,13 @@
#include "pngdsp.h"
// 0x7f7f7f7f or 0x7f7f7f7f7f7f7f7f or whatever, depending on the cpu's native arithmetic size
-#define pb_7f (~0UL/255 * 0x7f)
-#define pb_80 (~0UL/255 * 0x80)
+#define pb_7f (~0UL / 255 * 0x7f)
+#define pb_80 (~0UL / 255 * 0x80)
static void add_bytes_l2_c(uint8_t *dst, uint8_t *src1, uint8_t *src2, int w)
{
long i;
- for (i = 0; i <= w - (int)sizeof(long); i += sizeof(long)) {
+ for (i = 0; i <= w - (int) sizeof(long); i += sizeof(long)) {
long a = *(long *)(src1 + i);
long b = *(long *)(src2 + i);
*(long *)(dst + i) = ((a & pb_7f) + (b & pb_7f)) ^ ((a ^ b) & pb_80);
@@ -45,5 +45,6 @@ av_cold void ff_pngdsp_init(PNGDSPContext *dsp)
dsp->add_bytes_l2 = add_bytes_l2_c;
dsp->add_paeth_prediction = ff_add_png_paeth_prediction;
- if (ARCH_X86) ff_pngdsp_init_x86(dsp);
+ if (ARCH_X86)
+ ff_pngdsp_init_x86(dsp);
}