int ffurl_register_protocol(URLProtocol *protocol, int size)

{

    URLProtocol **p;

    if (size < sizeof(URLProtocol)) {

        URLProtocol *temp = av_mallocz(sizeof(URLProtocol));

        memcpy(temp, protocol, size);

        protocol = temp;

    }

    p = &first_protocol;

    while (*p != NULL)

        p = &(*p)->next;

    *p             = protocol;

    protocol->next = NULL;

    return 0;

}

int ffurl_register_protocol(URLProtocol *protocol, int size)

{

    URLProtocol **p;

    if (size < sizeof(URLProtocol)) {

        URLProtocol *temp = av_mallocz(sizeof(URLProtocol));

        memcpy(temp, protocol, size);

        protocol = temp;

    }

    p = &first_protocol;

    while (*p != NULL)

        p = &(*p)->next;

    *p             = protocol;

    protocol->next = NULL;

    return 0;

}

int ffurl_register_protocol(URLProtocol *protocol, int size)     if (size < sizeof(URLProtocol)) {         URLProtocol *temp = av_mallocz(sizeof(URLProtocol));         memcpy(temp, protocol, size);         protocol = temp;
int FUNC_0(URLProtocol *VAR_0, int VAR_1)

{

    URLProtocol **p;

    if (VAR_1 < sizeof(URLProtocol)) {

        URLProtocol *temp = av_mallocz(sizeof(URLProtocol));

        memcpy(temp, VAR_0, VAR_1);

        VAR_0 = temp;

    }

    p = &first_protocol;

    while (*p != NULL)

        p = &(*p)->next;

    *p             = VAR_0;

    VAR_0->next = NULL;

    return 0;

}

int FUNC_0(URLProtocol *VAR_0, int VAR_1)
{ URLProtocol **p; if (VAR_1 < sizeof(URLProtocol)) { URLProtocol *temp = av_mallocz(sizeof(URLProtocol)); memcpy(temp, VAR_0, VAR_1); VAR_0 = temp; } p = &first_protocol; while (*p != NULL)
p = &(*p)->next; *p             = VAR_0; VAR_0->next = NULL; return 0; }