rtpvp8pay: couple of minor optimisations
authorTim-Philipp Müller <tim@centricular.com>
Wed, 18 Jun 2014 12:20:44 +0000 (13:20 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 18 Jun 2014 13:54:58 +0000 (14:54 +0100)
commitf4db7443aedde922cb8371c94ef7046098cc145c
tree2869f0c27836302c00b43ba3b0e283707a295b59
parent6c9e2194d2ed52628ca9a3385e73b1d846372d81
rtpvp8pay: couple of minor optimisations

Pre-allocate buffer list of the right size to avoid re-allocs.
Avoid plenty of double runtime cast checks and re-doing the
same calculation over and over again in rtp_vp8_calc_payload_len().
Only call gst_buffer_get_size() once.
gst/rtp/gstrtpvp8pay.c