Split out input-specific parts of rtsp_read_header() into its own, new,