summaryrefslogtreecommitdiff
path: root/libavutil
diff options
context:
space:
mode:
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/tree.c b/libavutil/tree.c
index b419e16ca0..d48d01af5b 100644
--- a/libavutil/tree.c
+++ b/libavutil/tree.c
@@ -230,14 +230,14 @@ int main(void)
if (check(root) > 999) {
av_log(NULL, AV_LOG_ERROR, "FATAL error %d\n", i);
print(root, 0);
- return -1;
+ return 1;
}
if (!node)
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, jj, cmp, &node);