Signed-off-by: Derek Buitenhuis <[email protected]>
---
 libavutil/tree.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavutil/tree.c b/libavutil/tree.c
index b419e16..d48d01a 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);
 
-- 
1.8.4.rc3

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to