[FFmpeg-cvslog] tree-test: Don't return restricted exit codes

Derek Buitenhuis git at videolan.org
Fri Oct 25 13:47:38 CEST 2013


ffmpeg | branch: master | Derek Buitenhuis <derek.buitenhuis at gmail.com> | Tue Oct 22 19:08:43 2013 +0100| [530cd2893e020206262a146d567c707ef93baf31] | committer: Derek Buitenhuis

tree-test: Don't return restricted exit codes

Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=530cd2893e020206262a146d567c707ef93baf31
---

 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);
 



More information about the ffmpeg-cvslog mailing list