static int mp3_read_packet(AVFormatContext *s, AVPacket *pkt)

{

    int ret, size;

    //    AVStream *st = s->streams[0];



    size= MP3_PACKET_SIZE;



    ret= av_get_packet(s->pb, pkt, size);




    pkt->stream_index = 0;

    if (ret <= 0) {

        if(ret<0)

            return ret;

        return AVERROR_EOF;

    }



    if (ret > ID3v1_TAG_SIZE &&

        memcmp(&pkt->data[ret - ID3v1_TAG_SIZE], "TAG", 3) == 0)

        ret -= ID3v1_TAG_SIZE;



    /* note: we need to modify the packet size here to handle the last

       packet */

    pkt->size = ret;

    return ret;

}
static int mp3_read_packet(AVFormatContext *s, AVPacket *pkt)

{

    int ret, size;

    



    size= MP3_PACKET_SIZE;



    ret= av_get_packet(s->pb, pkt, size);




    pkt->stream_index = 0;

    if (ret <= 0) {

        if(ret<0)

            return ret;

        return AVERROR_EOF;

    }



    if (ret > ID3v1_TAG_SIZE &&

        memcmp(&pkt->data[ret - ID3v1_TAG_SIZE], "TAG", 3) == 0)

        ret -= ID3v1_TAG_SIZE;



    



    pkt->size = ret;

    return ret;

}
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)

{

    int VAR_2, VAR_3;

    



    VAR_3= MP3_PACKET_SIZE;



    VAR_2= av_get_packet(VAR_0->pb, VAR_1, VAR_3);




    VAR_1->stream_index = 0;

    if (VAR_2 <= 0) {

        if(VAR_2<0)

            return VAR_2;

        return AVERROR_EOF;

    }



    if (VAR_2 > ID3v1_TAG_SIZE &&

        memcmp(&VAR_1->data[VAR_2 - ID3v1_TAG_SIZE], "TAG", 3) == 0)

        VAR_2 -= ID3v1_TAG_SIZE;



    



    VAR_1->VAR_3 = VAR_2;

    return VAR_2;

}
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{ int VAR_2, VAR_3; VAR_3= MP3_PACKET_SIZE; VAR_2= av_get_packet(VAR_0->pb, VAR_1, VAR_3); VAR_1->stream_index = 0; if (VAR_2 <= 0) { if(VAR_2<0)
return VAR_2; return AVERROR_EOF; } if (VAR_2 > ID3v1_TAG_SIZE &&
memcmp(&VAR_1->data[VAR_2 - ID3v1_TAG_SIZE], "TAG", 3) == 0)
VAR_2 -= ID3v1_TAG_SIZE; VAR_1->VAR_3 = VAR_2; return VAR_2; }