[FFmpeg-cvslog] r13308 - trunk/libavfilter/graphparser.c

vitor subversion
Sat May 24 22:39:55 CEST 2008


Author: vitor
Date: Sat May 24 22:39:55 2008
New Revision: 13308

Log:
Proper handling of trailing whitespaces
Commited in SoC by Vitor Sessak on 2008-04-10 21:29:33


Modified:
   trunk/libavfilter/graphparser.c

Modified: trunk/libavfilter/graphparser.c
==============================================================================
--- trunk/libavfilter/graphparser.c	(original)
+++ trunk/libavfilter/graphparser.c	Sat May 24 22:39:55 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-cvslog mailing list