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

{

    int bps = av_get_bits_per_sample(s->streams[0]->codec->codec_id);

    int ret = av_get_packet(s->pb, pkt, BLOCK_SIZE * bps >> 3);



    if (ret < 0)

        return ret;




    pkt->stream_index = 0;



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

    pkt->size = ret;



    return 0;

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

{

    int bps = av_get_bits_per_sample(s->streams[0]->codec->codec_id);

    int ret = av_get_packet(s->pb, pkt, BLOCK_SIZE * bps >> 3);



    if (ret < 0)

        return ret;




    pkt->stream_index = 0;



    

    pkt->size = ret;



    return 0;

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

{

    int VAR_2 = av_get_bits_per_sample(VAR_0->streams[0]->codec->codec_id);

    int VAR_3 = av_get_packet(VAR_0->pb, VAR_1, BLOCK_SIZE * VAR_2 >> 3);



    if (VAR_3 < 0)

        return VAR_3;




    VAR_1->stream_index = 0;



    

    VAR_1->size = VAR_3;



    return 0;

}
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{ int VAR_2 = av_get_bits_per_sample(VAR_0->streams[0]->codec->codec_id); int VAR_3 = av_get_packet(VAR_0->pb, VAR_1, BLOCK_SIZE * VAR_2 >> 3); if (VAR_3 < 0)
return VAR_3; VAR_1->stream_index = 0; VAR_1->size = VAR_3; return 0; }