segfault fix

thanks to takis for finding the cause of this

Originally committed as revision 6325 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2006-09-24 10:38:14 +00:00
parent 87656472f4
commit e6b120018b
1 changed files with 1 additions and 0 deletions

View File

@ -87,6 +87,7 @@ static double evalPrimary(Parser *p){
p->s= strchr(p->s, '(');
if(p->s==NULL){
av_log(NULL, AV_LOG_ERROR, "Parser: missing ( in \"%s\"\n", next);
p->s= next;
return NAN;
}
p->s++; // "("