tests/parseutils: change test to make it platform independent

Make the test independent from the actual error string used to describe a
certain error code.
This commit is contained in:
Stefano Sabatini 2012-06-10 15:56:23 +02:00
parent 9ec5e956a2
commit 3ecaba677e
2 changed files with 27 additions and 29 deletions

View file

@ -723,12 +723,10 @@ int main(void)
for (i = 0; i < FF_ARRAY_ELEMS(rates); i++) {
int ret;
char err[1024];
AVRational q = (AVRational){0, 0};
ret = av_parse_video_rate(&q, rates[i]);
av_strerror(ret, err, sizeof(err));
printf("'%s' -> %d/%d ret:%s\n",
rates[i], q.num, q.den, err);
printf("'%s' -> %d/%d%s\n",
rates[i], q.num, q.den, ret ? " error" : "");
}
}