aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2013-10-22 19:08:43 +0100
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2013-10-24 10:51:52 +0100
commit5dfdffeb6fe9c43a496a4c1949cf9162474c7418 (patch)
treef505ccf63aa70982665b4d5fddbe4db31c8beccb
parent94d707af3c8d2eb7dde7048929b056a451daabcb (diff)
downloadffmpeg-5dfdffeb6fe9c43a496a4c1949cf9162474c7418.tar.gz
tree-test: Don't return restricted exit codes
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
-rw-r--r--libavutil/tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/tree.c b/libavutil/tree.c
index e1b31975c3..d0b67efc5d 100644
--- a/libavutil/tree.c
+++ b/libavutil/tree.c
@@ -225,7 +225,7 @@ int main(int argc, char **argv)
if (check(root) > 999) {
av_log(NULL, AV_LOG_ERROR, "FATAL error %d\n", i);
print(root, 0);
- return -1;
+ return 1;
}
av_log(NULL, AV_LOG_DEBUG, "inserting %4d\n", (int)j);
@@ -233,7 +233,7 @@ int main(int argc, char **argv)
node = av_tree_node_alloc();
if (!node) {
av_log(NULL, AV_LOG_ERROR, "Memory allocation failure.\n");
- return AVERROR(ENOMEM);
+ return 1;
}
av_tree_insert(&root, (void *)(j + 1), cmp, &node);