Commited in SoC by Vitor Sessak on 2008-04-10 21:26:45
Originally committed as revision 13307 to svn://svn.ffmpeg.org/ffmpeg/trunk
static char *consume_string(const char **buf)
{
char *out = av_malloc(strlen(*buf) + 1);
static char *consume_string(const char **buf)
{
char *out = av_malloc(strlen(*buf) + 1);
char *ret = out;
consume_whitespace(buf);
do{
char *ret = out;
consume_whitespace(buf);
do{
- while(*in && *in != '\'')
- *out++= *in++;
- if(*in) in++;
+ while(**buf && **buf != '\'')
+ *out++= *(*buf)++;
+ if(**buf) (*buf)++;