[FFmpeg-soc] [soc]: r2121 - libavfilter/graphparser.c

vitor subversion at mplayerhq.hu
Thu Apr 10 23:29:33 CEST 2008


Author: vitor
Date: Thu Apr 10 23:29:33 2008
New Revision: 2121

Log:
Proper handling of trailing whitespaces

Modified:
   libavfilter/graphparser.c

Modified: libavfilter/graphparser.c
==============================================================================
--- libavfilter/graphparser.c	(original)
+++ libavfilter/graphparser.c	Thu Apr 10 23:29:33 2008
@@ -120,6 +120,8 @@ static char *consume_string(const char *
         case '[':
         case '=':
         case ',':
+        case ' ':
+        case '\n':
             *out++= 0;
             break;
         default:
@@ -128,6 +130,8 @@ static char *consume_string(const char *
     } while(out[-1]);
 
     (*buf)--;
+    consume_whitespace(buf);
+
     return ret;
 }
 



More information about the FFmpeg-soc mailing list