void ff_id3v1_read(AVFormatContext *s)

{

    int ret;

    uint8_t buf[ID3v1_TAG_SIZE];

    int64_t filesize, position = avio_tell(s->pb);



    if (s->pb->seekable) {

        /* XXX: change that */

        filesize = avio_size(s->pb);

        if (filesize > 128) {

            avio_seek(s->pb, filesize - 128, SEEK_SET);

            ret = avio_read(s->pb, buf, ID3v1_TAG_SIZE);

            if (ret == ID3v1_TAG_SIZE) {

                parse_tag(s, buf);

            }

            avio_seek(s->pb, position, SEEK_SET);

        }

    }

}

void ff_id3v1_read(AVFormatContext *s)

{

    int ret;

    uint8_t buf[ID3v1_TAG_SIZE];

    int64_t filesize, position = avio_tell(s->pb);



    if (s->pb->seekable) {

        

        filesize = avio_size(s->pb);

        if (filesize > 128) {

            avio_seek(s->pb, filesize - 128, SEEK_SET);

            ret = avio_read(s->pb, buf, ID3v1_TAG_SIZE);

            if (ret == ID3v1_TAG_SIZE) {

                parse_tag(s, buf);

            }

            avio_seek(s->pb, position, SEEK_SET);

        }

    }

}

void FUNC_0(AVFormatContext *VAR_0)

{

    int VAR_1;

    uint8_t buf[ID3v1_TAG_SIZE];

    int64_t filesize, position = avio_tell(VAR_0->pb);



    if (VAR_0->pb->seekable) {

        

        filesize = avio_size(VAR_0->pb);

        if (filesize > 128) {

            avio_seek(VAR_0->pb, filesize - 128, SEEK_SET);

            VAR_1 = avio_read(VAR_0->pb, buf, ID3v1_TAG_SIZE);

            if (VAR_1 == ID3v1_TAG_SIZE) {

                parse_tag(VAR_0, buf);

            }

            avio_seek(VAR_0->pb, position, SEEK_SET);

        }

    }

}

void FUNC_0(AVFormatContext *VAR_0)
{ int VAR_1; uint8_t buf[ID3v1_TAG_SIZE]; int64_t filesize, position = avio_tell(VAR_0->pb); if (VAR_0->pb->seekable) { filesize = avio_size(VAR_0->pb); if (filesize > 128) { avio_seek(VAR_0->pb, filesize - 128, SEEK_SET); VAR_1 = avio_read(VAR_0->pb, buf, ID3v1_TAG_SIZE); if (VAR_1 == ID3v1_TAG_SIZE) { parse_tag(VAR_0, buf); } avio_seek(VAR_0->pb, position, SEEK_SET); } } }