[FFmpeg-devel] [PATCH 1/4] tree-test: Don't return restricted exit codes
Derek Buitenhuis
derek.buitenhuis at gmail.com
Tue Oct 22 22:37:53 CEST 2013
Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
---
libavutil/tree.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavutil/tree.c b/libavutil/tree.c
index e1b3197..d0b67ef 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);
--
1.8.4.rc3
More information about the ffmpeg-devel
mailing list