[FFmpeg-soc] [soc]: r5143 - spdif/spdif.c

bwolowiec subversion at mplayerhq.hu
Sat Aug 15 22:13:22 CEST 2009


Author: bwolowiec
Date: Sat Aug 15 22:13:21 2009
New Revision: 5143

Log:
cosmetics: K&R style reformatting

Modified:
   spdif/spdif.c

Modified: spdif/spdif.c
==============================================================================
--- spdif/spdif.c	Sat Aug 15 22:11:25 2009	(r5142)
+++ spdif/spdif.c	Sat Aug 15 22:13:21 2009	(r5143)
@@ -60,21 +60,22 @@ typedef struct IEC958Context {
 } IEC958Context;
 
 //TODO move to DSP
-static void bswap_buf16(uint16_t *dst, const uint16_t *src, int w){
+static void bswap_buf16(uint16_t *dst, const uint16_t *src, int w)
+{
     int i;
 
-    for(i=0; i+8<=w; i+=8){
-        dst[i+0]= bswap_16(src[i+0]);
-        dst[i+1]= bswap_16(src[i+1]);
-        dst[i+2]= bswap_16(src[i+2]);
-        dst[i+3]= bswap_16(src[i+3]);
-        dst[i+4]= bswap_16(src[i+4]);
-        dst[i+5]= bswap_16(src[i+5]);
-        dst[i+6]= bswap_16(src[i+6]);
-        dst[i+7]= bswap_16(src[i+7]);
+    for (i = 0; i + 8 <= w; i += 8) {
+        dst[i + 0] = bswap_16(src[i + 0]);
+        dst[i + 1] = bswap_16(src[i + 1]);
+        dst[i + 2] = bswap_16(src[i + 2]);
+        dst[i + 3] = bswap_16(src[i + 3]);
+        dst[i + 4] = bswap_16(src[i + 4]);
+        dst[i + 5] = bswap_16(src[i + 5]);
+        dst[i + 6] = bswap_16(src[i + 6]);
+        dst[i + 7] = bswap_16(src[i + 7]);
     }
-    for(;i<w; i++){
-        dst[i+0]= bswap_16(src[i+0]);
+    for (; i < w; i++) {
+        dst[i + 0] = bswap_16(src[i + 0]);
     }
 }
 


More information about the FFmpeg-soc mailing list