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

{

    OMAContext *oc = s->priv_data;

    int packet_size = s->streams[0]->codec->block_align;

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



    if (ret <= 0)

        return AVERROR(EIO);



    pkt->stream_index = 0;



    if (oc->encrypted) {

        /* previous unencrypted block saved in IV for

         * the next packet (CBC mode) */

        av_des_crypt(&oc->av_des, pkt->data, pkt->data,

                     (packet_size >> 3), oc->iv, 1);

    }



    return ret;

}

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

{

    OMAContext *oc = s->priv_data;

    int packet_size = s->streams[0]->codec->block_align;

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



    if (ret <= 0)

        return AVERROR(EIO);



    pkt->stream_index = 0;



    if (oc->encrypted) {

        



        av_des_crypt(&oc->av_des, pkt->data, pkt->data,

                     (packet_size >> 3), oc->iv, 1);

    }



    return ret;

}

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

{

    OMAContext *oc = VAR_0->priv_data;

    int VAR_2 = VAR_0->streams[0]->codec->block_align;

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



    if (VAR_3 <= 0)

        return AVERROR(EIO);



    VAR_1->stream_index = 0;



    if (oc->encrypted) {

        



        av_des_crypt(&oc->av_des, VAR_1->data, VAR_1->data,

                     (VAR_2 >> 3), oc->iv, 1);

    }



    return VAR_3;

}

static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{ OMAContext *oc = VAR_0->priv_data; int VAR_2 = VAR_0->streams[0]->codec->block_align; int VAR_3 = av_get_packet(VAR_0->pb, VAR_1, VAR_2); if (VAR_3 <= 0)
return AVERROR(EIO); VAR_1->stream_index = 0; if (oc->encrypted) { av_des_crypt(&oc->av_des, VAR_1->data, VAR_1->data,
(VAR_2 >> 3), oc->iv, 1); } return VAR_3; }