Mercurial > libavcodec.hg
diff opts.c @ 1598:932d306bf1dc libavcodec
av_log() patch by (Michel Bardiaux <mbardiaux at peaktime dot be>)
| author | michael |
|---|---|
| date | Mon, 03 Nov 2003 13:26:22 +0000 |
| parents | daa70b33fc44 |
| children |
line wrap: on
line diff
--- a/opts.c Sun Nov 02 23:19:47 2003 +0000 +++ b/opts.c Mon Nov 03 13:26:22 2003 +0000 @@ -89,7 +89,7 @@ d = atof(s); if (c->min != c->max) { if (d < c->min || d > c->max) { - fprintf(stderr, "Option: %s double value: %f out of range <%f, %f>\n", + av_log(NULL, AV_LOG_ERROR, "Option: %s double value: %f out of range <%f, %f>\n", c->name, d, c->min, c->max); return -1; } @@ -106,7 +106,7 @@ i = atoi(s); if (c->min != c->max) { if (i < (int)c->min || i > (int)c->max) { - fprintf(stderr, "Option: %s integer value: %d out of range <%d, %d>\n", + av_log(NULL, AV_LOG_ERROR, "Option: %s integer value: %d out of range <%d, %d>\n", c->name, i, (int)c->min, (int)c->max); return -1; } @@ -136,7 +136,7 @@ //printf("parsed Rc: %d,%d,%d,%f (%d)\n", sf,ef,qs,qf, avctx->rc_override_count); } else { - printf("incorrect/unparsable Rc: \"%s\"\n", s); + av_log(NULL, AV_LOG_ERROR, "incorrect/unparsable Rc: \"%s\"\n", s); } } else *var = av_strdup(s);
