static int mpegts_read_packet(AVFormatContext *s,

                              AVPacket *pkt)

{

    MpegTSContext *ts = s->priv_data;



    if (!ts->mpeg2ts_raw) {

        ts->pkt = pkt;

        return handle_packets(ts, 0);

    } else {

        return mpegts_raw_read_packet(s, pkt);

    }

}

static int mpegts_read_packet(AVFormatContext *s,

                              AVPacket *pkt)

{

    MpegTSContext *ts = s->priv_data;



    if (!ts->mpeg2ts_raw) {

        ts->pkt = pkt;

        return handle_packets(ts, 0);

    } else {

        return mpegts_raw_read_packet(s, pkt);

    }

}

static int FUNC_0(AVFormatContext *VAR_0,

                              AVPacket *VAR_1)

{

    MpegTSContext *ts = VAR_0->priv_data;



    if (!ts->mpeg2ts_raw) {

        ts->VAR_1 = VAR_1;

        return handle_packets(ts, 0);

    } else {

        return mpegts_raw_read_packet(VAR_0, VAR_1);

    }

}

static int FUNC_0(AVFormatContext *VAR_0,
AVPacket *VAR_1)
{ MpegTSContext *ts = VAR_0->priv_data; if (!ts->mpeg2ts_raw) { ts->VAR_1 = VAR_1; return handle_packets(ts, 0); } else { return mpegts_raw_read_packet(VAR_0, VAR_1); } }