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

{

    if (s->streams[pkt->stream_index]->codec.codec_type == 

        CODEC_TYPE_AUDIO)

        return rm_write_audio(s, pkt->data, pkt->size);

    else

        return rm_write_video(s, pkt->data, pkt->size);

}

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

{

    if (s->streams[pkt->stream_index]->codec.codec_type == 

        CODEC_TYPE_AUDIO)

        return rm_write_audio(s, pkt->data, pkt->size);

    else

        return rm_write_video(s, pkt->data, pkt->size);

}

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

{

    if (VAR_0->streams[VAR_1->stream_index]->codec.codec_type == 

        CODEC_TYPE_AUDIO)

        return rm_write_audio(VAR_0, VAR_1->data, VAR_1->size);

    else

        return rm_write_video(VAR_0, VAR_1->data, VAR_1->size);

}

static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{ if (VAR_0->streams[VAR_1->stream_index]->codec.codec_type ==
CODEC_TYPE_AUDIO)
return rm_write_audio(VAR_0, VAR_1->data, VAR_1->size); else
return rm_write_video(VAR_0, VAR_1->data, VAR_1->size); }