]> git.sesse.net Git - ffmpeg/commitdiff
Proper handling of trailing whitespaces
authorVitor Sessak <vitor1001@gmail.com>
Sat, 24 May 2008 20:39:55 +0000 (20:39 +0000)
committerVitor Sessak <vitor1001@gmail.com>
Sat, 24 May 2008 20:39:55 +0000 (20:39 +0000)
Commited in SoC by Vitor Sessak on 2008-04-10 21:29:33

Originally committed as revision 13308 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavfilter/graphparser.c

index c1304e7f0c3e67476df56dd2c891269959c13714..49a8bb1569240b883f8e7232d8530dc5474814fb 100644 (file)
@@ -120,6 +120,8 @@ static char *consume_string(const char **buf)
         case '[':
         case '=':
         case ',':
+        case ' ':
+        case '\n':
             *out++= 0;
             break;
         default:
@@ -128,6 +130,8 @@ static char *consume_string(const char **buf)
     } while(out[-1]);
 
     (*buf)--;
+    consume_whitespace(buf);
+
     return ret;
 }