29 #define AV_CAT_SEPARATOR "|"
49 for (i = 0; i != data->
length; i++)
54 return err < 0 ? -1 : 0;
59 char *node_uri = NULL;
69 for (i = 0, len = 1; uri[i]; i++)
72 if (++len == UINT_MAX /
sizeof(*nodes)) {
77 if (!(nodes =
av_realloc(NULL,
sizeof(*nodes) * len))) {
85 for (i = 0; *uri; i++) {
124 int result, total = 0;
132 return total ? total : result;
134 if (i + 1 == data->
length ||
154 for (i = data->
length - 1;
155 i && pos < -nodes[i].
size;
157 pos += nodes[i].
size;
161 for (i = 0; i != data->
current; i++)
162 pos += nodes[i].
size;
167 for (i = 0; i != data->
length - 1 && pos >= nodes[i].
size; i++)
168 pos -= nodes[i].
size;
178 result += nodes[--i].
size;