mirror of https://git.ffmpeg.org/ffmpeg.git
Proper handling of trailing whitespaces
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
This commit is contained in:
parent
a64821f4e5
commit
a78f2ccdd6
|
@ -120,6 +120,8 @@ static char *consume_string(const char **buf)
|
||||||
case '[':
|
case '[':
|
||||||
case '=':
|
case '=':
|
||||||
case ',':
|
case ',':
|
||||||
|
case ' ':
|
||||||
|
case '\n':
|
||||||
*out++= 0;
|
*out++= 0;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -128,6 +130,8 @@ static char *consume_string(const char **buf)
|
||||||
} while(out[-1]);
|
} while(out[-1]);
|
||||||
|
|
||||||
(*buf)--;
|
(*buf)--;
|
||||||
|
consume_whitespace(buf);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue