3412a0e190
Waiting for the first packet to arrive before sending the headers helps prevent issues with certain types of encoders that may not get their header/SEI until the first packet has been received.