diff options
author | Michel Bardiaux <mbardiaux@peaktime.be> | 2003-11-03 13:26:22 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-11-03 13:26:22 +0000 |
commit | 9b879566789379631f02b83be367ca55c88a1ae9 (patch) | |
tree | ee2b274b74329eb94548dc6c85bc966485c75d2a /libavcodec/eval.c | |
parent | 8bae9ddc91f6a083d420494bbd652d8258649066 (diff) | |
download | ffmpeg-9b879566789379631f02b83be367ca55c88a1ae9.tar.gz |
av_log() patch by (Michel Bardiaux <mbardiaux at peaktime dot be>)
Originally committed as revision 2469 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/eval.c')
-rw-r--r-- | libavcodec/eval.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/eval.c b/libavcodec/eval.c index 28a492cd4b..714ba046c5 100644 --- a/libavcodec/eval.c +++ b/libavcodec/eval.c @@ -61,7 +61,7 @@ static void evalExpression(Parser *p); static void push(Parser *p, double d){ if(p->stack_index+1>= STACK_SIZE){ - fprintf(stderr, "stack overflow in the parser\n"); + av_log(NULL, AV_LOG_ERROR, "stack overflow in the parser\n"); return; } p->stack[ p->stack_index++ ]= d; @@ -70,7 +70,7 @@ static void push(Parser *p, double d){ static double pop(Parser *p){ if(p->stack_index<=0){ - fprintf(stderr, "stack underflow in the parser\n"); + av_log(NULL, AV_LOG_ERROR, "stack underflow in the parser\n"); return NAN; } //printf("pop\n"); fflush(stdout); @@ -109,7 +109,7 @@ static void evalPrimary(Parser *p){ p->s= strchr(p->s, '('); if(p->s==NULL){ - fprintf(stderr, "Parser: missing ( in \"%s\"\n", next); + av_log(NULL, AV_LOG_ERROR, "Parser: missing ( in \"%s\"\n", next); return; } p->s++; // "(" @@ -159,13 +159,13 @@ static void evalPrimary(Parser *p){ } if(error){ - fprintf(stderr, "Parser: unknown function in \"%s\"\n", next); + av_log(NULL, AV_LOG_ERROR, "Parser: unknown function in \"%s\"\n", next); return; } } if(p->s[-1]!= ')'){ - fprintf(stderr, "Parser: missing ) in \"%s\"\n", next); + av_log(NULL, AV_LOG_ERROR, "Parser: missing ) in \"%s\"\n", next); return; } push(p, d); @@ -185,7 +185,7 @@ static void evalPow(Parser *p){ evalExpression(p); if(p->s[0]!=')') - fprintf(stderr, "Parser: missing )\n"); + av_log(NULL, AV_LOG_ERROR, "Parser: missing )\n"); p->s++; }else{ evalPrimary(p); |