[FFmpeg-soc] [soc]: r4652 - in concat/libavformat: pls.c xspf.c

gkovacs subversion at mplayerhq.hu
Tue Jul 7 18:22:41 CEST 2009


Author: gkovacs
Date: Tue Jul  7 18:22:41 2009
New Revision: 4652

Log:
fixing code formatting

Modified:
   concat/libavformat/pls.c
   concat/libavformat/xspf.c

Modified: concat/libavformat/pls.c
==============================================================================
--- concat/libavformat/pls.c	Tue Jul  7 04:32:55 2009	(r4651)
+++ concat/libavformat/pls.c	Tue Jul  7 18:22:41 2009	(r4652)
@@ -61,14 +61,12 @@ static int pls_list_files(ByteIOContext 
             s[4] = c;
             if (s[0] == t[0] && s[1] == t[1] && s[2] == t[2] && s[3] == t[3] && s[4] == t[4])
                 state = 1;
-        }
-        else if (state == 1){
+        } else if (state == 1) {
             if (c == '=')
                 state = 2;
             else if (c == '#')
                 state = 0;
-        }
-        else {
+        } else {
             if (c == '\n' || c == '#') {
                 termfn:
                 buf[i++] = 0;
@@ -79,8 +77,7 @@ static int pls_list_files(ByteIOContext 
                 state = 0;
                 s[sizeof(s)-1] = c;
                 continue;
-            }
-            else {
+            } else {
                 buf[i++] = c;
                 if (i >= sizeof(buf)-1)
                     goto termfn;

Modified: concat/libavformat/xspf.c
==============================================================================
--- concat/libavformat/xspf.c	Tue Jul  7 04:32:55 2009	(r4651)
+++ concat/libavformat/xspf.c	Tue Jul  7 18:22:41 2009	(r4652)
@@ -67,8 +67,7 @@ static int xspf_list_files(ByteIOContext
             if (s[0] == t[0] && s[1] == t[1] && s[2] == t[2] && s[3] == t[3] && s[4] == t[4] &&
                 s[5] == t[5] && s[6] == t[6] && s[7] == t[7] && s[8] == t[8] && s[9] == t[9])
                 state = 1;
-        }
-        else {
+        } else {
             if (c == '<') {
                 termfn:
                 buf[i++] = 0;
@@ -79,8 +78,7 @@ static int xspf_list_files(ByteIOContext
                 state = 0;
                 s[sizeof(s)-1] = c;
                 continue;
-            }
-            else {
+            } else {
                 buf[i++] = c;
                 if (i >= sizeof(buf)-1)
                     goto termfn;


More information about the FFmpeg-soc mailing list