udp: don't realloc in receiving, just set i_buffer
Similar than rtp input does, doing realloc from 64k->1.5k would usually mean extra malloc+memcpy per packet. Also don't pass buffer onward if we don't receive any useful stuff (-1)
Showing
Please register or sign in to comment