rtpenc: Restructure if statements in packetizers to simplify adding more conditions