static void id3v2_read_ttag(AVFormatContext *s, int taglen, char *dst, int dstlen)

{

    char *q;

    int len;



    if(dstlen > 0)

        dst[0]= 0;

    if(taglen < 1)

        return;



    taglen--; /* account for encoding type byte */

    dstlen--; /* Leave space for zero terminator */



    switch(get_byte(s->pb)) { /* encoding type */



    case 0:  /* ISO-8859-1 (0 - 255 maps directly into unicode) */

        q = dst;

        while(taglen--) {

            uint8_t tmp;

            PUT_UTF8(get_byte(s->pb), tmp, if (q - dst < dstlen - 1) *q++ = tmp;)

        }

        *q = '\0';

        break;



    case 3:  /* UTF-8 */

        len = FFMIN(taglen, dstlen);

        get_buffer(s->pb, dst, len);

        dst[len] = 0;

        break;

    }

}

static void id3v2_read_ttag(AVFormatContext *s, int taglen, char *dst, int dstlen)

{

    char *q;

    int len;



    if(dstlen > 0)

        dst[0]= 0;

    if(taglen < 1)

        return;



    taglen--; 

    dstlen--; 



    switch(get_byte(s->pb)) { 



    case 0:  

        q = dst;

        while(taglen--) {

            uint8_t tmp;

            PUT_UTF8(get_byte(s->pb), tmp, if (q - dst < dstlen - 1) *q++ = tmp;)

        }

        *q = '\0';

        break;



    case 3:  

        len = FFMIN(taglen, dstlen);

        get_buffer(s->pb, dst, len);

        dst[len] = 0;

        break;

    }

}

        len = FFMIN(taglen, dstlen);
static void FUNC_0(AVFormatContext *VAR_0, int VAR_1, char *VAR_2, int VAR_3)

{

    char *VAR_4;

    int VAR_5;



    if(VAR_3 > 0)

        VAR_2[0]= 0;

    if(VAR_1 < 1)

        return;



    VAR_1--; 

    VAR_3--; 



    switch(get_byte(VAR_0->pb)) { 



    case 0:  

        VAR_4 = VAR_2;

        while(VAR_1--) {

            uint8_t tmp;

            PUT_UTF8(get_byte(VAR_0->pb), tmp, if (VAR_4 - VAR_2 < VAR_3 - 1) *VAR_4++ = tmp;)

        }

        *VAR_4 = '\0';

        break;



    case 3:  

        VAR_5 = FFMIN(VAR_1, VAR_3);

        get_buffer(VAR_0->pb, VAR_2, VAR_5);

        VAR_2[VAR_5] = 0;

        break;

    }

}

static void FUNC_0(AVFormatContext *VAR_0, int VAR_1, char *VAR_2, int VAR_3)
{ char *VAR_4; int VAR_5; if(VAR_3 > 0)
VAR_2[0]= 0; if(VAR_1 < 1)
return; VAR_1--; VAR_3--; switch(get_byte(VAR_0->pb)) { case 0:
VAR_4 = VAR_2; while(VAR_1--) { uint8_t tmp; PUT_UTF8(get_byte(VAR_0->pb), tmp, if (VAR_4 - VAR_2 < VAR_3 - 1) *VAR_4++ = tmp;) } *VAR_4 = '\0'; break; case 3:
VAR_5 = FFMIN(VAR_1, VAR_3); get_buffer(VAR_0->pb, VAR_2, VAR_5); VAR_2[VAR_5] = 0; break; } }