aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-05-09 02:53:42 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-05-09 02:53:42 +0200
commitf8b536a786bf8ba2c65f102fa5cdc3963672d790 (patch)
tree2e4e95305b16e9aebe418eae1c0a6e9c2da90e68 /libavutil
parent9501b932418335f87efef092737a2ac7266bbec8 (diff)
downloadffmpeg-f8b536a786bf8ba2c65f102fa5cdc3963672d790.tar.gz
parseutils: use strings instead of integers for error codes.
error values can differ between platforms. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/parseutils.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavutil/parseutils.c b/libavutil/parseutils.c
index 3ab99355ef..7a13d0ba58 100644
--- a/libavutil/parseutils.c
+++ b/libavutil/parseutils.c
@@ -723,10 +723,12 @@ 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]);
- printf("'%s' -> %d/%d ret:%d\n",
- rates[i], q.num, q.den, ret);
+ av_strerror(ret, err, sizeof(err));
+ printf("'%s' -> %d/%d ret:%s\n",
+ rates[i], q.num, q.den, err);
}
}