summaryrefslogtreecommitdiff
path: root/libavutil
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:59:26 +0100
commit530cd2893e020206262a146d567c707ef93baf31 (patch)
treead17af5c1d2566b201593e00c521e9a745c51b63 /libavutil
parentfb13fe8342faff6f7ca9c747aff5d7cf7c5202c6 (diff)
downloadffmpeg-530cd2893e020206262a146d567c707ef93baf31.tar.gz
tree-test: Don't return restricted exit codes
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
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);