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;
}
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc