enum CodecID codec_get_id(const CodecTag *tags, unsigned int tag)

{

    while (tags->id != 0) {

        if(   toupper((tag >> 0)&0xFF) == toupper((tags->tag >> 0)&0xFF)

           && toupper((tag >> 8)&0xFF) == toupper((tags->tag >> 8)&0xFF)

           && toupper((tag >>16)&0xFF) == toupper((tags->tag >>16)&0xFF)

           && toupper((tag >>24)&0xFF) == toupper((tags->tag >>24)&0xFF))

            return tags->id;

        tags++;

    }

    return CODEC_ID_NONE;

}

enum CodecID codec_get_id(const CodecTag *tags, unsigned int tag)

{

    while (tags->id != 0) {

        if(   toupper((tag >> 0)&0xFF) == toupper((tags->tag >> 0)&0xFF)

           && toupper((tag >> 8)&0xFF) == toupper((tags->tag >> 8)&0xFF)

           && toupper((tag >>16)&0xFF) == toupper((tags->tag >>16)&0xFF)

           && toupper((tag >>24)&0xFF) == toupper((tags->tag >>24)&0xFF))

            return tags->id;

        tags++;

    }

    return CODEC_ID_NONE;

}

enum CodecID FUNC_0(const CodecTag *VAR_0, unsigned int VAR_1)

{

    while (VAR_0->id != 0) {

        if(   toupper((VAR_1 >> 0)&0xFF) == toupper((VAR_0->VAR_1 >> 0)&0xFF)

           && toupper((VAR_1 >> 8)&0xFF) == toupper((VAR_0->VAR_1 >> 8)&0xFF)

           && toupper((VAR_1 >>16)&0xFF) == toupper((VAR_0->VAR_1 >>16)&0xFF)

           && toupper((VAR_1 >>24)&0xFF) == toupper((VAR_0->VAR_1 >>24)&0xFF))

            return VAR_0->id;

        VAR_0++;

    }

    return CODEC_ID_NONE;

}

enum CodecID FUNC_0(const CodecTag *VAR_0, unsigned int VAR_1)
{ while (VAR_0->id != 0) { if(   toupper((VAR_1 >> 0)&0xFF) == toupper((VAR_0->VAR_1 >> 0)&0xFF)
&& toupper((VAR_1 >> 8)&0xFF) == toupper((VAR_0->VAR_1 >> 8)&0xFF)
&& toupper((VAR_1 >>16)&0xFF) == toupper((VAR_0->VAR_1 >>16)&0xFF)
&& toupper((VAR_1 >>24)&0xFF) == toupper((VAR_0->VAR_1 >>24)&0xFF))
return VAR_0->id; VAR_0++; } return CODEC_ID_NONE; }