void av_register_input_format(AVInputFormat *format)

{

    AVInputFormat **p = last_iformat;



    format->next = NULL;

    while(*p || avpriv_atomic_ptr_cas((void * volatile *)p, NULL, format))

        p = &(*p)->next;

    last_iformat = &format->next;

}

void av_register_input_format(AVInputFormat *format)

{

    AVInputFormat **p = last_iformat;



    format->next = NULL;

    while(*p || avpriv_atomic_ptr_cas((void * volatile *)p, NULL, format))

        p = &(*p)->next;

    last_iformat = &format->next;

}

    format->next = NULL;     while(*p || avpriv_atomic_ptr_cas((void * volatile *)p, NULL, format))     last_iformat = &format->next;     format->next = NULL;     while(*p || avpriv_atomic_ptr_cas((void * volatile *)p, NULL, format))
void FUNC_0(AVInputFormat *VAR_0)

{

    AVInputFormat **p = last_iformat;



    VAR_0->next = NULL;

    while(*p || avpriv_atomic_ptr_cas((void * volatile *)p, NULL, VAR_0))

        p = &(*p)->next;

    last_iformat = &VAR_0->next;

}

void FUNC_0(AVInputFormat *VAR_0)
{ AVInputFormat **p = last_iformat; VAR_0->next = NULL; while(*p || avpriv_atomic_ptr_cas((void * volatile *)p, NULL, VAR_0))
p = &(*p)->next; last_iformat = &VAR_0->next; }