static int rtp_write(URLContext *h, const uint8_t *buf, int size)
{
    RTPContext *s = h->priv_data;
    int ret;
    URLContext *hd;
    if (RTP_PT_IS_RTCP(buf[1])) {
        /* RTCP payload type */
        hd = s->rtcp_hd;
    } else {
        /* RTP payload type */
        hd = s->rtp_hd;
    }
    ret = ffurl_write(hd, buf, size);
    return ret;
}
static int rtp_write(URLContext *h, const uint8_t *buf, int size)
{
    RTPContext *s = h->priv_data;
    int ret;
    URLContext *hd;
    if (RTP_PT_IS_RTCP(buf[1])) {
        
        hd = s->rtcp_hd;
    } else {
        
        hd = s->rtp_hd;
    }
    ret = ffurl_write(hd, buf, size);
    return ret;
}
static int FUNC_0(URLContext *VAR_0, const uint8_t *VAR_1, int VAR_2)
{
    RTPContext *s = VAR_0->priv_data;
    int VAR_3;
    URLContext *hd;
    if (RTP_PT_IS_RTCP(VAR_1[1])) {
        
        hd = s->rtcp_hd;
    } else {
        
        hd = s->rtp_hd;
    }
    VAR_3 = ffurl_write(hd, VAR_1, VAR_2);
    return VAR_3;
}
static int FUNC_0(URLContext *VAR_0, const uint8_t *VAR_1, int VAR_2)
{ RTPContext *s = VAR_0->priv_data; int VAR_3; URLContext *hd; if (RTP_PT_IS_RTCP(VAR_1[1])) { hd = s->rtcp_hd; } else { hd = s->rtp_hd; } VAR_3 = ffurl_write(hd, VAR_1, VAR_2); return VAR_3; }