Mercurial > libavcodec.hg
comparison eval.c @ 6840:7cb16b1c580f libavcodec
Improve parse_primary() error message.
Patch by Stefano Sabatini and Michael Niedermayer
author | benoit |
---|---|
date | Wed, 21 May 2008 17:50:42 +0000 |
parents | c32be43b52b2 |
children | 322023e630a6 |
comparison
equal
deleted
inserted
replaced
6839:d17cae06e958 | 6840:7cb16b1c580f |
---|---|
215 } | 215 } |
216 } | 216 } |
217 | 217 |
218 p->s= strchr(p->s, '('); | 218 p->s= strchr(p->s, '('); |
219 if(p->s==NULL){ | 219 if(p->s==NULL){ |
220 *p->error = "missing ("; | 220 *p->error = "undefined constant or missing ("; |
221 p->s= next; | 221 p->s= next; |
222 ff_eval_free(d); | 222 ff_eval_free(d); |
223 return NULL; | 223 return NULL; |
224 } | 224 } |
225 p->s++; // "(" | 225 p->s++; // "(" |