提交 530cd289 编写于 作者: D Derek Buitenhuis

tree-test: Don't return restricted exit codes

Signed-off-by: NDerek Buitenhuis <derek.buitenhuis@gmail.com>
上级 fb13fe83
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册