static int check(AVIOContext *pb, int64_t pos, int64_t *out_pos)

{

    MPADecodeHeader mh = { 0 };

    int i;

    uint32_t header;

    int64_t off = 0;





    for (i = 0; i < SEEK_PACKETS; i++) {

        off = avio_seek(pb, pos + mh.frame_size, SEEK_SET);

        if (off < 0)

            break;



        header = avio_rb32(pb);



        if (ff_mpa_check_header(header) < 0 ||

            avpriv_mpegaudio_decode_header(&mh, header))

            break;

        out_pos[i] = off;

    }



    return i;

}

static int check(AVIOContext *pb, int64_t pos, int64_t *out_pos)

{

    MPADecodeHeader mh = { 0 };

    int i;

    uint32_t header;

    int64_t off = 0;





    for (i = 0; i < SEEK_PACKETS; i++) {

        off = avio_seek(pb, pos + mh.frame_size, SEEK_SET);

        if (off < 0)

            break;



        header = avio_rb32(pb);



        if (ff_mpa_check_header(header) < 0 ||

            avpriv_mpegaudio_decode_header(&mh, header))

            break;

        out_pos[i] = off;

    }



    return i;

}

static int FUNC_0(AVIOContext *VAR_0, int64_t VAR_1, int64_t *VAR_2)

{

    MPADecodeHeader mh = { 0 };

    int VAR_3;

    uint32_t header;

    int64_t off = 0;





    for (VAR_3 = 0; VAR_3 < SEEK_PACKETS; VAR_3++) {

        off = avio_seek(VAR_0, VAR_1 + mh.frame_size, SEEK_SET);

        if (off < 0)

            break;



        header = avio_rb32(VAR_0);



        if (ff_mpa_check_header(header) < 0 ||

            avpriv_mpegaudio_decode_header(&mh, header))

            break;

        VAR_2[VAR_3] = off;

    }



    return VAR_3;

}

static int FUNC_0(AVIOContext *VAR_0, int64_t VAR_1, int64_t *VAR_2)
{ MPADecodeHeader mh = { 0 }; int VAR_3; uint32_t header; int64_t off = 0; for (VAR_3 = 0; VAR_3 < SEEK_PACKETS; VAR_3++) { off = avio_seek(VAR_0, VAR_1 + mh.frame_size, SEEK_SET); if (off < 0)
break; header = avio_rb32(VAR_0); if (ff_mpa_check_header(header) < 0 ||
avpriv_mpegaudio_decode_header(&mh, header))
break; VAR_2[VAR_3] = off; } return VAR_3; }