All pastes #443422 Raw Edit

Something

public text v1 · immutable
·published 2007-04-16 20:06 UTC
rendered paste body
int ast_rtp_codec_setpref(struct opbx_rtp *rtp, struct opbx_codec_pref *prefs)
{
        int x;
        for (x = 0; x < 32; x++) {  /* Ugly way */
                rtp->pref.order[x] = prefs->order[x];
                rtp->pref.framing[x] = prefs->framing[x];
        }
        if (rtp->smoother)
                opbx_smoother_free(rtp->smoother);
        rtp->smoother = NULL;
        return 0;
}